1 #ifndef CondCore_EcalPlugins_plugins_EcalPyWrapperFunctions_H
2 #define CondCore_EcalPlugins_plugins_EcalPyWrapperFunctions_H
20 static const unsigned int MEAN = 0;
21 static const unsigned int STATUS = 1;
30 unsigned int barrelsTotal = barrelItems.size();
31 ss << std::endl <<
"---Barrels. Total: " << barrelsTotal << std::endl;
33 case (
MEAN) : ss <<
names << std::endl;
break;
34 case (
STATUS): ss <<
"-With errors: " << std::endl;
break;
41 unsigned int endcapTotal = endcapItems.size();
42 ss << std::endl <<
"---Endcaps. Total: " << endcapTotal << std::endl;
44 case (
MEAN) : ss <<
names << std::endl;
break;
45 case (
STATUS): ss <<
"-With errors: " << std::endl;
break;
98 for (type_vValues::const_iterator iVal = vValues.begin(); iVal != vValues.end(); ++iVal){
100 case (
MEAN) : ss << iVal->first <<
": " << ((iVal->second)/total) << std::endl;
break;
101 case (
STATUS):
if (iVal->second != 0) {ss << iVal->first <<
": " << ((iVal->second)) << std::endl;
break;}
else {
break; }
static const unsigned int STATUS
std::vector< std::pair< std::string, float > > type_vValues
unsigned int total_values
std::string printValues(const type_vValues &vValues, const unsigned int &total)
virtual type_vValues getValues(const std::vector< T > &vItems)=0
static const unsigned int MEAN
EcalPyWrapperHelper(unsigned int totalValues, unsigned int status=0, std::string names="-Means: ")
std::string printBarrelsEndcaps(const std::vector< T > &barrelItems, const std::vector< T > &endcapItems)