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

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

+ Inheritance diagram for G4ScintillatorTowerTTree:
+ Collaboration diagram for G4ScintillatorTowerTTree:

Public Member Functions

 G4ScintillatorTowerTTree (const std::string &name="SCINTILLATORTOWERTTREE")
 
 ~G4ScintillatorTowerTTree () override
 
int Init (PHCompositeNode *) override
 full initialization
 
int process_event (PHCompositeNode *) override
 event processing method
 
int End (PHCompositeNode *) override
 Called at the end of all processing.
 
void Detector (const std::string &det)
 
void SaveScintillatorTowers (const int i=1)
 
void HistoFileName (const std::string &name)
 
- 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

std::string _detector
 
std::string _outnodename
 
std::string _towernodename
 
std::string _histofilename
 
int savetowers
 
int evtno
 
Fun4AllHistoManagerhm
 
TH1 * etot_hist
 

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 12 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 12 of file G4ScintillatorTowerTTree.h

Constructor & Destructor Documentation

G4ScintillatorTowerTTree::G4ScintillatorTowerTTree ( const std::string &  name = "SCINTILLATORTOWERTTREE")

Definition at line 27 of file G4ScintillatorTowerTTree.cc.

View newest version in sPHENIX GitHub at line 27 of file G4ScintillatorTowerTTree.cc

G4ScintillatorTowerTTree::~G4ScintillatorTowerTTree ( )
inlineoverride

Definition at line 16 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 16 of file G4ScintillatorTowerTTree.h

Member Function Documentation

void G4ScintillatorTowerTTree::Detector ( const std::string &  det)

Definition at line 99 of file G4ScintillatorTowerTTree.cc.

View newest version in sPHENIX GitHub at line 99 of file G4ScintillatorTowerTTree.cc

References _detector, _histofilename, _outnodename, and _towernodename.

int G4ScintillatorTowerTTree::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 92 of file G4ScintillatorTowerTTree.cc.

View newest version in sPHENIX GitHub at line 92 of file G4ScintillatorTowerTTree.cc

References _histofilename, Fun4AllHistoManager::dumpHistos(), and hm.

+ Here is the call graph for this function:

void G4ScintillatorTowerTTree::HistoFileName ( const std::string &  name)
inline

Definition at line 30 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 30 of file G4ScintillatorTowerTTree.h

References _histofilename, and perf_headwind::name.

int G4ScintillatorTowerTTree::Init ( PHCompositeNode topNode)
overridevirtual

full initialization

Reimplemented from SubsysReco.

Definition at line 36 of file G4ScintillatorTowerTTree.cc.

View newest version in sPHENIX GitHub at line 36 of file G4ScintillatorTowerTTree.cc

References _detector, _outnodename, PHCompositeNode::addNode(), etot_hist, evtno, PHNodeIterator::findFirst(), hm, and Fun4AllHistoManager::registerHisto().

+ Here is the call graph for this function:

int G4ScintillatorTowerTTree::process_event ( PHCompositeNode topNode)
overridevirtual

event processing method

Reimplemented from SubsysReco.

Definition at line 57 of file G4ScintillatorTowerTTree.cc.

View newest version in sPHENIX GitHub at line 57 of file G4ScintillatorTowerTTree.cc

References _outnodename, _towernodename, G4RootScintillatorTowerContainer::AddTower(), channel(), etot_hist, evtno, TowerInfo::get_energy(), savetowers, G4RootScintillatorTowerContainer::set_etotal(), and G4RootScintillatorTowerContainer::set_event().

+ Here is the call graph for this function:

void G4ScintillatorTowerTTree::SaveScintillatorTowers ( const int  i = 1)
inline

Definition at line 28 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 28 of file G4ScintillatorTowerTTree.h

References i, and savetowers.

Member Data Documentation

std::string G4ScintillatorTowerTTree::_detector
protected

Definition at line 33 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 33 of file G4ScintillatorTowerTTree.h

Referenced by Detector(), and Init().

std::string G4ScintillatorTowerTTree::_histofilename
protected

Definition at line 36 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 36 of file G4ScintillatorTowerTTree.h

Referenced by Detector(), End(), and HistoFileName().

std::string G4ScintillatorTowerTTree::_outnodename
protected

Definition at line 34 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 34 of file G4ScintillatorTowerTTree.h

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

std::string G4ScintillatorTowerTTree::_towernodename
protected

Definition at line 35 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 35 of file G4ScintillatorTowerTTree.h

Referenced by Detector(), and process_event().

TH1* G4ScintillatorTowerTTree::etot_hist
protected

Definition at line 40 of file G4ScintillatorTowerTTree.h.

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

Referenced by Init(), and process_event().

int G4ScintillatorTowerTTree::evtno
protected

Definition at line 38 of file G4ScintillatorTowerTTree.h.

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

Referenced by Init(), and process_event().

Fun4AllHistoManager* G4ScintillatorTowerTTree::hm
protected

Definition at line 39 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 39 of file G4ScintillatorTowerTTree.h

Referenced by End(), and Init().

int G4ScintillatorTowerTTree::savetowers
protected

Definition at line 37 of file G4ScintillatorTowerTTree.h.

View newest version in sPHENIX GitHub at line 37 of file G4ScintillatorTowerTTree.h

Referenced by process_event(), and SaveScintillatorTowers().


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