ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/database/PHParameter/PHParameterInterface.h>
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 | |
PHParameters * | m_Params = nullptr |
std::map< const std::string, double > | m_DoubleParMap |
std::map< const std::string, int > | m_IntParMap |
std::map< const std::string, std::string > | m_StringParMap |
std::map< const std::string, double > | m_DefaultDoubleParMap |
std::map< const std::string, int > | m_DefaultIntParMap |
std::map< const std::string, std::string > | m_DefaultStringParMap |
Definition at line 12 of file PHParameterInterface.h.
View newest version in sPHENIX GitHub at line 12 of file PHParameterInterface.h
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
|
delete |
|
inlinevirtual |
Definition at line 20 of file PHParameterInterface.h.
View newest version in sPHENIX GitHub at line 20 of file PHParameterInterface.h
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().
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().
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.
|
protected |
Definition at line 156 of file PHParameterInterface.cc.
View newest version in sPHENIX GitHub at line 156 of file PHParameterInterface.cc
References m_DefaultDoubleParMap, m_DefaultIntParMap, m_DefaultStringParMap, m_Params, PHParameters::set_double_param(), PHParameters::set_int_param(), PHParameters::set_string_param(), and SetDefaultParameters().
Referenced by HcalRawTowerBuilder::HcalRawTowerBuilder(), PHG4FullProjSpacalCellReco::PHG4FullProjSpacalCellReco(), PHG4HcalCellReco::PHG4HcalCellReco(), PHG4InttDigitizer::PHG4InttDigitizer(), PHG4InttHitReco::PHG4InttHitReco(), PHG4MicromegasDigitizer::PHG4MicromegasDigitizer(), PHG4MicromegasHitReco::PHG4MicromegasHitReco(), PHG4TpcCentralMembrane::PHG4TpcCentralMembrane(), PHG4TpcDirectLaser::PHG4TpcDirectLaser(), PHG4TpcElectronDrift::PHG4TpcElectronDrift(), PHG4TpcPadPlaneReadout::PHG4TpcPadPlaneReadout(), PHG4VertexSelection::PHG4VertexSelection(), PHTpcDeltaZCorrection::PHTpcDeltaZCorrection(), TpcDirectLaserReconstruction::TpcDirectLaserReconstruction(), and TpcSpaceChargeReconstruction::TpcSpaceChargeReconstruction().
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().
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().
|
protected |
Definition at line 22 of file PHParameterInterface.cc.
View newest version in sPHENIX GitHub at line 22 of file PHParameterInterface.cc
References m_DefaultDoubleParMap.
Referenced by PHG4InttHitReco::SetDefaultParameters(), PHG4HcalCellReco::SetDefaultParameters(), PHG4VertexSelection::SetDefaultParameters(), PHG4InttDigitizer::SetDefaultParameters(), PHTpcDeltaZCorrection::SetDefaultParameters(), PHG4FullProjSpacalCellReco::SetDefaultParameters(), PHG4TpcDirectLaser::SetDefaultParameters(), PHG4MicromegasDigitizer::SetDefaultParameters(), PHG4TpcCentralMembrane::SetDefaultParameters(), PHG4TpcPadPlaneReadout::SetDefaultParameters(), PHG4TpcElectronDrift::SetDefaultParameters(), PHG4MicromegasHitReco::SetDefaultParameters(), TpcDirectLaserReconstruction::SetDefaultParameters(), HcalRawTowerBuilder::SetDefaultParameters(), and TpcSpaceChargeReconstruction::SetDefaultParameters().
|
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().
|
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().
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().
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().
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.
|
pure virtual |
Implemented in TpcSpaceChargeReconstruction, HcalRawTowerBuilder, TpcDirectLaserReconstruction, PHG4MicromegasHitReco, PHG4TpcElectronDrift, PHG4TpcPadPlaneReadout, PHG4MicromegasDigitizer, PHG4TpcCentralMembrane, PHG4FullProjSpacalCellReco, PHG4TpcDirectLaser, PHTpcDeltaZCorrection, PHG4InttDigitizer, PHG4HcalCellReco, PHG4VertexSelection, and PHG4InttHitReco.
Referenced by InitializeParameters().
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
Definition at line 44 of file PHParameterInterface.h.
View newest version in sPHENIX GitHub at line 44 of file PHParameterInterface.h
Referenced by get_double_param(), get_int_param(), get_string_param(), InitializeParameters(), PutOnParNode(), SaveToNodeTree(), set_paramname(), and UpdateParametersWithMacro().
|
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().