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