12 : timeStamp_(0),
runNumber_(0), luminosityBlock_(0), numberOfEvents_(0) {}
32 pair<bool, vector<SiPixelPerformanceSummary::DetSummary>::iterator>
34 vector<float> performanceValues;
36 return setDet(detId, performanceValues);
40 pair<bool, vector<SiPixelPerformanceSummary::DetSummary>::iterator>
42 const vector<float>& performanceValues) {
46 cout <<
"not adding these "<< performanceValues.size() <<
" values; "
47 <<
"SiPixelPerformanceSummary can only add "<<
kDetSummarySize <<
" values per DetSummary";
48 return make_pair(
false, iDetSumm);
54 iDetSumm->detId_==detId)
return make_pair(
false, iDetSumm);
68 pair<bool, vector<DetSummary>::iterator> initResult =
initDet(detId);
70 initResult.second->performanceValues_[
index] = performanceValue;
74 cout <<
"cannot set the performance value; cannot create new entry for detId = "<< detId;
83 cout <<
"cannot get value for detId = "<< detId <<
" index = "<< index <<
" > "<<
kDetSummarySize;
87 if (performanceValues.size()==
kDetSummarySize)
return performanceValues[index];
93 return setValue(detId, bin, nErrors);
142 return setValue(detId, 45, nNpixCells);
146 return setValue(detId, 46, nNpixCells);
150 return setValue(detId, 47, nPixelHits);
158 return setValue(detId, 50, nClusters);
162 return setValue(detId, 51, nClusters);
182 vector<uint32_t> allDetIds;
183 for (vector<DetSummary>::const_iterator iDetSumm =
allDetSummaries_.begin();
184 iDetSumm!=
allDetSummaries_.end(); ++iDetSumm) allDetIds.push_back(iDetSumm->detId_);
190 vector<DetSummary>::const_iterator iDetSumm = find_if(
allDetSummaries_.begin(),
194 vector<float> performanceValues;
195 cout <<
"cannot get DetSummary for detId = "<< detId;
196 return performanceValues;
198 else return iDetSumm->performanceValues_;
204 cout <<
"DetSummary for detId "<< detId <<
" : ";
205 for (vector<float>::const_iterator
v = performanceValues.begin();
v!=performanceValues.end(); ++
v)
cout <<
" "<< *
v;
221 for (vector<DetSummary>::const_iterator iDetSumm =
allDetSummaries_.begin();
static const char runNumber_[]