Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4SnglTree Class Reference

#include <coresoftware/blob/master/simulation/g4simulation/g4histos/G4SnglTree.h>

+ Inheritance diagram for G4SnglTree:
+ Collaboration diagram for G4SnglTree:

Public Member Functions

 G4SnglTree (const std::string &name="G4SnglTree", const std::string &filename="G4SnglTree.root")
 constructor
 
 ~G4SnglTree () 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.
 

Protected Attributes

int nblocks
 
std::string _filename
 
std::set< std::string > _node_postfix
 
std::map< std::string, int > _detid
 
TTree * g4tree
 
G4EvtTree 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 = std::numeric_limits<int>::max() - 10
}
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 18 of file G4SnglTree.h.

View newest version in sPHENIX GitHub at line 18 of file G4SnglTree.h

Constructor & Destructor Documentation

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

constructor

Definition at line 23 of file G4SnglTree.cc.

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

G4SnglTree::~G4SnglTree ( )
inlineoverride

destructor

Definition at line 25 of file G4SnglTree.h.

View newest version in sPHENIX GitHub at line 25 of file G4SnglTree.h

Member Function Documentation

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

Definition at line 142 of file G4SnglTree.cc.

View newest version in sPHENIX GitHub at line 142 of file G4SnglTree.cc

References _detid, _node_postfix, and perf_headwind::name.

int G4SnglTree::End ( PHCompositeNode )
overridevirtual

end of run method

Reimplemented from SubsysReco.

Definition at line 132 of file G4SnglTree.cc.

View newest version in sPHENIX GitHub at line 132 of file G4SnglTree.cc

References g4tree, and outfile.

int G4SnglTree::process_event ( PHCompositeNode topNode)
overridevirtual

event processing method

Reimplemented from SubsysReco.

Definition at line 74 of file G4SnglTree.cc.

View newest version in sPHENIX GitHub at line 74 of file G4SnglTree.cc

References _detid, _node_postfix, G4EvtTree::cemcabsLayers, G4EvtTree::cemcactLayers, Acts::UnitConstants::e, G4EvtTree::energy, g4tree, PHG4TruthInfoContainer::GetPrimaryParticleRange(), G4EvtTree::hcalabsLayers, G4EvtTree::hcalactLayers, mG4EvtTree, G4EvtTree::nhits, G4EvtTree::phi, ActsTests::PropagationDatasets::phi, process_hit(), physmon_track_finding_ttbar::pt, G4EvtTree::px, G4EvtTree::py, G4EvtTree::pz, G4EvtTree::theta, and ActsTests::PropagationDatasets::theta.

+ Here is the call graph for this function:

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

hit processing method

Definition at line 149 of file G4SnglTree.cc.

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

References G4EvtTree::cemcabsESum, G4EvtTree::cemcactESum, G4EvtTree::detid, G4EvtTree::edep, PHG4HitContainer::getHits(), G4EvtTree::hcalabsESum, G4EvtTree::hcalactESum, G4EvtTree::hitid, G4EvtTree::layer, mG4EvtTree, G4EvtTree::scintid, G4EvtTree::trkid, G4EvtTree::x0, G4EvtTree::x1, G4EvtTree::y0, G4EvtTree::y1, G4EvtTree::z0, and G4EvtTree::z1.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 46 of file G4SnglTree.h.

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

Referenced by AddNode(), and process_event().

std::string G4SnglTree::_filename
protected

Definition at line 44 of file G4SnglTree.h.

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

Referenced by Init().

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

Definition at line 45 of file G4SnglTree.h.

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

Referenced by AddNode(), and process_event().

TTree* G4SnglTree::g4tree
protected

Definition at line 48 of file G4SnglTree.h.

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

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

G4EvtTree G4SnglTree::mG4EvtTree {}
protected

Definition at line 49 of file G4SnglTree.h.

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

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

int G4SnglTree::nblocks
protected

Definition at line 42 of file G4SnglTree.h.

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

TFile* G4SnglTree::outfile
protected

Definition at line 50 of file G4SnglTree.h.

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

Referenced by End(), and Init().


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