EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/offline/database/PHParameter/PHParametersContainer.h>
Public Types | |
typedef std::map< int, PHParameters * > | Map |
typedef Map::iterator | Iterator |
typedef Map::const_iterator | ConstIterator |
typedef std::pair< Iterator, Iterator > | Range |
typedef std::pair < ConstIterator, ConstIterator > | ConstRange |
Public Member Functions | |
PHParametersContainer (const std::string &name="NONE") | |
~PHParametersContainer () override | |
void | AddPHParameters (const int detid, PHParameters *params) |
const PHParameters * | GetParameters (const int detid) const |
PHParameters * | GetParametersToModify (const int detid) |
int | WriteToFile (const std::string &extension, const std::string &dir) |
int | WriteToDB () |
void | set_name (const std::string &name) |
std::string | Name () const |
ConstRange | GetAllParameters () const |
void | Print (Option_t *option="") const override |
void | SaveToNodeTree (PHCompositeNode *topNode, const std::string &nodename) |
void | UpdateNodeTree (PHCompositeNode *topNode, const std::string &nodename) |
int | ExistDetid (const int detid) const |
void | clear () |
void | FillFrom (const PdbParameterMapContainer *saveparamcontainer) |
void | CreateAndFillFrom (const PdbParameterMapContainer *saveparamcontainer, const std::string &name) |
Public Member Functions inherited from PHObject | |
PHObject () | |
ctor | |
~PHObject () override | |
dtor | |
virtual PHObject * | CloneMe () const |
Virtual copy constructor. | |
virtual PHObject * | clone () const final |
PHObject * | Clone (const char *newname="") const final |
void | Copy (TObject &object) const final |
virtual void | identify (std::ostream &os=std::cout) const |
virtual void | Reset () |
Clear Event. | |
virtual int | isValid () const |
isValid returns non zero if object contains vailid data | |
virtual int | isValid (const float) const |
virtual int | isValid (const double) const |
virtual int | isValid (const int) const |
virtual int | isValid (const unsigned int) const |
virtual int | isImplemented (const float f) const |
virtual int | isImplemented (const double f) const |
virtual int | isImplemented (const int i) const |
virtual int | isImplemented (const unsigned int i) const |
virtual int | Integrate () const |
virtual int | Integrate (PHObject *) |
virtual void | CopyFrom (const PHObject *obj) |
Private Member Functions | |
void | CopyToPdbParameterMapContainer (PdbParameterMapContainer *myparm) |
void | UpdatePdbParameterMapContainer (PdbParameterMapContainer *myparm) |
Private Attributes | |
std::string | superdetectorname |
std::map< int, PHParameters * > | parametermap |
Definition at line 16 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 16 of file PHParametersContainer.h
typedef Map::const_iterator PHParametersContainer::ConstIterator |
Definition at line 21 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 21 of file PHParametersContainer.h
typedef std::pair<ConstIterator, ConstIterator> PHParametersContainer::ConstRange |
Definition at line 23 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 23 of file PHParametersContainer.h
typedef Map::iterator PHParametersContainer::Iterator |
Definition at line 20 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 20 of file PHParametersContainer.h
typedef std::map<int, PHParameters *> PHParametersContainer::Map |
Definition at line 19 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 19 of file PHParametersContainer.h
typedef std::pair<Iterator, Iterator> PHParametersContainer::Range |
Definition at line 22 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 22 of file PHParametersContainer.h
|
explicit |
Definition at line 33 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 33 of file PHParametersContainer.cc
|
override |
Definition at line 38 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 38 of file PHParametersContainer.cc
References parametermap.
void PHParametersContainer::AddPHParameters | ( | const int | detid, |
PHParameters * | params | ||
) |
Definition at line 85 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 85 of file PHParametersContainer.cc
References parametermap, and PHWHERE.
Referenced by CreateAndFillFrom(), PHParameterContainerInterface::CreateInitialize(), PHG4DetectorGroupSubsystem::InitializeParameters(), PHG4DetectorGroupSubsystem::InitRun(), PHG4DetectorSubsystem::InitRun(), PHParameterContainerInterface::set_int_param(), and PHParameterContainerInterface::set_string_param().
|
inline |
Definition at line 42 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 42 of file PHParametersContainer.h
References parametermap.
Referenced by PHG4DetectorGroupSubsystem::InitRun().
|
private |
Definition at line 202 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 202 of file PHParametersContainer.cc
References PdbParameterMapContainer::AddPdbParameterMap(), and parametermap.
Referenced by SaveToNodeTree(), WriteToDB(), and WriteToFile().
void PHParametersContainer::CreateAndFillFrom | ( | const PdbParameterMapContainer * | saveparamcontainer, |
const std::string & | name | ||
) |
Definition at line 64 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 64 of file PHParametersContainer.cc
References AddPHParameters(), PHParameters::FillFrom(), PdbParameterMapContainer::get_ParameterMaps(), and parametermap.
int PHParametersContainer::ExistDetid | ( | const int | detid | ) | const |
Definition at line 268 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 268 of file PHParametersContainer.cc
References parametermap.
Referenced by PHParameterContainerInterface::ExistDetid().
void PHParametersContainer::FillFrom | ( | const PdbParameterMapContainer * | saveparamcontainer | ) |
Definition at line 47 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 47 of file PHParametersContainer.cc
References PHParameters::FillFrom(), PdbParameterMapContainer::get_ParameterMaps(), and parametermap.
Referenced by PHG4DetectorGroupSubsystem::InitRun().
|
inline |
Definition at line 37 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 37 of file PHParametersContainer.h
References parametermap.
Referenced by PHG4DetectorGroupSubsystem::InitRun().
const PHParameters * PHParametersContainer::GetParameters | ( | const int | detid | ) | const |
Definition at line 97 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 97 of file PHParametersContainer.cc
References exit(), and parametermap.
Referenced by PHG4InttDetector::AddGeometryNode(), PHG4InttDetector::ConstructIntt(), G4JLeicVTXDetector::ConstructMe(), PHG4PSTOFDetector::ConstructMe(), G4JLeicVTXDetector::G4JLeicVTXDetector(), PHParameterContainerInterface::get_double_param(), PHG4DetectorGroupSubsystem::get_double_param(), PHParameterContainerInterface::get_int_param(), PHG4DetectorGroupSubsystem::get_int_param(), PHParameterContainerInterface::get_string_param(), PHG4DetectorGroupSubsystem::get_string_param(), PHG4MvtxSubsystem::InitRunSubsystem(), PHG4EICMvtxSubsystem::InitRunSubsystem(), PHG4InttSubsystem::InitRunSubsystem(), PHG4EICMvtxDetector::PHG4EICMvtxDetector(), PHG4InttDetector::PHG4InttDetector(), PHG4InttSteppingAction::PHG4InttSteppingAction(), PHG4MvtxDetector::PHG4MvtxDetector(), and PHG4PSTOFDetector::PHG4PSTOFDetector().
PHParameters * PHParametersContainer::GetParametersToModify | ( | const int | detid | ) |
Definition at line 116 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 116 of file PHParametersContainer.cc
References parametermap.
Referenced by PHParameterContainerInterface::CreateInitialize(), PHG4DetectorGroupSubsystem::InitializeParameters(), PHParameterContainerInterface::UpdateParametersWithMacro(), and PHG4DetectorGroupSubsystem::UpdateParametersWithMacro().
|
inline |
Definition at line 35 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 35 of file PHParametersContainer.h
References superdetectorname.
Referenced by PHParameterContainerInterface::CreateInitialize(), PHParameterContainerInterface::get_double_param(), PHParameterContainerInterface::get_int_param(), PHParameterContainerInterface::get_string_param(), PHG4BlockCellReco::InitRun(), PHG4CylinderCellReco::InitRun(), PHG4DetectorGroupSubsystem::InitRun(), Print(), PHParameterContainerInterface::set_double_param(), PHParameterContainerInterface::set_int_param(), and PHParameterContainerInterface::set_string_param().
|
override |
Definition at line 225 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 225 of file PHParametersContainer.cc
References Name(), and parametermap.
Referenced by PHG4EICMvtxSubsystem::InitRunSubsystem(), PHG4MvtxSubsystem::InitRunSubsystem(), PHG4InttSubsystem::Print(), G4JLeicVTXSubsystem::Print(), and PHG4PSTOFSubsystem::Print().
void PHParametersContainer::SaveToNodeTree | ( | PHCompositeNode * | topNode, |
const std::string & | nodename | ||
) |
Definition at line 237 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 237 of file PHParametersContainer.cc
References CopyToPdbParameterMapContainer(), and PdbParameterMapContainer::Reset().
Referenced by PHG4DetectorGroupSubsystem::InitRun(), and PHParameterContainerInterface::SaveToNodeTree().
|
inline |
Definition at line 34 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 34 of file PHParametersContainer.h
References name, and superdetectorname.
Referenced by PHG4DetectorGroupSubsystem::Init(), PHG4BlockCellReco::InitRun(), PHG4CylinderCellReco::InitRun(), and PHParameterContainerInterface::set_name().
void PHParametersContainer::UpdateNodeTree | ( | PHCompositeNode * | topNode, |
const std::string & | nodename | ||
) |
Definition at line 255 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 255 of file PHParametersContainer.cc
References PHWHERE, and UpdatePdbParameterMapContainer().
Referenced by PHG4DetectorGroupSubsystem::InitRun().
|
private |
Definition at line 214 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 214 of file PHParametersContainer.cc
References PdbParameterMapContainer::GetParametersToModify(), and parametermap.
Referenced by UpdateNodeTree().
int PHParametersContainer::WriteToDB | ( | ) |
Definition at line 165 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 165 of file PHParametersContainer.cc
References PdbApplication::abort(), PdbApplication::commit(), CopyToPdbParameterMapContainer(), PdbBankManager::createBank(), exit(), PdbBankManager::getApplication(), PdbBankManager::instance(), PHWHERE, PdbCalBank::setLength(), PdbApplication::startUpdate(), superdetectorname, and Acts::Test::transform.
Referenced by PHG4DetectorGroupSubsystem::SaveParamsToDB(), and PHG4DetectorSubsystem::SaveParamsToDB().
int PHParametersContainer::WriteToFile | ( | const std::string & | extension, |
const std::string & | dir | ||
) |
Definition at line 126 of file PHParametersContainer.cc.
View newest version in sPHENIX GitHub at line 126 of file PHParametersContainer.cc
References CopyToPdbParameterMapContainer(), PdbBankID::getInternalValue(), PHTimeStamp::getTics(), superdetectorname, Acts::Test::time, and Acts::Test::transform.
Referenced by PHG4DetectorGroupSubsystem::SaveParamsToFile(), and PHG4DetectorSubsystem::SaveParamsToFile().
|
private |
Definition at line 50 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 50 of file PHParametersContainer.h
Referenced by AddPHParameters(), clear(), CopyToPdbParameterMapContainer(), CreateAndFillFrom(), ExistDetid(), FillFrom(), GetAllParameters(), GetParameters(), GetParametersToModify(), Print(), UpdatePdbParameterMapContainer(), and ~PHParametersContainer().
|
private |
Definition at line 49 of file PHParametersContainer.h.
View newest version in sPHENIX GitHub at line 49 of file PHParametersContainer.h
Referenced by Name(), set_name(), WriteToDB(), and WriteToFile().