9 #include <TDirectory.h>
41 const std::map< std::string, double >&
parameters,
42 const std::map< std::string, std::string>& stringParameters,
43 const std::map< std::string, double >& greenThresholds,
44 const std::map< std::string, double >& redThresholds,
51 m_generic_parameters = stringParameters;
52 m_green_thresholds = greenThresholds;
53 m_red_thresholds = redThresholds;
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" );
92 typedef std::map< std::string, double >::value_type ParsVal_t;
93 typedef std::map< std::string, double >::value_type ThrVal_t;
102 ParsVal_t parMapVal(
parName,
par->GetValue() );
103 m_parameters.insert( parMapVal );
107 while( (strPar =
dynamic_cast<HanConfigParMap*
>( nextStrPar() )) != 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 );
123 if( refName !=
"" ) {
126 std::cout <<
"ERROR: can't find reference " << refName << std::endl;
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;
151 m_generic_parameters.emplace(
"runtime_path", runtime.getPath() );
152 if ( runtime.pathIsRunDirectory() )
153 m_parameters.emplace(
"run_number", runtime.getPathRunNumber() );