EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4zdc/EICG4ZDCHitTree.h>
Public Member Functions | |
EICG4ZDCHitTree (const std::string &name="EICG4ZDCHitTree", const std::string &filename="EICG4ZDCHitTree.root") | |
constructor | |
~EICG4ZDCHitTree () 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 | |
int | nblocks |
Fun4AllHistoManager * | hm |
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< int > | layerType |
std::vector< int > | layerID |
std::vector< int > | xID |
std::vector< int > | yID |
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 |
int | Ntrack |
std::vector< float > | trk_px |
std::vector< float > | trk_py |
std::vector< float > | trk_pz |
std::vector< float > | trk_e |
std::vector< int > | trk_pid |
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") | |
Definition at line 17 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 17 of file EICG4ZDCHitTree.h
EICG4ZDCHitTree::EICG4ZDCHitTree | ( | const std::string & | name = "EICG4ZDCHitTree" , |
const std::string & | filename = "EICG4ZDCHitTree.root" |
||
) |
constructor
Definition at line 25 of file EICG4ZDCHitTree.cc.
View newest version in sPHENIX GitHub at line 25 of file EICG4ZDCHitTree.cc
|
override |
destructor
Definition at line 37 of file EICG4ZDCHitTree.cc.
View newest version in sPHENIX GitHub at line 37 of file EICG4ZDCHitTree.cc
References hm.
void EICG4ZDCHitTree::AddNode | ( | const std::string & | name, |
const int | detid = 0 |
||
) |
Definition at line 170 of file EICG4ZDCHitTree.cc.
View newest version in sPHENIX GitHub at line 170 of file EICG4ZDCHitTree.cc
References _detid, _node_postfix, and name.
|
overridevirtual |
end of run method
Reimplemented from SubsysReco.
Definition at line 159 of file EICG4ZDCHitTree.cc.
View newest version in sPHENIX GitHub at line 159 of file EICG4ZDCHitTree.cc
References _filename, Fun4AllHistoManager::dumpHistos(), hm, outfile, and tree.
|
overridevirtual |
full initialization
Reimplemented from SubsysReco.
Definition at line 42 of file EICG4ZDCHitTree.cc.
View newest version in sPHENIX GitHub at line 42 of file EICG4ZDCHitTree.cc
References _filename, edep, hm, layerID, layerType, Fun4AllBase::Name(), Nhit, Ntrack, outfile, time0, time1, tree, trk_e, trk_pid, trk_px, trk_py, trk_pz, x0, x1, xID, y0, y1, yID, z0, and z1.
|
overridevirtual |
event processing method
Get this truth particle
Get this particles momentum, etc.
Reimplemented from SubsysReco.
Definition at line 73 of file EICG4ZDCHitTree.cc.
View newest version in sPHENIX GitHub at line 73 of file EICG4ZDCHitTree.cc
References _node_postfix, edep, PHG4Particle::get_e(), PHG4Particle::get_pid(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), PHG4HitContainer::getHits(), PHG4InEvent::GetParticles(), layerID, layerType, Nhit, Ntrack, time0, time1, tree, trk_e, trk_pid, trk_px, trk_py, trk_pz, x0, x1, xID, y0, y1, yID, z0, and z1.
|
protected |
Definition at line 42 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 42 of file EICG4ZDCHitTree.h
Referenced by AddNode().
|
protected |
Definition at line 40 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 40 of file EICG4ZDCHitTree.h
|
protected |
Definition at line 41 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 41 of file EICG4ZDCHitTree.h
Referenced by AddNode(), and process_event().
|
private |
Definition at line 62 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 62 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
protected |
Definition at line 39 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 39 of file EICG4ZDCHitTree.h
Referenced by End(), Init(), and ~EICG4ZDCHitTree().
|
private |
Definition at line 51 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 51 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 50 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 50 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
protected |
Definition at line 38 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 38 of file EICG4ZDCHitTree.h
|
private |
Definition at line 48 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 48 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 64 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 64 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
protected |
Definition at line 44 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 44 of file EICG4ZDCHitTree.h
|
private |
Definition at line 60 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 60 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 61 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 61 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
protected |
Definition at line 43 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 43 of file EICG4ZDCHitTree.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 68 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 68 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 69 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 69 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 65 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 65 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 66 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 66 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 67 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 67 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 54 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 54 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 57 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 57 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 52 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 52 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 55 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 55 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 58 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 58 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 53 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 53 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 56 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 56 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 59 of file EICG4ZDCHitTree.h.
View newest version in sPHENIX GitHub at line 59 of file EICG4ZDCHitTree.h
Referenced by Init(), and process_event().