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

#include <coresoftware/blob/master/offline/packages/tpc/TpcClusterQA.h>

+ Inheritance diagram for TpcClusterQA:
+ Collaboration diagram for TpcClusterQA:

Public Member Functions

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

void createHistos ()
 
std::string getHistoPrefix () const
 

Private Attributes

std::set< int > m_layers
 
std::multimap< int, int > m_layerRegionMap
 
int m_event = 0
 
int m_totalClusters = 0
 

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 14 of file TpcClusterQA.h.

View newest version in sPHENIX GitHub at line 14 of file TpcClusterQA.h

Constructor & Destructor Documentation

TpcClusterQA::TpcClusterQA ( const std::string &  name = "TpcClusterQA")

Definition at line 29 of file TpcClusterQA.cc.

View newest version in sPHENIX GitHub at line 29 of file TpcClusterQA.cc

TpcClusterQA::~TpcClusterQA ( )
override

Definition at line 35 of file TpcClusterQA.cc.

View newest version in sPHENIX GitHub at line 35 of file TpcClusterQA.cc

Member Function Documentation

void TpcClusterQA::createHistos ( )
private

Definition at line 193 of file TpcClusterQA.cc.

View newest version in sPHENIX GitHub at line 193 of file TpcClusterQA.cc

References assert, QAHistManagerDef::getHistoManager(), getHistoPrefix(), and h.

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int TpcClusterQA::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 184 of file TpcClusterQA.cc.

View newest version in sPHENIX GitHub at line 184 of file TpcClusterQA.cc

References Fun4AllReturnCodes::EVENT_OK.

int TpcClusterQA::EndRun ( const int  )
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 174 of file TpcClusterQA.cc.

View newest version in sPHENIX GitHub at line 174 of file TpcClusterQA.cc

References assert, Fun4AllReturnCodes::EVENT_OK, QAHistManagerDef::getHistoManager(), getHistoPrefix(), m_event, and m_totalClusters.

+ Here is the call graph for this function:

std::string TpcClusterQA::getHistoPrefix ( ) const
private

Definition at line 189 of file TpcClusterQA.cc.

View newest version in sPHENIX GitHub at line 189 of file TpcClusterQA.cc

References Fun4AllBase::Name().

Referenced by createHistos(), EndRun(), and process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int TpcClusterQA::Init ( PHCompositeNode )
overridevirtual

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 40 of file TpcClusterQA.cc.

View newest version in sPHENIX GitHub at line 40 of file TpcClusterQA.cc

References Fun4AllReturnCodes::EVENT_OK.

int TpcClusterQA::InitRun ( PHCompositeNode )
overridevirtual

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 46 of file TpcClusterQA.cc.

View newest version in sPHENIX GitHub at line 46 of file TpcClusterQA.cc

References Fun4AllReturnCodes::ABORTRUN, createHistos(), Fun4AllReturnCodes::EVENT_OK, m_layerRegionMap, m_layers, and PHWHERE.

+ Here is the call graph for this function:

int TpcClusterQA::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 79 of file TpcClusterQA.cc.

View newest version in sPHENIX GitHub at line 79 of file TpcClusterQA.cc

References Fun4AllReturnCodes::ABORTEVENT, assert, Fun4AllReturnCodes::EVENT_OK, QAHistManagerDef::getHistoManager(), getHistoPrefix(), TrkrDefs::getLayer(), TpcDefs::getSectorId(), TpcDefs::getSide(), h, add_histos::hist, add_histos::histos, i, it, m_event, m_layerRegionMap, m_totalClusters, PHWHERE, Acts::tGeometry, and TrkrDefs::tpcId.

+ Here is the call graph for this function:

Member Data Documentation

int TpcClusterQA::m_event = 0
private

Definition at line 34 of file TpcClusterQA.h.

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

Referenced by EndRun(), and process_event().

std::multimap<int, int> TpcClusterQA::m_layerRegionMap
private

Definition at line 32 of file TpcClusterQA.h.

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

Referenced by InitRun(), and process_event().

std::set<int> TpcClusterQA::m_layers
private

Definition at line 31 of file TpcClusterQA.h.

View newest version in sPHENIX GitHub at line 31 of file TpcClusterQA.h

Referenced by InitRun().

int TpcClusterQA::m_totalClusters = 0
private

Definition at line 35 of file TpcClusterQA.h.

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

Referenced by EndRun(), and process_event().


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