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

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4zdc/EICG4ZDCHitTree.h>

+ Inheritance diagram for EICG4ZDCHitTree:
+ Collaboration diagram for EICG4ZDCHitTree:

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
 
Fun4AllHistoManagerhm
 
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
 
int Ntrack
 
std::vector< float > trk_px
 
std::vector< float > trk_py
 
std::vector< float > trk_pz
 
std::vector< float > trk_e
 
std::vector< inttrk_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")
 

Detailed Description

Definition at line 17 of file EICG4ZDCHitTree.h.

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

Constructor & Destructor Documentation

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

EICG4ZDCHitTree::~EICG4ZDCHitTree ( )
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.

Member Function Documentation

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, and _node_postfix.

int EICG4ZDCHitTree::End ( PHCompositeNode topNode)
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.

+ Here is the call graph for this function:

int EICG4ZDCHitTree::Init ( PHCompositeNode )
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.

+ Here is the call graph for this function:

int EICG4ZDCHitTree::process_event ( PHCompositeNode topNode)
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(), hits(), 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.

+ Here is the call graph for this function:

Member Data Documentation

std::map<std::string, int> EICG4ZDCHitTree::_detid
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().

std::string EICG4ZDCHitTree::_filename
protected

Definition at line 40 of file EICG4ZDCHitTree.h.

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

Referenced by End(), and Init().

std::set<std::string> EICG4ZDCHitTree::_node_postfix
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().

std::vector<float> EICG4ZDCHitTree::edep
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().

Fun4AllHistoManager* EICG4ZDCHitTree::hm
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().

std::vector<int> EICG4ZDCHitTree::layerID
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().

std::vector<int> EICG4ZDCHitTree::layerType
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().

int EICG4ZDCHitTree::nblocks
protected

Definition at line 38 of file EICG4ZDCHitTree.h.

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

int EICG4ZDCHitTree::Nhit
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().

int EICG4ZDCHitTree::Ntrack
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().

TFile* EICG4ZDCHitTree::outfile
protected

Definition at line 44 of file EICG4ZDCHitTree.h.

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

Referenced by End(), and Init().

std::vector<float> EICG4ZDCHitTree::time0
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().

std::vector<float> EICG4ZDCHitTree::time1
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().

TTree* EICG4ZDCHitTree::tree
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().

std::vector<float> EICG4ZDCHitTree::trk_e
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().

std::vector<int> EICG4ZDCHitTree::trk_pid
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().

std::vector<float> EICG4ZDCHitTree::trk_px
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().

std::vector<float> EICG4ZDCHitTree::trk_py
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().

std::vector<float> EICG4ZDCHitTree::trk_pz
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().

std::vector<float> EICG4ZDCHitTree::x0
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().

std::vector<float> EICG4ZDCHitTree::x1
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().

std::vector<int> EICG4ZDCHitTree::xID
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().

std::vector<float> EICG4ZDCHitTree::y0
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().

std::vector<float> EICG4ZDCHitTree::y1
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().

std::vector<int> EICG4ZDCHitTree::yID
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().

std::vector<float> EICG4ZDCHitTree::z0
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().

std::vector<float> EICG4ZDCHitTree::z1
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().


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