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

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4eicdirc/G4DIRCTree.h>

+ Inheritance diagram for G4DIRCTree:
+ Collaboration diagram for G4DIRCTree:

Public Member Functions

 G4DIRCTree (const std::string &name="G4DIRCTree", const std::string &filename="G4DIRCTree.root")
 constructor
 
 ~G4DIRCTree () override
 destructor
 
int Init (PHCompositeNode *) override
 full initialization
 
int process_event (PHCompositeNode *) override
 event processing method
 
int process_hit (PHG4HitContainer *hits, const std::string &dName, int detid, int &nhits)
 hit 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.
 

Public Attributes

int evt_num = 0
 

Protected Attributes

int nblocks
 
std::string _filename
 
std::set< std::string > _node_postfix
 
std::map< std::string, int > _detid
 
TTree * g4tree
 
G4EventTree mG4EvtTree
 
TFile * outfile
 

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 19 of file G4DIRCTree.h.

View newest version in sPHENIX GitHub at line 19 of file G4DIRCTree.h

Constructor & Destructor Documentation

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

constructor

Definition at line 23 of file G4DIRCTree.cc.

View newest version in sPHENIX GitHub at line 23 of file G4DIRCTree.cc

G4DIRCTree::~G4DIRCTree ( )
inlineoverride

destructor

Definition at line 26 of file G4DIRCTree.h.

View newest version in sPHENIX GitHub at line 26 of file G4DIRCTree.h

Member Function Documentation

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

Definition at line 149 of file G4DIRCTree.cc.

View newest version in sPHENIX GitHub at line 149 of file G4DIRCTree.cc

References _detid, _node_postfix, and name.

int G4DIRCTree::End ( PHCompositeNode topNode)
overridevirtual

end of run method

Reimplemented from SubsysReco.

Definition at line 139 of file G4DIRCTree.cc.

View newest version in sPHENIX GitHub at line 139 of file G4DIRCTree.cc

References g4tree, and outfile.

int G4DIRCTree::process_event ( PHCompositeNode topNode)
overridevirtual

event processing method

Reimplemented from SubsysReco.

Definition at line 83 of file G4DIRCTree.cc.

View newest version in sPHENIX GitHub at line 83 of file G4DIRCTree.cc

References _detid, _node_postfix, evt_num, g4tree, PHG4TruthInfoContainer::GetPrimaryParticleRange(), mG4EvtTree, G4EventTree::momentum, G4EventTree::nhits, p, G4EventTree::phi, phi, G4EventTree::pid, pid, process_hit(), G4EventTree::px, G4EventTree::py, G4EventTree::pz, G4EventTree::theta, and theta().

+ Here is the call graph for this function:

int G4DIRCTree::process_hit ( PHG4HitContainer hits,
const std::string &  dName,
int  detid,
int &  nhits 
)

Member Data Documentation

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

Definition at line 48 of file G4DIRCTree.h.

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

Referenced by AddNode(), and process_event().

std::string G4DIRCTree::_filename
protected

Definition at line 46 of file G4DIRCTree.h.

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

Referenced by Init().

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

Definition at line 47 of file G4DIRCTree.h.

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

Referenced by AddNode(), and process_event().

int G4DIRCTree::evt_num = 0

Definition at line 41 of file G4DIRCTree.h.

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

Referenced by process_event().

TTree* G4DIRCTree::g4tree
protected

Definition at line 50 of file G4DIRCTree.h.

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

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

G4EventTree G4DIRCTree::mG4EvtTree
protected

Definition at line 51 of file G4DIRCTree.h.

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

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

int G4DIRCTree::nblocks
protected

Definition at line 44 of file G4DIRCTree.h.

View newest version in sPHENIX GitHub at line 44 of file G4DIRCTree.h

TFile* G4DIRCTree::outfile
protected

Definition at line 52 of file G4DIRCTree.h.

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

Referenced by End(), and Init().


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