cond::EcalDCSTowerStatusHelper::EcalDCSTowerStatusHelper |
( |
| ) |
|
|
inline |
Implements EcalPyWrapperHelper< EcalChannelStatusCode >.
Definition at line 140 of file EcalDCSTowerStatusPyWrapper.cc.
References edm::shift, and EcalPyWrapperHelper< EcalChannelStatusCode >::total_values.
148 vValues[0].first =
"LVSTATUS(0)";
149 vValues[1].first =
"LVNOMINALSTATUS(1)";
150 vValues[2].first =
"HVSTATUS(2)";
151 vValues[3].first =
"HVNOMINALSTATUS(3)";
152 vValues[4].first =
"HVEEDSTATUS(4)";
153 vValues[5].first =
"HVEEDNOMINALSTATUS(5)";
156 vValues[0].second = .0;
157 vValues[1].second = .0;
158 vValues[2].second = .0;
159 vValues[3].second = .0;
160 vValues[4].second = .0;
161 vValues[5].second = .0;
164 unsigned int shift = 0, mask = 1;
165 unsigned int statusCode;
166 for(std::vector<EcalObject>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
168 statusCode = iItems->getStatusCode();
172 if (statusCode & mask){
173 vValues[
shift].second += 1;
std::vector< std::pair< std::string, float > > type_vValues
unsigned int total_values
static unsigned int const shift