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

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

+ Inheritance diagram for PHParameterInterface:
+ Collaboration diagram for PHParameterInterface:

Public Member Functions

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

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 ()
 

Private Attributes

PHParametersm_Params = nullptr
 
std::map< const std::string,
double > 
m_DoubleParMap
 
std::map< const std::string, intm_IntParMap
 
std::map< const std::string,
std::string > 
m_StringParMap
 
std::map< const std::string,
double > 
m_DefaultDoubleParMap
 
std::map< const std::string, intm_DefaultIntParMap
 
std::map< const std::string,
std::string > 
m_DefaultStringParMap
 

Detailed Description

Definition at line 12 of file PHParameterInterface.h.

View newest version in sPHENIX GitHub at line 12 of file PHParameterInterface.h

Constructor & Destructor Documentation

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

Definition at line 12 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 12 of file PHParameterInterface.cc

PHParameterInterface::PHParameterInterface ( const PHParameterInterface )
delete
virtual PHParameterInterface::~PHParameterInterface ( )
inlinevirtual

Definition at line 20 of file PHParameterInterface.h.

View newest version in sPHENIX GitHub at line 20 of file PHParameterInterface.h

Member Function Documentation

double PHParameterInterface::get_double_param ( const std::string &  name) const

Definition at line 82 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 82 of file PHParameterInterface.cc

References PHParameters::get_double_param(), and m_Params.

Referenced by HcalRawTowerBuilder::InitRun(), PHG4InttHitReco::InitRun(), PHG4HcalCellReco::InitRun(), PHG4InttDigitizer::InitRun(), PHG4VertexSelection::InitRun(), PHG4FullProjSpacalCellReco::InitRun(), PHG4TpcDirectLaser::InitRun(), PHG4MicromegasDigitizer::InitRun(), PHG4TpcCentralMembrane::InitRun(), PHTpcDeltaZCorrection::InitRun(), PHG4TpcElectronDrift::InitRun(), PHG4MicromegasHitReco::InitRun(), TpcDirectLaserReconstruction::InitRun(), TpcSpaceChargeReconstruction::InitRun(), and PHG4TpcPadPlaneReadout::UpdateInternalParameters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHParameterInterface::get_int_param ( const std::string &  name) const

Definition at line 102 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 102 of file PHParameterInterface.cc

References PHParameters::get_int_param(), and m_Params.

Referenced by HcalRawTowerBuilder::InitRun(), PHG4TpcDirectLaser::InitRun(), PHG4TpcCentralMembrane::InitRun(), PHG4MicromegasHitReco::InitRun(), and PHG4TpcPadPlaneReadout::UpdateInternalParameters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string PHParameterInterface::get_string_param ( const std::string &  name) const

Definition at line 123 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 123 of file PHParameterInterface.cc

References PHParameters::get_string_param(), and m_Params.

+ Here is the call graph for this function:

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

Definition at line 151 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 151 of file PHParameterInterface.cc

References PHCompositeNode::addNode(), and m_Params.

Referenced by HcalRawTowerBuilder::InitRun(), PHG4InttHitReco::InitRun(), PHG4HcalCellReco::InitRun(), PHG4InttDigitizer::InitRun(), PHG4FullProjSpacalCellReco::InitRun(), PHG4TpcPadPlane::InitRun(), and PHG4TpcElectronDrift::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 145 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 145 of file PHParameterInterface.cc

References m_Params, and PHParameters::SaveToNodeTree().

Referenced by HcalRawTowerBuilder::InitRun(), PHG4InttHitReco::InitRun(), PHG4HcalCellReco::InitRun(), PHG4InttDigitizer::InitRun(), PHG4FullProjSpacalCellReco::InitRun(), PHG4TpcPadPlane::InitRun(), and PHG4TpcElectronDrift::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 37 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 37 of file PHParameterInterface.cc

References m_DefaultIntParMap.

Referenced by PHG4TpcDirectLaser::SetDefaultParameters(), PHG4TpcCentralMembrane::SetDefaultParameters(), PHG4TpcPadPlaneReadout::SetDefaultParameters(), PHG4MicromegasHitReco::SetDefaultParameters(), and HcalRawTowerBuilder::SetDefaultParameters().

+ Here is the caller graph for this function:

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

Definition at line 52 of file PHParameterInterface.cc.

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

References m_DefaultStringParMap.

void PHParameterInterface::set_double_param ( const std::string &  name,
const double  dval 
)

Definition at line 66 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 66 of file PHParameterInterface.cc

References m_DefaultDoubleParMap, and m_DoubleParMap.

Referenced by HcalRawTowerBuilder::ReadParamsFromNodeTree(), PHG4HcalCellReco::set_timing_window(), and PHG4FullProjSpacalCellReco::set_timing_window().

+ Here is the caller graph for this function:

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

Definition at line 87 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 87 of file PHParameterInterface.cc

References m_DefaultIntParMap, and m_IntParMap.

Referenced by HcalRawTowerBuilder::ReadParamsFromNodeTree().

+ Here is the caller graph for this function:

void PHParameterInterface::set_paramname ( const std::string &  name)

Definition at line 17 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 17 of file PHParameterInterface.cc

References m_Params, and PHParameters::set_name().

+ Here is the call graph for this function:

void PHParameterInterface::set_string_param ( const std::string &  name,
const std::string &  sval 
)

Definition at line 107 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 107 of file PHParameterInterface.cc

References m_DefaultStringParMap, and m_StringParMap.

virtual void PHParameterInterface::SetDefaultParameters ( )
pure virtual
void PHParameterInterface::UpdateParametersWithMacro ( )

Definition at line 128 of file PHParameterInterface.cc.

View newest version in sPHENIX GitHub at line 128 of file PHParameterInterface.cc

References m_DoubleParMap, m_IntParMap, m_Params, m_StringParMap, PHParameters::set_double_param(), PHParameters::set_int_param(), and PHParameters::set_string_param().

Referenced by HcalRawTowerBuilder::InitRun(), PHG4InttHitReco::InitRun(), PHG4HcalCellReco::InitRun(), PHG4InttDigitizer::InitRun(), PHG4VertexSelection::InitRun(), PHG4FullProjSpacalCellReco::InitRun(), PHG4TpcDirectLaser::InitRun(), PHG4MicromegasDigitizer::InitRun(), PHG4TpcCentralMembrane::InitRun(), PHG4TpcPadPlane::InitRun(), PHTpcDeltaZCorrection::InitRun(), PHG4TpcElectronDrift::InitRun(), PHG4MicromegasHitReco::InitRun(), TpcDirectLaserReconstruction::InitRun(), and TpcSpaceChargeReconstruction::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::map<const std::string, double> PHParameterInterface::m_DefaultDoubleParMap
private

Definition at line 49 of file PHParameterInterface.h.

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

Referenced by InitializeParameters(), set_default_double_param(), and set_double_param().

std::map<const std::string, int> PHParameterInterface::m_DefaultIntParMap
private

Definition at line 50 of file PHParameterInterface.h.

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

Referenced by InitializeParameters(), set_default_int_param(), and set_int_param().

std::map<const std::string, std::string> PHParameterInterface::m_DefaultStringParMap
private

Definition at line 51 of file PHParameterInterface.h.

View newest version in sPHENIX GitHub at line 51 of file PHParameterInterface.h

Referenced by InitializeParameters(), set_default_string_param(), and set_string_param().

std::map<const std::string, double> PHParameterInterface::m_DoubleParMap
private

Definition at line 45 of file PHParameterInterface.h.

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

Referenced by set_double_param(), and UpdateParametersWithMacro().

std::map<const std::string, int> PHParameterInterface::m_IntParMap
private

Definition at line 46 of file PHParameterInterface.h.

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

Referenced by set_int_param(), and UpdateParametersWithMacro().

PHParameters* PHParameterInterface::m_Params = nullptr
private
std::map<const std::string, std::string> PHParameterInterface::m_StringParMap
private

Definition at line 47 of file PHParameterInterface.h.

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

Referenced by set_string_param(), and UpdateParametersWithMacro().


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