cond::EcalDQMChannelStatusHelper::EcalDQMChannelStatusHelper |
( |
| ) |
|
|
inline |
Implements EcalPyWrapperHelper< EcalDQMStatusCode >.
Definition at line 136 of file EcalDQMChannelStatusPyWrapper.cc.
References i, edm::shift, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and EcalPyWrapperHelper< EcalDQMStatusCode >::total_values.
143 std::stringstream
ss;
147 "CH_GAIN_ZERO_ERROR ",
148 "CH_GAIN_SWITCH_ERROR ",
151 "PEDESTAL_LOW_GAIN_MEAN_ERROR ",
152 "PEDESTAL_MIDDLE_GAIN_MEAN_ERROR ",
153 "PEDESTAL_HIGH_GAIN_MEAN_ERROR ",
154 "PEDESTAL_LOW_GAIN_RMS_ERROR ",
155 "PEDESTAL_MIDDLE_GAIN_RMS_ERROR ",
156 "PEDESTAL_HIGH_GAIN_RMS_ERROR ",
157 "PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR ",
158 "PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR ",
159 "TESTPULSE_LOW_GAIN_MEAN_ERROR ",
160 "TESTPULSE_MIDDLE_GAIN_MEAN_ERROR ",
161 "TESTPULSE_HIGH_GAIN_MEAN_ERROR ",
162 "TESTPULSE_LOW_GAIN_RMS_ERROR ",
163 "TESTPULSE_MIDDLE_GAIN_RMS_ERROR ",
164 "TESTPULSE_HIGH_GAIN_RMS_ERROR ",
167 "LASER_TIMING_MEAN_ERROR ",
168 "LASER_TIMING_RMS_ERROR ",
171 "LED_TIMING_MEAN_ERROR ",
172 "LED_TIMING_RMS_ERROR ",
173 "STATUS_FLAG_ERROR ",
174 "PHYSICS_BAD_CHANNEL_WARNING ",
175 "PHYSICS_BAD_CHANNEL_ERROR "
178 ss.str(
""); ss <<
"[" <<
i <<
"]" << valueNames[
i];
179 vValues[
i].first = ss.str();
180 vValues[
i].second = .0;
184 unsigned int shift = 0, mask = 1;
185 unsigned int statusCode;
186 for(std::vector<EcalObject>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
188 statusCode = iItems->getStatusCode();
192 if (statusCode & mask){
193 vValues[
shift].second += 1;
std::vector< std::pair< std::string, float > > type_vValues
unsigned int total_values
static unsigned int const shift