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

#include <coresoftware/blob/master/offline/packages/tpcdaq/TPCIntegratedCharge.h>

+ Inheritance diagram for TPCIntegratedCharge:
+ Collaboration diagram for TPCIntegratedCharge:

Public Member Functions

 TPCIntegratedCharge (unsigned int minLayer, unsigned int m_maxLayer, const std::string &outputfilename="TPCIntegratedCharge.root")
 
virtual ~TPCIntegratedCharge ()
 
int Init (PHCompositeNode *topNode)
 
int InitRun (PHCompositeNode *topNode)
 
int process_event (PHCompositeNode *topNode)
 
int End (PHCompositeNode *topNode)
 Called at the end of all processing.
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
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.
 

Private Member Functions

Fun4AllHistoManagergetHistoManager ()
 

Private Attributes

std::string m_outputFileName
 
unsigned int m_minLayer
 
unsigned int m_maxLayer
 

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 TPCIntegratedCharge.h.

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

Constructor & Destructor Documentation

TPCIntegratedCharge::TPCIntegratedCharge ( unsigned int  minLayer,
unsigned int  m_maxLayer,
const std::string &  outputfilename = "TPCIntegratedCharge.root" 
)

Definition at line 43 of file TPCIntegratedCharge.cc.

View newest version in sPHENIX GitHub at line 43 of file TPCIntegratedCharge.cc

TPCIntegratedCharge::~TPCIntegratedCharge ( )
virtual

Definition at line 54 of file TPCIntegratedCharge.cc.

View newest version in sPHENIX GitHub at line 54 of file TPCIntegratedCharge.cc

Member Function Documentation

int TPCIntegratedCharge::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 63 of file TPCIntegratedCharge.cc.

View newest version in sPHENIX GitHub at line 63 of file TPCIntegratedCharge.cc

References assert, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), Fun4AllHistoManager::getHisto(), getHistoManager(), i, m_outputFileName, Fun4AllHistoManager::nHistos(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_SOME.

+ Here is the call graph for this function:

Fun4AllHistoManager * TPCIntegratedCharge::getHistoManager ( )
private

Definition at line 359 of file TPCIntegratedCharge.cc.

View newest version in sPHENIX GitHub at line 359 of file TPCIntegratedCharge.cc

References assert, Fun4AllServer::getHistoManager(), Fun4AllServer::instance(), and Fun4AllServer::registerHistoManager().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int TPCIntegratedCharge::Init ( PHCompositeNode )
virtual

Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).

Reimplemented from SubsysReco.

Definition at line 58 of file TPCIntegratedCharge.cc.

View newest version in sPHENIX GitHub at line 58 of file TPCIntegratedCharge.cc

References Fun4AllReturnCodes::EVENT_OK.

int TPCIntegratedCharge::InitRun ( PHCompositeNode )
virtual

Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.

Reimplemented from SubsysReco.

Definition at line 82 of file TPCIntegratedCharge.cc.

View newest version in sPHENIX GitHub at line 82 of file TPCIntegratedCharge.cc

References assert, Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), getHistoManager(), h, i, m_maxLayer, m_minLayer, m_outputFileName, PHTFileServer::open(), Fun4AllHistoManager::registerHisto(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_SOME.

+ Here is the call graph for this function:

int TPCIntegratedCharge::process_event ( PHCompositeNode )
virtual

Member Data Documentation

unsigned int TPCIntegratedCharge::m_maxLayer
private

Definition at line 35 of file TPCIntegratedCharge.h.

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

Referenced by InitRun(), and process_event().

unsigned int TPCIntegratedCharge::m_minLayer
private

Definition at line 34 of file TPCIntegratedCharge.h.

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

Referenced by InitRun(), and process_event().

std::string TPCIntegratedCharge::m_outputFileName
private

Definition at line 32 of file TPCIntegratedCharge.h.

View newest version in sPHENIX GitHub at line 32 of file TPCIntegratedCharge.h

Referenced by End(), and InitRun().


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