ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/framework/fun4all/Fun4AllHistoManager.h>
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 > | |
T * | makeHisto (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") | |
Definition at line 13 of file Fun4AllHistoManager.h.
View newest version in sPHENIX GitHub at line 13 of file Fun4AllHistoManager.h
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
|
override |
Definition at line 32 of file Fun4AllHistoManager.cc.
View newest version in sPHENIX GitHub at line 32 of file Fun4AllHistoManager.cc
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(), 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().
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 Print().
Referenced by TPCIntegratedCharge::End(), TPCDataStreamEmulator::End(), PHG4ScoringManager::End(), TPCFEETestRecov1::End(), QAG4SimulationCalorimeterSum::eval_trk_proj(), Fun4AllServer::getHisto(), QAG4SimulationUpsilon::process_event(), TPCIntegratedCharge::process_event(), QAG4SimulationVertex::process_event(), QAG4SimulationCalorimeter::process_event(), QAG4SimulationTracking::process_event(), QAG4SimulationKFParticle::process_event(), QAG4SimulationCalorimeterSum::process_event(), TPCDataStreamEmulator::process_event(), PHG4ScoringManager::process_event(), TPCFEETestRecov1::process_event(), JetHepMCLoader::process_event(), QAG4SimulationCalorimeter::process_event_Cluster(), QAG4SimulationCalorimeterSum::process_event_Cluster(), QAG4SimulationCalorimeter::process_event_G4Hit(), QAG4SimulationCalorimeter::process_event_Tower(), QAG4SimulationCalorimeterSum::process_event_TrackProj(), QAG4SimulationJet::process_Spectrum(), and QAG4SimulationJet::process_TruthMatching().
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 Fun4AllBase::Verbosity().
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 Fun4AllBase::Verbosity().
Referenced by Fun4AllServer::getHistoName().
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
Referenced by Fun4AllServer::isHistoRegistered().
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().
|
inline |
Definition at line 43 of file Fun4AllHistoManager.h.
View newest version in sPHENIX GitHub at line 43 of file Fun4AllHistoManager.h
Referenced by TPCIntegratedCharge::End(), TPCDataStreamEmulator::End(), PHG4ScoringManager::End(), and TPCFEETestRecov1::End().
|
overridevirtual |
Print out some info about this module.
what | can 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 Fun4AllBase::Name().
Referenced by getHisto().
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 h1d, PHWHERE, pos(), and Fun4AllBase::Verbosity().
Referenced by AnalyzeSimpleTree::Init(), G4ScintillatorSlatTTree::Init(), G4ScintillatorTowerTTree::Init(), G4RawTowerTTree::Init(), G4HitTTree::Init(), QAG4SimulationUpsilon::Init(), G4VtxNtuple::Init(), QAG4SimulationVertex::Init(), QAG4SimulationCalorimeter::Init(), QAG4SimulationTracking::Init(), QAG4SimulationKFParticle::Init(), QAG4SimulationCalorimeterSum::Init(), QAG4SimulationCalorimeter::Init_Cluster(), QAG4SimulationCalorimeterSum::Init_Cluster(), QAG4SimulationCalorimeter::Init_G4Hit(), QAG4SimulationJet::Init_Spectrum(), QAG4SimulationCalorimeter::Init_Tower(), QAG4SimulationCalorimeterSum::Init_TrackProj(), QAG4SimulationJet::Init_TruthMatching(), TPCIntegratedCharge::InitRun(), TPCDataStreamEmulator::InitRun(), PHG4ScoringManager::InitRun(), TPCFEETestRecov1::InitRun(), JetHepMCLoader::InitRun(), makeHisto(), PHG4ScoringManager::makeScoringHistograms(), registerHisto(), and Fun4AllServer::registerHisto().
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 h1d, and registerHisto().
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.
|
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().
|
private |
Definition at line 50 of file Fun4AllHistoManager.h.
View newest version in sPHENIX GitHub at line 50 of file Fun4AllHistoManager.h
|
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().