ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EICG4RPHitTree Class Reference

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4rp/EICG4RPHitTree.h>

+ Inheritance diagram for EICG4RPHitTree:
+ Collaboration diagram for EICG4RPHitTree:

Public Member Functions

 EICG4RPHitTree (const std::string &name="EICG4RPHitTree", const std::string &filename="EICG4RPHitTree.root")
 constructor
 
 ~EICG4RPHitTree () override
 destructor
 
int Init (PHCompositeNode *) override
 full initialization
 
int process_event (PHCompositeNode *) override
 event processing method
 
int End (PHCompositeNode *) override
 end of run method
 
void AddNode (const std::string &name, const int detid=0)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int InitRun (PHCompositeNode *)
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
virtual int ResetEvent (PHCompositeNode *)
 Clean up after each event.
 
void Print (const std::string &="ALL") const override
 
- Public Member Functions inherited from Fun4AllBase
virtual ~Fun4AllBase ()
 
virtual const std::string Name () const
 Returns the name of this module.
 
virtual void Name (const std::string &name)
 Sets the name of this module.
 
virtual void Verbosity (const int ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual void Verbosity (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual int Verbosity () const
 Gets the verbosity of this module.
 

Protected Attributes

std::string _filename
 
std::set< std::string > _node_postfix
 
std::map< std::string, int_detid
 
TTree * tree
 
TFile * outfile
 

Private Attributes

int Nhit
 
std::vector< intlayerType
 
std::vector< intlayerID
 
std::vector< intxID
 
std::vector< intyID
 
std::vector< float > x0
 
std::vector< float > y0
 
std::vector< float > z0
 
std::vector< float > x1
 
std::vector< float > y1
 
std::vector< float > z1
 
std::vector< float > time0
 
std::vector< float > time1
 
std::vector< float > edep
 

Additional Inherited Members

- Public Types inherited from Fun4AllBase
enum  enu_Verbosity {
  VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3,
  VERBOSITY_A_LOT = 4, VERBOSITY_MAX = INT_MAX - 10
}
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 17 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 17 of file EICG4RPHitTree.h

Constructor & Destructor Documentation

EICG4RPHitTree::EICG4RPHitTree ( const std::string &  name = "EICG4RPHitTree",
const std::string &  filename = "EICG4RPHitTree.root" 
)

constructor

Definition at line 20 of file EICG4RPHitTree.cc.

View newest version in sPHENIX GitHub at line 20 of file EICG4RPHitTree.cc

EICG4RPHitTree::~EICG4RPHitTree ( )
override

destructor

Definition at line 29 of file EICG4RPHitTree.cc.

View newest version in sPHENIX GitHub at line 29 of file EICG4RPHitTree.cc

Member Function Documentation

void EICG4RPHitTree::AddNode ( const std::string &  name,
const int  detid = 0 
)

Definition at line 121 of file EICG4RPHitTree.cc.

View newest version in sPHENIX GitHub at line 121 of file EICG4RPHitTree.cc

References _detid, and _node_postfix.

int EICG4RPHitTree::End ( PHCompositeNode topNode)
overridevirtual

end of run method

Reimplemented from SubsysReco.

Definition at line 111 of file EICG4RPHitTree.cc.

View newest version in sPHENIX GitHub at line 111 of file EICG4RPHitTree.cc

References outfile, and tree.

int EICG4RPHitTree::Init ( PHCompositeNode )
overridevirtual

full initialization

Reimplemented from SubsysReco.

Definition at line 33 of file EICG4RPHitTree.cc.

View newest version in sPHENIX GitHub at line 33 of file EICG4RPHitTree.cc

References _filename, edep, layerID, layerType, Nhit, outfile, time0, time1, tree, x0, x1, xID, y0, y1, yID, z0, and z1.

int EICG4RPHitTree::process_event ( PHCompositeNode topNode)
overridevirtual

event processing method

Reimplemented from SubsysReco.

Definition at line 56 of file EICG4RPHitTree.cc.

View newest version in sPHENIX GitHub at line 56 of file EICG4RPHitTree.cc

References _node_postfix, edep, PHG4HitContainer::getHits(), hits(), layerID, layerType, Nhit, PHG4HitContainer::size(), time0, time1, tree, x0, x1, xID, y0, y1, yID, z0, and z1.

+ Here is the call graph for this function:

Member Data Documentation

std::map<std::string, int> EICG4RPHitTree::_detid
protected

Definition at line 40 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 40 of file EICG4RPHitTree.h

Referenced by AddNode().

std::string EICG4RPHitTree::_filename
protected

Definition at line 38 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 38 of file EICG4RPHitTree.h

Referenced by Init().

std::set<std::string> EICG4RPHitTree::_node_postfix
protected

Definition at line 39 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 39 of file EICG4RPHitTree.h

Referenced by AddNode(), and process_event().

std::vector<float> EICG4RPHitTree::edep
private

Definition at line 58 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 58 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<int> EICG4RPHitTree::layerID
private

Definition at line 47 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 47 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<int> EICG4RPHitTree::layerType
private

Definition at line 46 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 46 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

int EICG4RPHitTree::Nhit
private

Definition at line 45 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 45 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

TFile* EICG4RPHitTree::outfile
protected

Definition at line 42 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 42 of file EICG4RPHitTree.h

Referenced by End(), and Init().

std::vector<float> EICG4RPHitTree::time0
private

Definition at line 56 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 56 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<float> EICG4RPHitTree::time1
private

Definition at line 57 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 57 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

TTree* EICG4RPHitTree::tree
protected

Definition at line 41 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 41 of file EICG4RPHitTree.h

Referenced by End(), Init(), and process_event().

std::vector<float> EICG4RPHitTree::x0
private

Definition at line 50 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 50 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<float> EICG4RPHitTree::x1
private

Definition at line 53 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 53 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<int> EICG4RPHitTree::xID
private

Definition at line 48 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 48 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<float> EICG4RPHitTree::y0
private

Definition at line 51 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 51 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<float> EICG4RPHitTree::y1
private

Definition at line 54 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 54 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<int> EICG4RPHitTree::yID
private

Definition at line 49 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 49 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<float> EICG4RPHitTree::z0
private

Definition at line 52 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 52 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().

std::vector<float> EICG4RPHitTree::z1
private

Definition at line 55 of file EICG4RPHitTree.h.

View newest version in sPHENIX GitHub at line 55 of file EICG4RPHitTree.h

Referenced by Init(), and process_event().


The documentation for this class was generated from the following files: