ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHParameterContainerInterface Class Referenceabstract

#include <coresoftware/blob/master/offline/database/PHParameter/PHParameterContainerInterface.h>

+ Inheritance diagram for PHParameterContainerInterface:
+ Collaboration diagram for PHParameterContainerInterface:

Public Member Functions

 PHParameterContainerInterface (const std::string &name)
 
 PHParameterContainerInterface (const PHParameterContainerInterface &)=delete
 
virtual ~PHParameterContainerInterface ()
 
void set_name (const std::string &name)
 
virtual void SetDefaultParameters ()=0
 
void set_double_param (const int id, const std::string &name, const double dval)
 
double get_double_param (const int id, const std::string &name) const
 
void set_int_param (const int id, const std::string &name, const int ival)
 
int get_int_param (const int id, const std::string &name) const
 
void set_string_param (const int id, const std::string &name, const std::string &sval)
 
std::string get_string_param (const int id, const std::string &name) const
 
void UpdateParametersWithMacro ()
 
void CreateInitialize (const int detid)
 
void SaveToNodeTree (PHCompositeNode *runNode, const std::string &nodename)
 
void PutOnParNode (PHCompositeNode *parNode, const std::string &nodename)
 
int ExistDetid (const int detid) const
 

Protected Member Functions

void set_default_double_param (const std::string &name, const double dval)
 
void set_default_int_param (const std::string &name, const int ival)
 
void set_default_string_param (const std::string &name, const std::string &sval)
 
void InitializeParameters ()
 
const PHParametersContainerGetParamsContainer ()
 
PHParametersContainerGetParamsContainerModify ()
 
const PHParametersGetDefaultParameters ()
 

Private Attributes

PHParametersContainerparamscontainer = nullptr
 
PHParametersdefaultparams = nullptr
 
std::map< int, PHParameters * > macroparams
 

Detailed Description

Definition at line 13 of file PHParameterContainerInterface.h.

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

Constructor & Destructor Documentation

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

Definition at line 15 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 15 of file PHParameterContainerInterface.cc

References defaultparams, and pname().

+ Here is the call graph for this function:

PHParameterContainerInterface::PHParameterContainerInterface ( const PHParameterContainerInterface )
delete
PHParameterContainerInterface::~PHParameterContainerInterface ( )
virtual

Definition at line 23 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 23 of file PHParameterContainerInterface.cc

References defaultparams, macroparams, and paramscontainer.

Member Function Documentation

void PHParameterContainerInterface::CreateInitialize ( const int  detid)

Definition at line 238 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 238 of file PHParameterContainerInterface.cc

References PHParametersContainer::AddPHParameters(), defaultparams, PHParametersContainer::GetParametersToModify(), PHParametersContainer::Name(), and paramscontainer.

Referenced by UpdateParametersWithMacro().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHParameterContainerInterface::ExistDetid ( const int  detid) const

Definition at line 251 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 251 of file PHParameterContainerInterface.cc

References PHParametersContainer::ExistDetid(), and paramscontainer.

Referenced by PHG4BlockCellReco::InitRun(), and PHG4CylinderCellReco::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double PHParameterContainerInterface::get_double_param ( const int  id,
const std::string &  name 
) const

Definition at line 103 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 103 of file PHParameterContainerInterface.cc

References PHParameters::get_double_param(), PHParametersContainer::GetParameters(), PHParametersContainer::Name(), and paramscontainer.

Referenced by PHG4BlockCellReco::InitRun(), and PHG4CylinderCellReco::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHParameterContainerInterface::get_int_param ( const int  id,
const std::string &  name 
) const

Definition at line 141 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 141 of file PHParameterContainerInterface.cc

References PHParameters::get_int_param(), PHParametersContainer::GetParameters(), PHParametersContainer::Name(), and paramscontainer.

+ Here is the call graph for this function:

std::string PHParameterContainerInterface::get_string_param ( const int  id,
const std::string &  name 
) const

Definition at line 181 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 181 of file PHParameterContainerInterface.cc

References PHParameters::get_string_param(), PHParametersContainer::GetParameters(), PHParametersContainer::Name(), and paramscontainer.

+ Here is the call graph for this function:

const PHParameters* PHParameterContainerInterface::GetDefaultParameters ( )
inlineprotected

Definition at line 47 of file PHParameterContainerInterface.h.

View newest version in sPHENIX GitHub at line 47 of file PHParameterContainerInterface.h

References defaultparams.

const PHParametersContainer* PHParameterContainerInterface::GetParamsContainer ( )
inlineprotected

Definition at line 45 of file PHParameterContainerInterface.h.

View newest version in sPHENIX GitHub at line 45 of file PHParameterContainerInterface.h

References paramscontainer.

Referenced by PHG4BlockCellReco::InitRun(), and PHG4CylinderCellReco::InitRun().

+ Here is the caller graph for this function:

PHParametersContainer* PHParameterContainerInterface::GetParamsContainerModify ( )
inlineprotected

Definition at line 46 of file PHParameterContainerInterface.h.

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

References paramscontainer.

Referenced by PHG4BlockCellReco::InitRun(), and PHG4CylinderCellReco::InitRun().

+ Here is the caller graph for this function:

void PHParameterContainerInterface::InitializeParameters ( )
protected

Definition at line 233 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 233 of file PHParameterContainerInterface.cc

References SetDefaultParameters().

+ Here is the call graph for this function:

void PHParameterContainerInterface::PutOnParNode ( PHCompositeNode parNode,
const std::string &  nodename 
)

Definition at line 228 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 228 of file PHParameterContainerInterface.cc

References PHCompositeNode::addNode(), and paramscontainer.

+ Here is the call graph for this function:

void PHParameterContainerInterface::SaveToNodeTree ( PHCompositeNode runNode,
const std::string &  nodename 
)

Definition at line 222 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 222 of file PHParameterContainerInterface.cc

References paramscontainer, and PHParametersContainer::SaveToNodeTree().

Referenced by PHG4BlockCellReco::InitRun(), and PHG4CylinderCellReco::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHParameterContainerInterface::set_default_double_param ( const std::string &  name,
const double  dval 
)
protected

Definition at line 40 of file PHParameterContainerInterface.cc.

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

References defaultparams, PHParameters::exist_double_param(), PHParameters::get_double_param(), and PHParameters::set_double_param().

Referenced by PHG4BlockCellReco::SetDefaultParameters(), and PHG4CylinderCellReco::SetDefaultParameters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHParameterContainerInterface::set_default_int_param ( const std::string &  name,
const int  ival 
)
protected

Definition at line 52 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 52 of file PHParameterContainerInterface.cc

References defaultparams, PHParameters::exist_int_param(), PHParameters::get_int_param(), and PHParameters::set_int_param().

+ Here is the call graph for this function:

void PHParameterContainerInterface::set_default_string_param ( const std::string &  name,
const std::string &  sval 
)
protected

Definition at line 64 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 64 of file PHParameterContainerInterface.cc

References defaultparams, PHParameters::exist_string_param(), PHParameters::get_string_param(), and PHParameters::set_string_param().

+ Here is the call graph for this function:

void PHParameterContainerInterface::set_double_param ( const int  id,
const std::string &  name,
const double  dval 
)

Definition at line 76 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 76 of file PHParameterContainerInterface.cc

References defaultparams, PHParameters::exist_double_param(), macroparams, PHParametersContainer::Name(), paramscontainer, PHParameters::printdouble(), and PHParameters::set_double_param().

Referenced by PHG4CylinderCellReco::cellsize(), PHG4CylinderCellReco::etaphisize(), PHG4BlockCellReco::etaxsize(), PHG4BlockCellReco::set_timing_window(), and PHG4CylinderCellReco::set_timing_window().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHParameterContainerInterface::set_int_param ( const int  id,
const std::string &  name,
const int  ival 
)

Definition at line 115 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 115 of file PHParameterContainerInterface.cc

References PHParametersContainer::AddPHParameters(), defaultparams, PHParameters::exist_int_param(), macroparams, PHParametersContainer::Name(), paramscontainer, PHParameters::printint(), and PHParameters::set_int_param().

+ Here is the call graph for this function:

void PHParameterContainerInterface::set_name ( const std::string &  name)

Definition at line 35 of file PHParameterContainerInterface.cc.

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

References paramscontainer, and PHParametersContainer::set_name().

+ Here is the call graph for this function:

void PHParameterContainerInterface::set_string_param ( const int  id,
const std::string &  name,
const std::string &  sval 
)

Definition at line 153 of file PHParameterContainerInterface.cc.

View newest version in sPHENIX GitHub at line 153 of file PHParameterContainerInterface.cc

References PHParametersContainer::AddPHParameters(), defaultparams, PHParameters::exist_string_param(), macroparams, PHParametersContainer::Name(), paramscontainer, PHParameters::printstring(), and PHParameters::set_string_param().

+ Here is the call graph for this function:

virtual void PHParameterContainerInterface::SetDefaultParameters ( )
pure virtual

Implemented in PHG4CylinderCellReco, PHG4MvtxHitReco, and PHG4BlockCellReco.

Referenced by InitializeParameters().

+ Here is the caller graph for this function:

void PHParameterContainerInterface::UpdateParametersWithMacro ( )

Definition at line 193 of file PHParameterContainerInterface.cc.

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

References CreateInitialize(), PHParametersContainer::GetParametersToModify(), macroparams, paramscontainer, PHParameters::set_double_param(), PHParameters::set_int_param(), and PHParameters::set_string_param().

Referenced by PHG4BlockCellReco::InitRun(), and PHG4CylinderCellReco::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::map<int, PHParameters *> PHParameterContainerInterface::macroparams
private

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