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

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

+ Inheritance diagram for EICG4ZDCNtuple:
+ Collaboration diagram for EICG4ZDCNtuple:

Public Member Functions

 EICG4ZDCNtuple (const std::string &name="EICG4ZDCNtuple", const std::string &filename="EICG4ZDCNtuple.root")
 constructor
 
 ~EICG4ZDCNtuple () 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
 
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 = INT_MAX - 10
}
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 17 of file EICG4ZDCNtuple.h.

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

Constructor & Destructor Documentation

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

constructor

Definition at line 22 of file EICG4ZDCNtuple.cc.

View newest version in sPHENIX GitHub at line 22 of file EICG4ZDCNtuple.cc

EICG4ZDCNtuple::~EICG4ZDCNtuple ( )
override

destructor

Definition at line 31 of file EICG4ZDCNtuple.cc.

View newest version in sPHENIX GitHub at line 31 of file EICG4ZDCNtuple.cc

References hm.

Member Function Documentation

void EICG4ZDCNtuple::AddNode ( const std::string &  name,
const int  detid = 0 
)

Definition at line 95 of file EICG4ZDCNtuple.cc.

View newest version in sPHENIX GitHub at line 95 of file EICG4ZDCNtuple.cc

References _detid, and _node_postfix.

int EICG4ZDCNtuple::End ( PHCompositeNode topNode)
overridevirtual

end of run method

Reimplemented from SubsysReco.

Definition at line 84 of file EICG4ZDCNtuple.cc.

View newest version in sPHENIX GitHub at line 84 of file EICG4ZDCNtuple.cc

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

+ Here is the call graph for this function:

int EICG4ZDCNtuple::Init ( PHCompositeNode )
overridevirtual

full initialization

Reimplemented from SubsysReco.

Definition at line 36 of file EICG4ZDCNtuple.cc.

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

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

+ Here is the call graph for this function:

int EICG4ZDCNtuple::process_event ( PHCompositeNode topNode)
overridevirtual

event processing method

Reimplemented from SubsysReco.

Definition at line 45 of file EICG4ZDCNtuple.cc.

View newest version in sPHENIX GitHub at line 45 of file EICG4ZDCNtuple.cc

References _node_postfix, PHG4HitContainer::getHits(), hits(), and ntup.

+ Here is the call graph for this function:

Member Data Documentation

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

Definition at line 42 of file EICG4ZDCNtuple.h.

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

Referenced by AddNode().

std::string EICG4ZDCNtuple::_filename
protected

Definition at line 40 of file EICG4ZDCNtuple.h.

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

Referenced by End(), and Init().

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

Definition at line 41 of file EICG4ZDCNtuple.h.

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

Referenced by AddNode(), and process_event().

Fun4AllHistoManager* EICG4ZDCNtuple::hm
protected

Definition at line 39 of file EICG4ZDCNtuple.h.

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

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

int EICG4ZDCNtuple::nblocks
protected

Definition at line 38 of file EICG4ZDCNtuple.h.

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

TNtuple* EICG4ZDCNtuple::ntup
protected

Definition at line 43 of file EICG4ZDCNtuple.h.

View newest version in sPHENIX GitHub at line 43 of file EICG4ZDCNtuple.h

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

TFile* EICG4ZDCNtuple::outfile
protected

Definition at line 44 of file EICG4ZDCNtuple.h.

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

Referenced by End(), and Init().


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