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

#include <fun4all_coresoftware/blob/master/offline/framework/fun4all/Fun4AllHistoManager.h>

+ Inheritance diagram for Fun4AllHistoManager:
+ Collaboration diagram for Fun4AllHistoManager:

Public Member Functions

 Fun4AllHistoManager (const std::string &name)
 
 ~Fun4AllHistoManager () override
 
void Print (const std::string &what="ALL") const override
 
bool registerHisto (const std::string &hname, TNamed *h1d, const int replace=0)
 
bool registerHisto (TNamed *h1d, const int replace=0)
 
template<typename T >
TmakeHisto (T *t)
 
int isHistoRegistered (const std::string &name) const
 
TNamed * getHisto (const std::string &hname) const
 
TNamed * getHisto (const unsigned int ihisto) const
 
std::string getHistoName (const unsigned int ihisto) const
 
unsigned int nHistos () const
 
void Reset ()
 
int dumpHistos (const std::string &filename="", const std::string &openmode="RECREATE")
 
void setOutfileName (const std::string &filename)
 
- 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 Attributes

std::string outfilename
 
std::map< const std::string,
TNamed * > 
Histo
 

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 Fun4AllBase
 Fun4AllBase (const std::string &name="NONAME")
 

Detailed Description

Definition at line 13 of file Fun4AllHistoManager.h.

View newest version in sPHENIX GitHub at line 13 of file Fun4AllHistoManager.h

Constructor & Destructor Documentation

Fun4AllHistoManager::Fun4AllHistoManager ( const std::string &  name)

Definition at line 26 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 26 of file Fun4AllHistoManager.cc

Fun4AllHistoManager::~Fun4AllHistoManager ( )
override

Definition at line 32 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 32 of file Fun4AllHistoManager.cc

References Histo.

Member Function Documentation

int Fun4AllHistoManager::dumpHistos ( const std::string &  filename = "",
const std::string &  openmode = "RECREATE" 
)

Definition at line 42 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 42 of file Fun4AllHistoManager.cc

References compress(), INPUTHEPMC::filename, PHFlag::FlagExist(), PHFlag::get_IntFlag(), Histo, recoConsts::instance(), TDirectoryHelper::mkdir(), Fun4AllBase::Name(), outfilename, PHWHERE, pos(), and Fun4AllBase::Verbosity().

Referenced by G4RawTowerTTree::End(), G4ScintillatorTowerTTree::End(), G4ScintillatorSlatTTree::End(), G4HitTTree::End(), CaloAna::End(), G4VtxNtuple::End(), G4EdepNtuple::End(), EICG4ZDCHitTree::End(), EICG4ZDCNtuple::End(), G4HitNtuple::End(), G4TowerNtuple::End(), G4SnglNtuple::End(), SimpleNtuple::End(), G4CellNtuple::End(), JetHepMCLoader::End(), and QAHistManagerDef::saveQARootFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TNamed * Fun4AllHistoManager::getHisto ( const std::string &  hname) const

Definition at line 250 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 250 of file Fun4AllHistoManager.cc

References Histo, and Print().

Referenced by TPCIntegratedCharge::End(), TPCDataStreamEmulator::End(), PHG4ScoringManager::End(), TPCFEETestRecov1::End(), QAG4SimulationCalorimeterSum::eval_trk_proj(), QAG4SimulationEicCalorimeterSum::eval_trk_proj(), Fun4AllServer::getHisto(), QAG4SimulationUpsilon::process_event(), TPCIntegratedCharge::process_event(), QAExample::process_event(), QAG4SimulationVertex::process_event(), QAG4SimulationCalorimeter::process_event(), QAG4SimulationTracking::process_event(), QAG4SimulationEicCalorimeter::process_event(), QAG4SimulationKFParticle::process_event(), QAG4SimulationCalorimeterSum::process_event(), QAG4SimulationEicCalorimeterSum::process_event(), TPCDataStreamEmulator::process_event(), PHG4ScoringManager::process_event(), TPCFEETestRecov1::process_event(), JetHepMCLoader::process_event(), QAG4SimulationCalorimeter::process_event_Cluster(), QAG4SimulationEicCalorimeter::process_event_Cluster(), QAG4SimulationCalorimeterSum::process_event_Cluster(), QAG4SimulationEicCalorimeterSum::process_event_Cluster(), QAG4SimulationEicCalorimeter::process_event_G4Hit(), QAG4SimulationCalorimeter::process_event_G4Hit(), QAG4SimulationCalorimeter::process_event_Tower(), QAG4SimulationEicCalorimeter::process_event_Tower(), QAG4SimulationCalorimeterSum::process_event_TrackProj(), QAG4SimulationEicCalorimeterSum::process_event_TrackProj(), QAG4SimulationJet::process_Spectrum(), and QAG4SimulationJet::process_TruthMatching().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TNamed * Fun4AllHistoManager::getHisto ( const unsigned int  ihisto) const

Definition at line 200 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 200 of file Fun4AllHistoManager.cc

References Histo, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

string Fun4AllHistoManager::getHistoName ( const unsigned int  ihisto) const

Definition at line 225 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 225 of file Fun4AllHistoManager.cc

References Histo, and Fun4AllBase::Verbosity().

Referenced by Fun4AllServer::getHistoName().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Fun4AllHistoManager::isHistoRegistered ( const std::string &  name) const

Definition at line 189 of file Fun4AllHistoManager.cc.

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

References Histo.

Referenced by Fun4AllServer::isHistoRegistered().

+ Here is the caller graph for this function:

template<typename T >
T* Fun4AllHistoManager::makeHisto ( T t)
inline

Definition at line 30 of file Fun4AllHistoManager.h.

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

References registerHisto(), and t.

Referenced by Fun4AllServer::makeHisto().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int Fun4AllHistoManager::nHistos ( ) const
inline

Definition at line 43 of file Fun4AllHistoManager.h.

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

References Histo.

Referenced by TPCIntegratedCharge::End(), TPCDataStreamEmulator::End(), PHG4ScoringManager::End(), and TPCFEETestRecov1::End().

+ Here is the caller graph for this function:

void Fun4AllHistoManager::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

Parameters
whatcan be used to specify what to print exactly.

Reimplemented from Fun4AllBase.

Definition at line 263 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 263 of file Fun4AllHistoManager.cc

References Histo, and Fun4AllBase::Name().

Referenced by getHisto().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Fun4AllHistoManager::registerHisto ( const std::string &  hname,
TNamed *  h1d,
const int  replace = 0 
)

Register histogram or TTree object For histograms, enforce error calculation and propagation

Definition at line 149 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 149 of file Fun4AllHistoManager.cc

References Histo, PHWHERE, pos(), and Fun4AllBase::Verbosity().

Referenced by AnalyzeSimpleTree::Init(), G4RawTowerTTree::Init(), G4ScintillatorSlatTTree::Init(), G4ScintillatorTowerTTree::Init(), G4HitTTree::Init(), QAG4SimulationUpsilon::Init(), G4VtxNtuple::Init(), QAExample::Init(), QAG4SimulationVertex::Init(), QAG4SimulationCalorimeter::Init(), QAG4SimulationTracking::Init(), QAG4SimulationEicCalorimeter::Init(), QAG4SimulationKFParticle::Init(), QAG4SimulationCalorimeterSum::Init(), QAG4SimulationEicCalorimeterSum::Init(), QAG4SimulationEicCalorimeter::Init_Cluster(), QAG4SimulationCalorimeter::Init_Cluster(), QAG4SimulationCalorimeterSum::Init_Cluster(), QAG4SimulationEicCalorimeterSum::Init_Cluster(), QAG4SimulationCalorimeter::Init_G4Hit(), QAG4SimulationEicCalorimeter::Init_G4Hit(), QAG4SimulationJet::Init_Spectrum(), QAG4SimulationEicCalorimeter::Init_Tower(), QAG4SimulationCalorimeter::Init_Tower(), QAG4SimulationCalorimeterSum::Init_TrackProj(), QAG4SimulationEicCalorimeterSum::Init_TrackProj(), QAG4SimulationJet::Init_TruthMatching(), TPCIntegratedCharge::InitRun(), TPCDataStreamEmulator::InitRun(), PHG4ScoringManager::InitRun(), TPCFEETestRecov1::InitRun(), JetHepMCLoader::InitRun(), makeHisto(), PHG4ScoringManager::makeScoringHistograms(), registerHisto(), and Fun4AllServer::registerHisto().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Fun4AllHistoManager::registerHisto ( TNamed *  h1d,
const int  replace = 0 
)

Register histogram or TTree object For histograms, enforce error calculation and propagation

Definition at line 144 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 144 of file Fun4AllHistoManager.cc

References registerHisto().

+ Here is the call graph for this function:

void Fun4AllHistoManager::Reset ( )

Definition at line 283 of file Fun4AllHistoManager.cc.

View newest version in sPHENIX GitHub at line 283 of file Fun4AllHistoManager.cc

References Acts::UnitConstants::h, and Histo.

void Fun4AllHistoManager::setOutfileName ( const std::string &  filename)
inline

Definition at line 46 of file Fun4AllHistoManager.h.

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

References INPUTHEPMC::filename, and outfilename.

Referenced by Fun4AllServer::dumpHistos().

+ Here is the caller graph for this function:

Member Data Documentation

std::map<const std::string, TNamed *> Fun4AllHistoManager::Histo
private

Definition at line 50 of file Fun4AllHistoManager.h.

View newest version in sPHENIX GitHub at line 50 of file Fun4AllHistoManager.h

Referenced by dumpHistos(), getHisto(), getHistoName(), isHistoRegistered(), nHistos(), Print(), registerHisto(), Reset(), and ~Fun4AllHistoManager().

std::string Fun4AllHistoManager::outfilename
private

Definition at line 49 of file Fun4AllHistoManager.h.

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

Referenced by dumpHistos(), and setOutfileName().


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