317 for (
map< uint32_t, vector<MonitorElement*> >::const_iterator iMEvec =
mapOfdetIDtoMEs.begin();
319 uint32_t theMEdetID = iMEvec->first;
320 vector<MonitorElement*> theMEvector = iMEvec->second;
323 cout << theMEdetID <<
":";
for (vector<MonitorElement*>::const_iterator iME = theMEvector.begin();
324 iME!=theMEvector.end(); iME++)
cout << (*iME)->getName() <<
",";
cout << endl;
326 for (vector<MonitorElement*>::const_iterator iME = theMEvector.begin(); iME!=theMEvector.end(); iME++) {
327 string theMEname = (*iME)->getName();
331 if (theMEname.find(
"errorType_siPixelDigis")!=string::npos) {
332 for (
int v=25;
v<40;
v++) {
333 int b = (*iME)->getTH1()->GetXaxis()->FindBin(
v);
339 else if (theMEdetID==77) {
340 if (theMEname.find(
"ntracks")!=string::npos && theMEname.find(
"InPixVol")==string::npos) {
341 float trkMean=0.0, trkRMS=0.0;
342 if ((*iME)->getBinContent(1)>0.0) {
343 trkMean = float((*iME)->getBinContent(3))/(*iME)->getBinContent(1);
344 trkRMS =
sqrt(trkMean*(trkMean+1.0)/(*iME)->getBinContent(1));
347 trkMean = float((*iME)->getBinContent(4))/(*iME)->getBinContent(1);
348 trkRMS =
sqrt(trkMean*(trkMean+1.0)/(*iME)->getBinContent(1));
353 else if (theMEdetID==78) {
354 if (theMEname.find(
"nclusters_siPixelClusters")!=string::npos) {
358 if (theMEname.find(
"charge_siPixelClusters_Barrel")!=string::npos) {
361 if (theMEname.find(
"charge_siPixelClusters_Endcap")!=string::npos) {
364 if (theMEname.find(
"size_siPixelClusters_Barrel")!=string::npos) {
367 if (theMEname.find(
"size_siPixelClusters_Endcap")!=string::npos) {
371 else if (theMEdetID==79) {
372 if (theMEname.find(
"nclusters_siPixelClusters")!=string::npos) {
376 if (theMEname.find(
"charge_siPixelClusters_Barrel")!=string::npos) {
379 if (theMEname.find(
"charge_siPixelClusters_Endcap")!=string::npos) {
382 if (theMEname.find(
"size_siPixelClusters_Barrel")!=string::npos) {
385 if (theMEname.find(
"size_siPixelClusters_Endcap")!=string::npos) {
391 if (theMEname.find(
"SUM")!=string::npos) {
393 if (theMEname.find(
"ndigis")!=string::npos && theMEname.find(
"FREQ")==string::npos) {
394 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
398 if (theMEname.find(
"adc")!=string::npos) {
399 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
404 if (theMEname.find(
"nclusters")!=string::npos) {
405 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
409 if (theMEname.find(
"charge")!=string::npos) {
410 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
414 if (theMEname.find(
"size")!=string::npos) {
415 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
419 if (theMEname.find(
"sizeX")!=string::npos) {
420 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
424 if (theMEname.find(
"sizeY")!=string::npos) {
425 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
430 if (theMEname.find(
"nRecHits")!=string::npos) {
431 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
436 if (theMEname.find(
"residualX")!=string::npos) {
437 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
441 if (theMEname.find(
"residualY")!=string::npos) {
442 float avgMean=0.0, avgRMS=0.0, emPtn=0.0;
446 if (theMEname.find(
"OccupancyMap")!=std::string::npos) {
447 int nNoisyCells=0, nEmptyCells=0;
448 for (
int xBin=0; xBin<(*iME)->getNbinsX(); xBin++) {
450 if ((*iME)->getBinContent(xBin+1,
yBin+1)>0.01*(*iME)->getEntries()) nNoisyCells++;
451 if ((*iME)->getBinContent(xBin+1,
yBin+1)==.0 && (*iME)->getBinError(xBin+1,
yBin+1)==0.0) nEmptyCells++;
461 if (theMEname.find(
"ndigis_siPixelDigis")!=string::npos && theMEname.find(
"FREQ")==string::npos) {
464 if (theMEname.find(
"adc_siPixelDigis")!=string::npos) {
465 performanceSummary->
setADC(theMEdetID, (*iME)->getMean(), (*iME)->getRMS(), ((*iME)->getEntries()==0.0 ? 1.0:-99.9));
468 if (theMEname.find(
"nclusters_siPixelClusters")!=string::npos) {
471 if (theMEname.find(
"charge_siPixelClusters")!=string::npos) {
474 if (theMEname.find(
"size_siPixelClusters")!=string::npos) {
477 if (theMEname.find(
"sizeX_siPixelClusters")!=string::npos) {
480 if (theMEname.find(
"sizeY_siPixelClusters")!=string::npos) {
484 if (theMEname.find(
"nRecHits_siPixelRecHits")!=string::npos) {
488 if (theMEname.find(
"residualX_siPixelTrackResiduals")!=string::npos) {
491 if (theMEname.find(
"residualY_siPixelTrackResiduals")!=string::npos) {
498 if (theMEname.find(
"ndigis_siPixelDigis")!=string::npos && theMEname.find(
"FREQ")==string::npos) {
501 if (theMEname.find(
"adc_siPixelDigis")!=string::npos) {
505 if (theMEname.find(
"nclusters_siPixelClusters")!=string::npos) {
508 if (theMEname.find(
"charge_siPixelClusters")!=string::npos) {
511 if (theMEname.find(
"size_siPixelClusters")!=string::npos) {
514 if (theMEname.find(
"sizeX_siPixelClusters")!=string::npos) {
517 if (theMEname.find(
"sizeY_siPixelClusters")!=string::npos) {
521 if (theMEname.find(
"nRecHits_siPixelRecHits")!=string::npos) {
525 if (theMEname.find(
"residualX_siPixelTrackResiduals")!=string::npos) {
528 if (theMEname.find(
"residualY_siPixelTrackResiduals")!=string::npos) {
532 if (theMEname.find(
"hitmap_siPixelClusters")!=std::string::npos ||
533 theMEname.find(
"hitmap_siPixelDigis")!=std::string::npos) {
534 int nNoisyCells=0, nEmptyCells=0;
535 for (
int xBin=0; xBin<(*iME)->getNbinsX(); xBin++) {
537 if ((*iME)->getBinContent(xBin+1,
yBin+1)>0.01*(*iME)->getEntries()) nNoisyCells++;
538 if ((*iME)->getBinContent(xBin+1,
yBin+1)==.0 && (*iME)->getBinError(xBin+1,
yBin+1)==0.0) nEmptyCells++;
SiPixelPerformanceSummary * performanceSummary
void getSummaryMEmeanRMSnBins(std::vector< MonitorElement * >::const_iterator, float &, float &, float &) const
std::map< uint32_t, std::vector< MonitorElement * > > mapOfdetIDtoMEs