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

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

+ Inheritance diagram for G4TowerNtuple:
+ Collaboration diagram for G4TowerNtuple:

Public Member Functions

 G4TowerNtuple (const std::string &name="G4TowerNtuple", const std::string &filename="G4TowerNtuple.root")
 constructor
 
 ~G4TowerNtuple () 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 std::string &twrtype, const int detid)
 
- 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::vector< TH1 * > nhits
 
std::vector< TH1 * > eloss
 
std::string _filename
 
std::set< std::string > _node_postfix
 
std::map< std::string,
std::string > 
_tower_type
 
std::map< std::string, int > _detid
 
TNtuple * ntup
 
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 G4TowerNtuple.h.

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

Constructor & Destructor Documentation

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

constructor

Definition at line 23 of file G4TowerNtuple.cc.

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

G4TowerNtuple::~G4TowerNtuple ( )
override

destructor

Definition at line 33 of file G4TowerNtuple.cc.

View newest version in sPHENIX GitHub at line 33 of file G4TowerNtuple.cc

References hm.

Member Function Documentation

void G4TowerNtuple::AddNode ( const std::string &  name,
const std::string &  twrtype,
const int  detid 
)

Definition at line 119 of file G4TowerNtuple.cc.

View newest version in sPHENIX GitHub at line 119 of file G4TowerNtuple.cc

References _detid, _node_postfix, _tower_type, and perf_headwind::name.

int G4TowerNtuple::End ( PHCompositeNode )
overridevirtual

end of run method

Reimplemented from SubsysReco.

Definition at line 108 of file G4TowerNtuple.cc.

View newest version in sPHENIX GitHub at line 108 of file G4TowerNtuple.cc

References _filename, Fun4AllHistoManager::dumpHistos(), hm, ntup, and outfile.

+ Here is the call graph for this function:

int G4TowerNtuple::Init ( PHCompositeNode )
overridevirtual

full initialization

Reimplemented from SubsysReco.

Definition at line 39 of file G4TowerNtuple.cc.

View newest version in sPHENIX GitHub at line 39 of file G4TowerNtuple.cc

References _filename, eloss, h1, hm, Fun4AllBase::Name(), ntup, and outfile.

+ Here is the call graph for this function:

int G4TowerNtuple::process_event ( PHCompositeNode topNode)
overridevirtual

event processing method

Reimplemented from SubsysReco.

Definition at line 52 of file G4TowerNtuple.cc.

View newest version in sPHENIX GitHub at line 52 of file G4TowerNtuple.cc

References _detid, _node_postfix, _tower_type, channel(), eloss, TowerInfoContainer::encode_key(), energy, eta, KF_timing::etabin, TowerInfo::get_energy(), RawTowerGeomContainer::get_etacenter(), RawTowerGeomContainer::get_phicenter(), TowerInfoContainer::get_tower_at_channel(), TowerInfoContainer::getTowerEtaBin(), TowerInfoContainer::getTowerPhiBin(), ntup, ActsTests::PropagationDatasets::phi, and TowerInfoContainer::size().

+ Here is the call graph for this function:

Member Data Documentation

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

Definition at line 47 of file G4TowerNtuple.h.

View newest version in sPHENIX GitHub at line 47 of file G4TowerNtuple.h

Referenced by AddNode(), and process_event().

std::string G4TowerNtuple::_filename
protected

Definition at line 44 of file G4TowerNtuple.h.

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

Referenced by End(), and Init().

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

Definition at line 45 of file G4TowerNtuple.h.

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

Referenced by AddNode(), and process_event().

std::map<std::string, std::string> G4TowerNtuple::_tower_type
protected

Definition at line 46 of file G4TowerNtuple.h.

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

Referenced by AddNode(), and process_event().

std::vector<TH1 *> G4TowerNtuple::eloss
protected

Definition at line 42 of file G4TowerNtuple.h.

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

Referenced by Init(), and process_event().

Fun4AllHistoManager* G4TowerNtuple::hm
protected

Definition at line 40 of file G4TowerNtuple.h.

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

Referenced by End(), Init(), and ~G4TowerNtuple().

int G4TowerNtuple::nblocks
protected

Definition at line 39 of file G4TowerNtuple.h.

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

std::vector<TH1 *> G4TowerNtuple::nhits
protected

Definition at line 41 of file G4TowerNtuple.h.

View newest version in sPHENIX GitHub at line 41 of file G4TowerNtuple.h

TNtuple* G4TowerNtuple::ntup
protected

Definition at line 48 of file G4TowerNtuple.h.

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

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

TFile* G4TowerNtuple::outfile
protected

Definition at line 49 of file G4TowerNtuple.h.

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

Referenced by End(), and Init().


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