164 for (
map< uint32_t, vector<MonitorElement*> >::const_iterator iMEvec=
mapOfdetIDtoMEs.begin();
166 uint32_t theMEdetID = iMEvec->first;
167 vector<MonitorElement*> theMEvector = iMEvec->second;
170 cout << theMEdetID <<
":";
for (vector<MonitorElement*>::const_iterator iME = theMEvector.begin();
171 iME!=theMEvector.end(); iME++)
cout << (*iME)->getName() <<
",";
cout << endl;
173 for (vector<MonitorElement*>::const_iterator iME = theMEvector.begin(); iME!=theMEvector.end(); iME++) {
174 string theMEname = (*iME)->getName();
179 if (theMEname.find(
"errorType_siPixelDigis")!=string::npos) {
180 for (
int v=25;
v<40;
v++) {
181 int b = (*iME)->getTH1()->GetXaxis()->FindBin(
v);
187 else if (theMEdetID==77) {
188 if (theMEname.find(
"ntracks")!=string::npos && theMEname.find(
"InPixVol")==string::npos) {
189 float trkMean=0.0, trkRMS=0.0;
190 if ((*iME)->getBinContent(1)>0.0) {
191 trkMean = float((*iME)->getBinContent(3))/(*iME)->getBinContent(1);
192 trkRMS =
sqrt(trkMean*(trkMean+1.0)/(*iME)->getBinContent(1));
195 trkMean = float((*iME)->getBinContent(4))/(*iME)->getBinContent(1);
196 trkRMS =
sqrt(trkMean*(trkMean+1.0)/(*iME)->getBinContent(1));
201 else if (theMEdetID==78) {
202 if (theMEname.find(
"nclusters_siPixelClusters")!=string::npos) {
206 if (theMEname.find(
"charge_siPixelClusters_Barrel")!=string::npos) {
209 if (theMEname.find(
"charge_siPixelClusters_Endcap")!=string::npos) {
212 if (theMEname.find(
"size_siPixelClusters_Barrel")!=string::npos) {
215 if (theMEname.find(
"size_siPixelClusters_Endcap")!=string::npos) {
219 else if (theMEdetID==79) {
220 if (theMEname.find(
"nclusters_siPixelClusters")!=string::npos) {
224 if (theMEname.find(
"charge_siPixelClusters_Barrel")!=string::npos) {
227 if (theMEname.find(
"charge_siPixelClusters_Endcap")!=string::npos) {
230 if (theMEname.find(
"size_siPixelClusters_Barrel")!=string::npos) {
233 if (theMEname.find(
"size_siPixelClusters_Endcap")!=string::npos) {
239 if (theMEname.find(
"ndigis_siPixelDigis")!=string::npos) {
242 if (theMEname.find(
"adc_siPixelDigis")!=string::npos) {
246 if (theMEname.find(
"nclusters_siPixelClusters")!=string::npos) {
249 if (theMEname.find(
"charge_siPixelClusters")!=string::npos) {
252 if (theMEname.find(
"size_siPixelClusters")!=string::npos) {
255 if (theMEname.find(
"sizeX_siPixelClusters")!=string::npos) {
258 if (theMEname.find(
"sizeY_siPixelClusters")!=string::npos) {
262 if (theMEname.find(
"nRecHits_siPixelRecHits")!=string::npos) {
266 if (theMEname.find(
"residualX_siPixelTrackResiduals")!=string::npos) {
269 if (theMEname.find(
"residualY_siPixelTrackResiduals")!=string::npos) {
273 if (theMEname.find(
"hitmap_siPixelClusters")!=std::string::npos ||
274 theMEname.find(
"hitmap_siPixelDigis")!=std::string::npos) {
275 int nNoisyCells=0, nEmptyCells=0;
276 for (
int xBin=0; xBin<(*iME)->getNbinsX(); xBin++) {
277 for (
int yBin=0; yBin<(*iME)->getNbinsY(); yBin++) {
278 if ((*iME)->getBinContent(xBin+1, yBin+1)>0.01*(*iME)->getEntries()) nNoisyCells++;
279 if ((*iME)->getBinContent(xBin+1, yBin+1)==.0 && (*iME)->getBinError(xBin+1, yBin+1)==0.0) nEmptyCells++;
SiPixelPerformanceSummary * performanceSummary
std::map< uint32_t, std::vector< MonitorElement * > > mapOfdetIDtoMEs