|
Class Reference for E1039 Core & Analysis Software
|
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/framework/phool/recoConsts.h>
Inheritance diagram for recoConsts:
Collaboration diagram for recoConsts:Public Member Functions | |
| void | set_defaults () |
| set the default value for all the constants needed - user is supposed to add a default value here to introduce new constants More... | |
| void | init (int runNo=0, bool verbose=false) |
| initialize the constants by the runNo - not implemented yet More... | |
| void | init (const std::string &setname, bool verbose=false) |
| initialize the constants by pre-defined parameter set name - not implemented yet More... | |
| void | initfile (const std::string &filename, bool verbose=false) |
| initialize by reading a file More... | |
| virtual void | set_CharFlag (const std::string &name, const std::string &flag) |
| overide the virtual function to expand the environmental variables More... | |
| void | Print () const |
| print all the parameters More... | |
Public Member Functions inherited from PHFlag | |
| PHFlag () | |
| virtual | ~PHFlag () |
| virtual const std::string | get_CharFlag (const std::string &flag) const |
| virtual const std::string | get_CharFlag (const std::string &name, const std::string &defaultval) |
| virtual double | get_DoubleFlag (const std::string &name) const |
| virtual double | get_DoubleFlag (const std::string &name, const double defaultval) |
| virtual void | set_DoubleFlag (const std::string &name, const double flag) |
| virtual float | get_FloatFlag (const std::string &name) const |
| virtual float | get_FloatFlag (const std::string &name, const float defaultval) |
| virtual void | set_FloatFlag (const std::string &name, const float flag) |
| virtual int | get_IntFlag (const std::string &name) const |
| virtual int | get_IntFlag (const std::string &name, const int defaultval) |
| virtual void | set_IntFlag (const std::string &name, const int flag) |
| virtual bool | get_BoolFlag (const std::string &name) const |
| virtual bool | get_BoolFlag (const std::string &name, const bool defaultval) |
| virtual void | set_BoolFlag (const std::string &name, const bool flag) |
| virtual void | PrintDoubleFlags () const |
| virtual void | PrintIntFlags () const |
| virtual void | PrintFloatFlags () const |
| virtual void | PrintCharFlags () const |
| virtual void | PrintBoolFlags () const |
| virtual void | ReadFromFile (const std::string &name, bool verbose=false) |
| virtual void | WriteToFile (const std::string &name) |
| virtual int | FlagExist (const std::string &name) const |
| virtual const std::map< std::string, int > * | IntMap () const |
| virtual const std::map< std::string, float > * | FloatMap () const |
| virtual const std::map< std::string, double > * | DoubleMap () const |
| virtual const std::map< std::string, std::string > * | CharMap () const |
| virtual const std::map< std::string, bool > * | BoolMap () const |
Static Public Member Functions | |
| static recoConsts * | instance () |
Protected Member Functions | |
| recoConsts () | |
| std::string | ExpandEnvironmentals (const std::string &input) |
Static Protected Attributes | |
| static recoConsts * | __instance = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from PHFlag | |
| std::map< std::string, int > | intflag |
| std::map< std::string, double > | doubleflag |
| std::map< std::string, float > | floatflag |
| std::map< std::string, std::string > | charflag |
| std::map< std::string, bool > | boolflag |
This class instantiates a singleton object that can be accessed via recoConsts::instance() User is expected to do the following at the begining of the user macro:
Definition at line 17 of file recoConsts.h.
|
protected |
Definition at line 18 of file recoConsts.cc.
Referenced by instance().
Here is the caller graph for this function:
|
protected |
Definition at line 27 of file recoConsts.cc.
Referenced by set_CharFlag().
Here is the caller graph for this function:| void recoConsts::init | ( | const std::string & | setname, |
| bool | verbose = false |
||
| ) |
initialize the constants by pre-defined parameter set name - not implemented yet
Definition at line 192 of file recoConsts.cc.
References Print(), PHFlag::set_BoolFlag(), and PHFlag::set_DoubleFlag().
Here is the call graph for this function:| void recoConsts::init | ( | int | runNo = 0, |
| bool | verbose = false |
||
| ) |
initialize the constants by the runNo - not implemented yet
Definition at line 171 of file recoConsts.cc.
References set_CharFlag(), PHFlag::set_DoubleFlag(), and PHFlag::set_IntFlag().
Here is the call graph for this function:| void recoConsts::initfile | ( | const std::string & | filename, |
| bool | verbose = false |
||
| ) |
initialize by reading a file
Definition at line 208 of file recoConsts.cc.
References PHFlag::ReadFromFile().
Here is the call graph for this function:
|
static |
Definition at line 7 of file recoConsts.cc.
References __instance, recoConsts(), and set_defaults().
Referenced by ClassImp(), PHG4PhenixDetector::Construct(), Fun4AllHistoManager::dumpHistos(), Fun4AllServer::End(), PHG4SimpleEventGenerator::End(), EventReducer::EventReducer(), Fun4AllHepMCInputManager::fileopen(), Fun4AllOscarInputManager::fileopen(), PHGeomUtility::GetVerbosity(), GeomSvc::init(), TriggerAnalyzer::init(), DPTriggerAnalyzer::Init(), KScheduler::Init(), GeomSvc::initPlaneDbSvc(), Fun4AllPrdfOutputManager::InitPrdfManager(), PHG4TruthSubsystem::InitRun(), CalibDriftDistMod::InitRun(), CalibDriftDist::InitRun(), CalibHodoInTime::InitRun(), SQVertexing::InitRun(), VertexFit::InitRun(), SQChamberRealization::InitRun(), PHG4Reco::InitRun(), PHG4SimpleEventGenerator::InitRun(), PHRandomSeed::InitSeed(), KalmanFastTracking::KalmanFastTracking(), KalmanFastTrackletting::KalmanFastTrackletting(), main(), PHFieldSeaQuest::PHFieldSeaQuest(), HepMCNodeReader::process_event(), Fun4AllServer::run(), PHG4Reco::set_field_map(), Fun4AllServer::setRun(), Fun4AllDummyInputManager::setSyncManager(), PHGeomUtility::SetVerbosity(), SQReco::SQReco(), SQTrackletFitter::SQTrackletFitter(), and Fun4AllServer::~Fun4AllServer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
print all the parameters
Reimplemented from PHFlag.
Definition at line 214 of file recoConsts.cc.
References PHFlag::PrintBoolFlags(), PHFlag::PrintCharFlags(), PHFlag::PrintDoubleFlags(), PHFlag::PrintFloatFlags(), and PHFlag::PrintIntFlags().
Referenced by init(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
overide the virtual function to expand the environmental variables
Reimplemented from PHFlag.
Definition at line 21 of file recoConsts.cc.
References PHFlag::charflag, and ExpandEnvironmentals().
Referenced by PHG4PhenixDetector::Construct(), init(), DPTriggerAnalyzer::Init(), GeomSvc::initPlaneDbSvc(), CalibDriftDistMod::InitRun(), CalibDriftDist::InitRun(), CalibHodoInTime::InitRun(), SQChamberRealization::InitRun(), PHG4SimpleEventGenerator::InitRun(), and set_defaults().
Here is the call graph for this function:
Here is the caller graph for this function:| void recoConsts::set_defaults | ( | ) |
set the default value for all the constants needed - user is supposed to add a default value here to introduce new constants
Definition at line 40 of file recoConsts.cc.
References PHFlag::set_BoolFlag(), set_CharFlag(), PHFlag::set_DoubleFlag(), and PHFlag::set_IntFlag().
Referenced by instance().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Definition at line 44 of file recoConsts.h.
Referenced by instance().