Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/simulation/g4simulation/g4histos/G4SnglTree.h>
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") | |
Definition at line 18 of file G4SnglTree.h.
View newest version in sPHENIX GitHub at line 18 of file G4SnglTree.h
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
|
inlineoverride |
destructor
Definition at line 25 of file G4SnglTree.h.
View newest version in sPHENIX GitHub at line 25 of file G4SnglTree.h
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.
|
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
|
overridevirtual |
full initialization
Event level
Hit level
Reimplemented from SubsysReco.
Definition at line 32 of file G4SnglTree.cc.
View newest version in sPHENIX GitHub at line 32 of file G4SnglTree.cc
References _filename, G4EvtTree::cemcabsESum, G4EvtTree::cemcabsLayers, G4EvtTree::cemcactESum, G4EvtTree::cemcactLayers, G4EvtTree::detid, G4EvtTree::edep, G4EvtTree::energy, g4tree, G4EvtTree::hcalabsESum, G4EvtTree::hcalabsLayers, G4EvtTree::hcalactESum, G4EvtTree::hcalactLayers, G4EvtTree::hitid, G4EvtTree::layer, mG4EvtTree, G4EvtTree::nhits, outfile, G4EvtTree::phi, G4EvtTree::px, G4EvtTree::py, G4EvtTree::pz, G4EvtTree::scintid, G4EvtTree::theta, G4EvtTree::trkid, G4EvtTree::x0, G4EvtTree::x1, G4EvtTree::y0, G4EvtTree::y1, G4EvtTree::z0, and G4EvtTree::z1.
|
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.
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
protected |
Definition at line 42 of file G4SnglTree.h.
View newest version in sPHENIX GitHub at line 42 of file G4SnglTree.h
|
protected |
Definition at line 50 of file G4SnglTree.h.
View newest version in sPHENIX GitHub at line 50 of file G4SnglTree.h