#include <HanAlgorithmConfig.h>
|
| HanAlgorithmConfig (const HanConfigAssessor &hca, TFile *config) |
|
| HanAlgorithmConfig (TObject *reference, const std::map< std::string, double > ¶meters, const std::map< std::string, std::string > &stringParameters, const std::map< std::string, double > &greenThresholds, const std::map< std::string, double > &redThresholds, const HanConfigAssessor *hca) |
|
virtual | ~HanAlgorithmConfig () |
|
virtual TObject * | getReference () const override |
|
Definition at line 22 of file HanAlgorithmConfig.h.
◆ HanAlgorithmConfig() [1/2]
◆ HanAlgorithmConfig() [2/2]
dqi::HanAlgorithmConfig::HanAlgorithmConfig |
( |
TObject * |
reference, |
|
|
const std::map< std::string, double > & |
parameters, |
|
|
const std::map< std::string, std::string > & |
stringParameters, |
|
|
const std::map< std::string, double > & |
greenThresholds, |
|
|
const std::map< std::string, double > & |
redThresholds, |
|
|
const HanConfigAssessor * |
hca |
|
) |
| |
Definition at line 39 of file HanAlgorithmConfig.cxx.
51 m_generic_parameters = stringParameters;
52 m_green_thresholds = greenThresholds;
53 m_red_thresholds = redThresholds;
◆ ~HanAlgorithmConfig()
dqi::HanAlgorithmConfig::~HanAlgorithmConfig |
( |
| ) |
|
|
virtual |
◆ CopyAlgConfig()
Definition at line 89 of file HanAlgorithmConfig.cxx.
92 typedef std::map< std::string, double >::value_type ParsVal_t;
93 typedef std::map< std::string, double >::value_type ThrVal_t;
98 TIter nextPar( hca.GetAllAlgPars() );
100 while( (
par =
dynamic_cast<HanConfigAlgPar*
>( nextPar() )) != 0 ) {
102 ParsVal_t parMapVal(
parName,
par->GetValue() );
103 m_parameters.insert( parMapVal );
105 TIter nextStrPar( hca.GetAllAlgStrPars() );
106 HanConfigParMap* strPar;
107 while( (strPar =
dynamic_cast<HanConfigParMap*
>( nextStrPar() )) != 0 ) {
108 m_generic_parameters.emplace( strPar->GetName(), strPar->GetValue() );
112 TIter nextLim( hca.GetAllAlgLimits() );
113 HanConfigAlgLimit* lim;
114 while( (lim =
dynamic_cast<HanConfigAlgLimit*
>( nextLim() )) != 0 ) {
115 limName = std::string( lim->GetName() );
116 ThrVal_t greenMapVal( limName, lim->GetGreen() );
117 m_green_thresholds.insert( greenMapVal );
118 ThrVal_t redMapVal( limName, lim->GetRed() );
119 m_red_thresholds.insert( redMapVal );
122 std::string refName( hca.GetAlgRefName() );
123 if( refName !=
"" ) {
126 std::cout <<
"ERROR: can't find reference " << refName << std::endl;
128 if (hca.GetIsRegex()) {
129 TMap* map =
dynamic_cast<TMap*
>(
key->ReadObj());
131 std::cerr <<
"Problem reading TMap input for regex" << std::endl;
134 std::cout <<
"Get reference for " << hca.GetHistPath() << std::endl;
135 m_ref = map->GetValue(hca.GetHistPath());
◆ CopyRuntimeConfig()
void dqi::HanAlgorithmConfig::CopyRuntimeConfig |
( |
| ) |
|
|
protected |
Definition at line 146 of file HanAlgorithmConfig.cxx.
151 m_generic_parameters.emplace(
"runtime_path", runtime.getPath() );
152 if ( runtime.pathIsRunDirectory() )
153 m_parameters.emplace(
"run_number", runtime.getPathRunNumber() );
◆ getReference()
TObject * dqi::HanAlgorithmConfig::getReference |
( |
| ) |
const |
|
overridevirtual |
Definition at line 65 of file HanAlgorithmConfig.cxx.
74 throw dqm_core::BadConfig( ERS_HERE,
parname,
75 "Unable to clone reference" );
79 throw dqm_core::BadConfig( ERS_HERE,
parname,
80 "No reference histogram provided" );
◆ m_file
TFile* dqi::HanAlgorithmConfig::m_file |
|
protected |
◆ m_hca
◆ m_ref
TObject* dqi::HanAlgorithmConfig::m_ref |
|
protected |
The documentation for this class was generated from the following files: