CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy Class Reference

#include <CalibTracker/SiStripQuality/src/SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc>

Classes

struct  Apv
 

Public Types

typedef SiStrip::QualityHistosMap HistoMap
 

Public Member Functions

void extractBadAPVSandStrips (SiStripQuality *, HistoMap &, edm::ESHandle< SiStripQuality > &)
 
void setAbsoluteLowThreshold (long double absolute_low)
 
void setAbsoluteOccupancyThreshold (long double absolute_occupancy)
 
void setHighOccupancyThreshold (long double high_occupancy)
 
void setLowOccupancyThreshold (long double low_occupancy)
 
void setMinNumEntries (unsigned short m)
 
void setMinNumEntriesPerStrip (unsigned short m)
 
void setMinNumOfEvents ()
 
void setNumberIterations (int number_iterations)
 
void setNumberOfEvents (double Nevents)
 
void setOutputFileName (std::string OutputFileName, bool WriteOutputFile, std::string DQMOutfileName, bool WriteDQMHistograms)
 
void setProbabilityThreshold (long double prob)
 
void setTrackerGeometry (const TrackerGeometry *tkgeom)
 
 SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy (const edm::ParameterSet &, const TrackerTopology *)
 
virtual ~SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy ()
 

Private Member Functions

void AnalyzeOccupancy (SiStripQuality *, std::vector< Apv > &, std::pair< double, double > *, std::vector< unsigned int > &, edm::ESHandle< SiStripQuality > &)
 
void CalculateMeanAndRMS (const std::vector< Apv > &, std::pair< double, double > *, int)
 
void evaluatePoissonian (std::vector< long double > &, long double &meanVal)
 
void fillStripDQMHistograms ()
 
void initializeDQMHistograms ()
 
void iterativeSearch (Apv &, std::vector< unsigned int > &, int)
 
void setBasicTreeParameters (int detid)
 

Private Attributes

long double absolute_occupancy_
 
long double absolutelow_
 
TH1F * absoluteOccupancy [5][10]
 
int apv_channel
 
int apv_number
 
int apvAbsoluteOccupancy
 
double apvMedianOccupancy
 
TTree * apvtree
 
double avgAPVHits
 
double avgapvhits [6]
 
uint32_t detrawid
 
int disc
 
unsigned int distance
 
unsigned int distanceL
 
unsigned int distanceR
 
std::vector< TH2F * > distanceVsStripNumber
 
std::string DQMOutfileName_
 
DQMStoredqmStore
 
TFile * f
 
float global_position_x
 
float global_position_y
 
float global_position_z
 
long double highoccupancy_
 
int hotStripsPerAPV
 
int hotstripsperapv [6]
 
int hotStripsPerModule
 
int hotstripspermodule
 
int isback
 
int isBad
 
int isexternalstring
 
int isHot
 
int ishot [128]
 
int isstereo
 
int iszminusside
 
int layer_ring
 
std::vector< std::string > layerName
 
long double lowoccupancy_
 
std::pair< double, double > MeanAndRms_TECMinus_Disc1 [7]
 
std::pair< double, double > MeanAndRms_TECMinus_Disc2 [7]
 
std::pair< double, double > MeanAndRms_TECMinus_Disc3 [7]
 
std::pair< double, double > MeanAndRms_TECMinus_Disc4 [7]
 
std::pair< double, double > MeanAndRms_TECMinus_Disc5 [7]
 
std::pair< double, double > MeanAndRms_TECMinus_Disc6 [7]
 
std::pair< double, double > MeanAndRms_TECMinus_Disc7 [7]
 
std::pair< double, double > MeanAndRms_TECMinus_Disc8 [7]
 
std::pair< double, double > MeanAndRms_TECMinus_Disc9 [7]
 
std::pair< double, double > MeanAndRms_TECPlus_Disc1 [7]
 
std::pair< double, double > MeanAndRms_TECPlus_Disc2 [7]
 
std::pair< double, double > MeanAndRms_TECPlus_Disc3 [7]
 
std::pair< double, double > MeanAndRms_TECPlus_Disc4 [7]
 
std::pair< double, double > MeanAndRms_TECPlus_Disc5 [7]
 
std::pair< double, double > MeanAndRms_TECPlus_Disc6 [7]
 
std::pair< double, double > MeanAndRms_TECPlus_Disc7 [7]
 
std::pair< double, double > MeanAndRms_TECPlus_Disc8 [7]
 
std::pair< double, double > MeanAndRms_TECPlus_Disc9 [7]
 
std::pair< double, double > MeanAndRms_TIB_Layer1 [7]
 
std::pair< double, double > MeanAndRms_TIB_Layer2 [7]
 
std::pair< double, double > MeanAndRms_TIB_Layer3 [7]
 
std::pair< double, double > MeanAndRms_TIB_Layer4 [7]
 
std::pair< double, double > MeanAndRms_TIDMinus_Disc1 [7]
 
std::pair< double, double > MeanAndRms_TIDMinus_Disc2 [7]
 
std::pair< double, double > MeanAndRms_TIDMinus_Disc3 [7]
 
std::pair< double, double > MeanAndRms_TIDPlus_Disc1 [7]
 
std::pair< double, double > MeanAndRms_TIDPlus_Disc2 [7]
 
std::pair< double, double > MeanAndRms_TIDPlus_Disc3 [7]
 
std::pair< double, double > MeanAndRms_TOB_Layer1 [7]
 
std::pair< double, double > MeanAndRms_TOB_Layer2 [7]
 
std::pair< double, double > MeanAndRms_TOB_Layer3 [7]
 
std::pair< double, double > MeanAndRms_TOB_Layer4 [7]
 
std::pair< double, double > MeanAndRms_TOB_Layer5 [7]
 
std::pair< double, double > MeanAndRms_TOB_Layer6 [7]
 
double medianAPVHits
 
double medianapvhits [6]
 
TH1F * medianOccupancy [5][10]
 
std::vector< ApvmedianValues_TECMinus_Disc1
 
std::vector< ApvmedianValues_TECMinus_Disc2
 
std::vector< ApvmedianValues_TECMinus_Disc3
 
std::vector< ApvmedianValues_TECMinus_Disc4
 
std::vector< ApvmedianValues_TECMinus_Disc5
 
std::vector< ApvmedianValues_TECMinus_Disc6
 
std::vector< ApvmedianValues_TECMinus_Disc7
 
std::vector< ApvmedianValues_TECMinus_Disc8
 
std::vector< ApvmedianValues_TECMinus_Disc9
 
std::vector< ApvmedianValues_TECPlus_Disc1
 
std::vector< ApvmedianValues_TECPlus_Disc2
 
std::vector< ApvmedianValues_TECPlus_Disc3
 
std::vector< ApvmedianValues_TECPlus_Disc4
 
std::vector< ApvmedianValues_TECPlus_Disc5
 
std::vector< ApvmedianValues_TECPlus_Disc6
 
std::vector< ApvmedianValues_TECPlus_Disc7
 
std::vector< ApvmedianValues_TECPlus_Disc8
 
std::vector< ApvmedianValues_TECPlus_Disc9
 
std::vector< ApvmedianValues_TIB_Layer1
 
std::vector< ApvmedianValues_TIB_Layer2
 
std::vector< ApvmedianValues_TIB_Layer3
 
std::vector< ApvmedianValues_TIB_Layer4
 
std::vector< ApvmedianValues_TIDMinus_Disc1
 
std::vector< ApvmedianValues_TIDMinus_Disc2
 
std::vector< ApvmedianValues_TIDMinus_Disc3
 
std::vector< ApvmedianValues_TIDPlus_Disc1
 
std::vector< ApvmedianValues_TIDPlus_Disc2
 
std::vector< ApvmedianValues_TIDPlus_Disc3
 
std::vector< ApvmedianValues_TOB_Layer1
 
std::vector< ApvmedianValues_TOB_Layer2
 
std::vector< ApvmedianValues_TOB_Layer3
 
std::vector< ApvmedianValues_TOB_Layer4
 
std::vector< ApvmedianValues_TOB_Layer5
 
std::vector< ApvmedianValues_TOB_Layer6
 
TH2F * medianVsAbsoluteOccupancy [5][10]
 
double minNevents_
 
unsigned short MinNumEntries_
 
unsigned short MinNumEntriesPerStrip_
 
int module_number
 
double Nevents_
 
std::vector< TH2F * > nHitsGoodStripsVsStripNumber
 
std::vector< TH2F * > nHitsHotStripsVsStripNumber
 
std::vector< TH2F * > nHitsVsStripNumber
 
std::vector< unsigned int > nLayers
 
int number_apvs
 
int number_strips
 
int numberiterations_
 
std::vector< TH2F * > occupancyGoodStripsVsStripNumber
 
std::vector< TH2F * > occupancyHotStripsVsStripNumber
 
std::vector< TH2F * > occupancyVsStripNumber
 
std::ostringstream oss
 
std::string outfilename
 
std::string OutFileName_
 
std::vector< TProfile * > pfxDistanceVsStripNumber
 
std::vector< TProfile * > pfxNHitsGoodStripsVsStripNumber
 
std::vector< TProfile * > pfxNHitsHotStripsVsStripNumber
 
std::vector< TProfile * > pfxNHitsVsStripNumber
 
std::vector< TProfile * > pfxOccupancyGoodStripsVsStripNumber
 
std::vector< TProfile * > pfxOccupancyHotStripsVsStripNumber
 
std::vector< TProfile * > pfxOccupancyVsStripNumber
 
std::vector< TProfile * > pfxPoissonProbGoodStripsVsStripNumber
 
std::vector< TProfile * > pfxPoissonProbHotStripsVsStripNumber
 
std::vector< TProfile * > pfxPoissonProbVsStripNumber
 
double poissonProb
 
double poissonprob [128]
 
std::vector< TH2F * > poissonProbGoodStripsVsStripNumber
 
std::vector< TH2F * > poissonProbHotStripsVsStripNumber
 
std::vector< TH2F * > poissonProbVsStripNumber
 
SiStripQualitypQuality
 
long double prob_
 
std::vector< TH1F * > projXDistanceVsStripNumber
 
std::vector< TH1F * > projXNHitsGoodStripsVsStripNumber
 
std::vector< TH1F * > projXNHitsHotStripsVsStripNumber
 
std::vector< TH1F * > projXNHitsVsStripNumber
 
std::vector< TH1F * > projYDistanceVsStripNumber
 
std::vector< TH1F * > projYNHitsGoodStripsVsStripNumber
 
std::vector< TH1F * > projYNHitsHotStripsVsStripNumber
 
std::vector< TH1F * > projYNHitsVsStripNumber
 
std::vector< TH1F * > projYOccupancyGoodStripsVsStripNumber
 
std::vector< TH1F * > projYOccupancyHotStripsVsStripNumber
 
std::vector< TH1F * > projYOccupancyVsStripNumber
 
std::vector< TH1F * > projYPoissonProbGoodStripsVsStripNumber
 
std::vector< TH1F * > projYPoissonProbHotStripsVsStripNumber
 
std::vector< TH1F * > projYPoissonProbVsStripNumber
 
long double ratio_
 
int rodstringpetal
 
double singleStripOccupancy
 
std::stringstream ss
 
float strip_global_position_x
 
float strip_global_position_y
 
float strip_global_position_z
 
int strip_number
 
int stripHits
 
int striphits [128]
 
double stripOccupancy [6][128]
 
double stripoccupancy [128]
 
TTree * striptree
 
double stripWeight [6][128]
 
int subdetid
 
std::vector< std::string > subDetName
 
const TrackerGeometryTkGeom
 
MonitorElementtmp
 
TProfile * tmp_prof
 
const TrackerTopologytTopo
 
bool UseInputDB_
 
std::vector< unsigned int > vHotStripsInModule
 
bool WriteDQMHistograms_
 
bool WriteOutputFile_
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 44 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.h.

Member Typedef Documentation

Constructor & Destructor Documentation

SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy ( const edm::ParameterSet iConfig,
const TrackerTopology theTopo 
)

Definition at line 11 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References absolute_occupancy_, minNevents_, and Nevents_.

13  : ratio_(1.5),
14  lowoccupancy_(0),
15  highoccupancy_(100),
16  absolutelow_(0),
18  Nevents_(0),
20  OutFileName_("Occupancy.root"),
21  DQMOutfileName_("DQMOutput"),
22  UseInputDB_(iConfig.getUntrackedParameter<bool>("UseInputDB", false)),
23  tTopo(theTopo) {
25 }
T getUntrackedParameter(std::string const &, T const &) const
SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::~SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy ( )
virtual

Definition at line 27 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References LogTrace.

27  {
28  LogTrace("SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy")
29  << "[SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::~"
30  "SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy] "
31  << std::endl;
32 }
#define LogTrace(id)

Member Function Documentation

void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::AnalyzeOccupancy ( SiStripQuality quality,
std::vector< Apv > &  medianValues,
std::pair< double, double > *  MeanAndRms,
std::vector< unsigned int > &  BadStripList,
edm::ESHandle< SiStripQuality > &  InSiStripQuality 
)
private

Definition at line 473 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References absolutelow_, absoluteOccupancy, apv_channel, apv_number, apvAbsoluteOccupancy, apvMedianOccupancy, apvtree, SiStripQuality::compact(), gather_cfg::cout, disc, distance, distanceL, distanceR, distanceVsStripNumber, SiStripBadStrip::encode(), fillStripDQMHistograms(), plotBeamSpotDB::first, global_position_x, global_position_y, global_position_z, highoccupancy_, hotStripsPerAPV, hotstripsperapv, hotStripsPerModule, hotstripspermodule, mps_fire::i, TrackerGeometry::idToDet(), SiStripQuality::IsApvBad(), isBad, isHot, ishot, iterativeSearch(), layer_ring, StripTopology::localPosition(), lowoccupancy_, medianOccupancy, medianVsAbsoluteOccupancy, minNevents_, number_strips, poissonProb, poissonprob, pQuality, SiStripBadStrip::put(), edm::second(), setBasicTreeParameters(), singleStripOccupancy, StripGeomDetUnit::specificTopology(), digitizers_cfi::strip, strip_global_position_x, strip_global_position_y, strip_global_position_z, strip_number, stripHits, striphits, stripoccupancy, striptree, subdetid, TkGeom, UseInputDB_, vHotStripsInModule, WriteOutputFile_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by extractBadAPVSandStrips().

478  {
479  int Moduleposition;
480  uint32_t Detid;
481 
482  for (uint32_t it = 0; it < medianValues.size(); it++) {
483  Moduleposition = (medianValues[it].modulePosition) - 1;
484  Detid = medianValues[it].detrawId;
485 
486  setBasicTreeParameters(Detid);
487 
488  DetId DetectorId = DetId(Detid);
489  const StripGeomDetUnit* TheStripDet = dynamic_cast<const StripGeomDetUnit*>((TkGeom->idToDet(DetectorId)));
490  const StripTopology* TheStripTopol = dynamic_cast<const StripTopology*>(&(TheStripDet->specificTopology()));
491 
492  //Analyze the occupancies
493  hotstripspermodule = 0;
494  vHotStripsInModule.clear();
495 
496  for (int apv = 0; apv < medianValues[it].numberApvs; apv++) {
497  double logMedianOccupancy = -1;
498  double logAbsoluteOccupancy = -1;
499 
500  for (int i = 0; i < 128; i++) {
501  ishot[i] = 0;
502  stripoccupancy[i] = 0;
503  striphits[i] = 0;
504  poissonprob[i] = 0;
505  }
506 
507  number_strips = (medianValues[it].numberApvs) * 128;
508  apv_number = apv + 1;
509  apvMedianOccupancy = medianValues[it].apvMedian[apv];
510  apvAbsoluteOccupancy = medianValues[it].apvabsoluteOccupancy[apv];
511  isBad = 0;
512  hotstripsperapv[apv] = 0;
513 
514  LocalPoint pos_apv_local = TheStripTopol->localPosition((apv * 128));
515  GlobalPoint pos_apv_global = (TkGeom->idToDet(DetectorId))->surface().toGlobal(pos_apv_local);
516 
517  global_position_x = pos_apv_global.x();
518  global_position_y = pos_apv_global.y();
519  global_position_z = pos_apv_global.z();
520 
521  if (apvMedianOccupancy > 0)
522  logMedianOccupancy = log10(apvMedianOccupancy);
523  if (apvAbsoluteOccupancy > 0)
524  logAbsoluteOccupancy = log10(apvAbsoluteOccupancy);
525 
526  //Fill the DQM histograms
527  unsigned int layer = 0;
528  if (subdetid == 3 || subdetid == 5)
529  layer = layer_ring;
530  else
531  layer = disc;
532 
533  // Fill histograms for all the tracker
534  medianVsAbsoluteOccupancy[0][0]->Fill(logAbsoluteOccupancy, logMedianOccupancy);
535  medianOccupancy[0][0]->Fill(logMedianOccupancy);
536  absoluteOccupancy[0][0]->Fill(logAbsoluteOccupancy);
537  // Fill summary histograms for each subdetector
538  medianVsAbsoluteOccupancy[subdetid - 2][0]->Fill(logAbsoluteOccupancy, logMedianOccupancy);
539  medianOccupancy[subdetid - 2][0]->Fill(logMedianOccupancy);
540  absoluteOccupancy[subdetid - 2][0]->Fill(logAbsoluteOccupancy);
541  // Fill histograms for each layer/disk
542  medianVsAbsoluteOccupancy[subdetid - 2][layer]->Fill(logAbsoluteOccupancy, logMedianOccupancy);
543  medianOccupancy[subdetid - 2][layer]->Fill(logMedianOccupancy);
544  absoluteOccupancy[subdetid - 2][layer]->Fill(logAbsoluteOccupancy);
545 
546  if (UseInputDB_) {
547  if (InSiStripQuality->IsApvBad(Detid, apv)) {
548  if (WriteOutputFile_ == true) {
549  apvtree->Fill();
550  for (int strip = 0; strip < 128; strip++) {
551  strip_number = (apv * 128) + strip + 1;
552  apv_channel = apv + 1;
553  isHot = ishot[strip];
557 
560 
561  LocalPoint pos_strip_local = TheStripTopol->localPosition(strip);
562  GlobalPoint pos_strip_global = (TkGeom->idToDet(DetectorId))->surface().toGlobal(pos_strip_local);
563 
564  strip_global_position_x = pos_strip_global.x();
565  strip_global_position_y = pos_strip_global.y();
566  strip_global_position_z = pos_strip_global.z();
567  striptree->Fill();
568 
569  // Fill the strip DQM Plots
571  }
572 
573  if (vHotStripsInModule.size() == 1) {
574  distance = 999;
577  } else if (vHotStripsInModule.size() > 1) {
578  for (unsigned int iVec = 0; iVec != vHotStripsInModule.size(); iVec++) {
579  if (iVec == 0)
581  else if (iVec == vHotStripsInModule.size() - 1) {
582  distance = vHotStripsInModule[vHotStripsInModule.size() - 1] -
583  vHotStripsInModule[vHotStripsInModule.size() - 2];
584  } else if (vHotStripsInModule.size() > 2) {
585  distanceR = vHotStripsInModule[iVec + 1] - vHotStripsInModule[iVec];
586  distanceL = vHotStripsInModule[iVec] - vHotStripsInModule[iVec - 1];
588  } else {
589  std::cout << "ERROR! distance is never computed!!!\n";
590  }
591  distanceVsStripNumber[0]->Fill(vHotStripsInModule[iVec], distance);
592  distanceVsStripNumber[subdetid - 2]->Fill(vHotStripsInModule[iVec], distance);
593  }
594  }
595  }
596  continue; //if the apv is already flagged as bad, continue.
597  }
598  }
599 
600  if (medianValues[it].apvMedian[apv] > minNevents_) {
601  if ((medianValues[it].apvMedian[apv] >
602  (MeanAndRms[Moduleposition].first + highoccupancy_ * MeanAndRms[Moduleposition].second)) &&
603  (medianValues[it].apvMedian[apv] > absolutelow_)) {
604  BadStripList.push_back(pQuality->encode((apv * 128), 128, 0));
605  isBad = 1;
606  }
607  } else if (medianValues[it].apvMedian[apv] <
608  (MeanAndRms[Moduleposition].first - lowoccupancy_ * MeanAndRms[Moduleposition].second) &&
609  (MeanAndRms[Moduleposition].first > 2 || medianValues[it].apvabsoluteOccupancy[apv] == 0)) {
610  BadStripList.push_back(pQuality->encode((apv * 128), 128, 0));
611  isBad = 1;
612  }
613 
614  if (isBad != 1) {
615  iterativeSearch(medianValues[it], BadStripList, apv);
616  }
617 
618  if (WriteOutputFile_ == true) {
619  apvtree->Fill();
620  for (int strip = 0; strip < 128; strip++) {
621  strip_number = (apv * 128) + strip + 1;
622  apv_channel = apv + 1;
623  isHot = ishot[strip];
627 
630 
631  LocalPoint pos_strip_local = TheStripTopol->localPosition(strip);
632  GlobalPoint pos_strip_global = (TkGeom->idToDet(DetectorId))->surface().toGlobal(pos_strip_local);
633 
634  strip_global_position_x = pos_strip_global.x();
635  strip_global_position_y = pos_strip_global.y();
636  strip_global_position_z = pos_strip_global.z();
637  striptree->Fill();
638 
639  // Fill the strip DQM Plots
641  }
642  if (vHotStripsInModule.size() == 1) {
643  distance = 999;
644  distanceVsStripNumber[0]->Fill(vHotStripsInModule[0], distance);
645  distanceVsStripNumber[subdetid - 2]->Fill(vHotStripsInModule[0], distance);
646  } else if (vHotStripsInModule.size() > 1) {
647  for (unsigned int iVec = 0; iVec != vHotStripsInModule.size(); iVec++) {
648  if (iVec == 0)
649  distance = vHotStripsInModule[1] - vHotStripsInModule[0];
650  else if (iVec == vHotStripsInModule.size() - 1) {
651  distance =
652  vHotStripsInModule[vHotStripsInModule.size() - 1] - vHotStripsInModule[vHotStripsInModule.size() - 2];
653  } else if (vHotStripsInModule.size() > 2) {
654  distanceR = vHotStripsInModule[iVec + 1] - vHotStripsInModule[iVec];
655  distanceL = vHotStripsInModule[iVec] - vHotStripsInModule[iVec - 1];
657  } else {
658  std::cout << "ERROR! distance is never computed!!!\n";
659  }
660  distanceVsStripNumber[0]->Fill(vHotStripsInModule[iVec], distance);
661  distanceVsStripNumber[subdetid - 2]->Fill(vHotStripsInModule[iVec], distance);
662  }
663  }
664  }
665  }
666 
667  if (BadStripList.begin() != BadStripList.end()) {
668  quality->compact(Detid, BadStripList);
669  SiStripQuality::Range range(BadStripList.begin(), BadStripList.end());
670  quality->put(Detid, range);
671  }
672  BadStripList.clear();
673  }
674 }
bool IsApvBad(const uint32_t &detid, const short &apvNb) const
T y() const
Definition: PV3DBase.h:63
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
U second(std::pair< T, U > const &p)
virtual LocalPoint localPosition(float strip) const =0
T z() const
Definition: PV3DBase.h:64
void compact(unsigned int &, std::vector< unsigned int > &)
Definition: DetId.h:18
std::pair< ContainerIterator, ContainerIterator > Range
const TrackerGeomDet * idToDet(DetId) const override
bool put(const uint32_t &detID, const InputVector &vect)
T x() const
Definition: PV3DBase.h:62
unsigned int encode(const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0)
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::CalculateMeanAndRMS ( const std::vector< Apv > &  a,
std::pair< double, double > *  MeanRMS,
int  number_iterations 
)
private

Definition at line 426 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References Abs(), mps_fire::i, Mean, and gen::n.

Referenced by extractBadAPVSandStrips().

428  {
429  Double_t tot[7], tot2[7];
430  Double_t n[7];
431 
432  Double_t Mean[7] = {0};
433  Double_t Rms[7] = {1000, 1000, 1000, 1000, 1000, 1000, 1000};
434 
435  int Moduleposition;
436 
437  for (int i = 0; i < number_iterations; i++) {
438  for (int j = 0; j < 7; j++) {
439  n[j] = 0;
440  tot[j] = 0;
441  tot2[j] = 0;
442  }
443 
444  for (uint32_t it = 0; it < a.size(); it++) {
445  Moduleposition = (a[it].modulePosition) - 1;
446 
447  for (int apv = 0; apv < a[it].numberApvs; apv++) {
448  if (i > 0) {
449  if (a[it].apvMedian[apv] < (Mean[Moduleposition] - 3 * Rms[Moduleposition]) ||
450  (a[it].apvMedian[apv] > (Mean[Moduleposition] + 5 * Rms[Moduleposition]))) {
451  continue;
452  }
453  }
454  tot[Moduleposition] += a[it].apvMedian[apv];
455  tot2[Moduleposition] += (a[it].apvMedian[apv]) * (a[it].apvMedian[apv]);
456  n[Moduleposition]++;
457  }
458  }
459 
460  for (int j = 0; j < 7; j++) {
461  if (n[j] != 0) {
462  Mean[j] = tot[j] / n[j];
463  Rms[j] = TMath::Sqrt(TMath::Abs(tot2[j] / n[j] - Mean[j] * Mean[j]));
464  }
465  }
466  }
467 
468  for (int j = 0; j < 7; j++) {
469  MeanRMS[j] = std::make_pair(Mean[j], Rms[j]);
470  }
471 }
T Abs(T a)
Definition: MathUtil.h:49
double a
Definition: hdecay.h:121
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::evaluatePoissonian ( std::vector< long double > &  vPoissonProbs,
long double &  meanVal 
)
private

Definition at line 743 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References mps_fire::i.

Referenced by iterativeSearch().

744  {
745  for (size_t i = 0; i < vPoissonProbs.size(); ++i) {
746  vPoissonProbs[i] = (i == 0) ? TMath::Poisson(i, meanVal) : vPoissonProbs[i - 1] + TMath::Poisson(i, meanVal);
747  }
748 }
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips ( SiStripQuality siStripQuality,
HistoMap DM,
edm::ESHandle< SiStripQuality > &  inSiStripQuality 
)

Definition at line 34 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References AnalyzeOccupancy(), sistrip::APV, apv_channel, apv_number, SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::apvabsoluteOccupancy, apvAbsoluteOccupancy, SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::apvMedian, apvMedianOccupancy, apvtree, avgAPVHits, CalculateMeanAndRMS(), DQMStore::cd(), SiStripQuality::clear(), gather_cfg::cout, SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::detrawId, detrawid, disc, distanceVsStripNumber, DQMOutfileName_, dqmStore, f, SiStripQuality::fillBadComponents(), global_position_x, global_position_y, global_position_z, hotStripsPerAPV, hotStripsPerModule, mps_fire::i, initializeDQMHistograms(), createfilelist::int, isback, isBad, edm::isDebugEnabled(), isexternalstring, isHot, isstereo, iszminusside, layer_ring, LogTrace, MeanAndRms_TECMinus_Disc1, MeanAndRms_TECMinus_Disc2, MeanAndRms_TECMinus_Disc3, MeanAndRms_TECMinus_Disc4, MeanAndRms_TECMinus_Disc5, MeanAndRms_TECMinus_Disc6, MeanAndRms_TECMinus_Disc7, MeanAndRms_TECMinus_Disc8, MeanAndRms_TECMinus_Disc9, MeanAndRms_TECPlus_Disc1, MeanAndRms_TECPlus_Disc2, MeanAndRms_TECPlus_Disc3, MeanAndRms_TECPlus_Disc4, MeanAndRms_TECPlus_Disc5, MeanAndRms_TECPlus_Disc6, MeanAndRms_TECPlus_Disc7, MeanAndRms_TECPlus_Disc8, MeanAndRms_TECPlus_Disc9, MeanAndRms_TIB_Layer1, MeanAndRms_TIB_Layer2, MeanAndRms_TIB_Layer3, MeanAndRms_TIB_Layer4, MeanAndRms_TIDMinus_Disc1, MeanAndRms_TIDMinus_Disc2, MeanAndRms_TIDMinus_Disc3, MeanAndRms_TIDPlus_Disc1, MeanAndRms_TIDPlus_Disc2, MeanAndRms_TIDPlus_Disc3, MeanAndRms_TOB_Layer1, MeanAndRms_TOB_Layer2, MeanAndRms_TOB_Layer3, MeanAndRms_TOB_Layer4, MeanAndRms_TOB_Layer5, MeanAndRms_TOB_Layer6, medianAPVHits, medianValues_TECMinus_Disc1, medianValues_TECMinus_Disc2, medianValues_TECMinus_Disc3, medianValues_TECMinus_Disc4, medianValues_TECMinus_Disc5, medianValues_TECMinus_Disc6, medianValues_TECMinus_Disc7, medianValues_TECMinus_Disc8, medianValues_TECMinus_Disc9, medianValues_TECPlus_Disc1, medianValues_TECPlus_Disc2, medianValues_TECPlus_Disc3, medianValues_TECPlus_Disc4, medianValues_TECPlus_Disc5, medianValues_TECPlus_Disc6, medianValues_TECPlus_Disc7, medianValues_TECPlus_Disc8, medianValues_TECPlus_Disc9, medianValues_TIB_Layer1, medianValues_TIB_Layer2, medianValues_TIB_Layer3, medianValues_TIB_Layer4, medianValues_TIDMinus_Disc1, medianValues_TIDMinus_Disc2, medianValues_TIDMinus_Disc3, medianValues_TIDPlus_Disc1, medianValues_TIDPlus_Disc2, medianValues_TIDPlus_Disc3, medianValues_TOB_Layer1, medianValues_TOB_Layer2, medianValues_TOB_Layer3, medianValues_TOB_Layer4, medianValues_TOB_Layer5, medianValues_TOB_Layer6, module_number, SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::modulePosition, SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::NEmptyBins, SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::NEntries, nHitsGoodStripsVsStripNumber, nHitsHotStripsVsStripNumber, nHitsVsStripNumber, number_apvs, number_strips, SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::numberApvs, numberiterations_, occupancyGoodStripsVsStripNumber, occupancyHotStripsVsStripNumber, occupancyVsStripNumber, OutFileName_, pfxDistanceVsStripNumber, pfxOccupancyGoodStripsVsStripNumber, pfxOccupancyHotStripsVsStripNumber, pfxOccupancyVsStripNumber, pfxPoissonProbGoodStripsVsStripNumber, pfxPoissonProbHotStripsVsStripNumber, pfxPoissonProbVsStripNumber, poissonProb, poissonProbGoodStripsVsStripNumber, poissonProbHotStripsVsStripNumber, poissonProbVsStripNumber, pQuality, projXDistanceVsStripNumber, projYDistanceVsStripNumber, projYNHitsGoodStripsVsStripNumber, projYNHitsHotStripsVsStripNumber, projYNHitsVsStripNumber, projYOccupancyGoodStripsVsStripNumber, projYOccupancyHotStripsVsStripNumber, projYOccupancyVsStripNumber, projYPoissonProbGoodStripsVsStripNumber, projYPoissonProbHotStripsVsStripNumber, projYPoissonProbVsStripNumber, rodstringpetal, DQMStore::save(), singleStripOccupancy, ss, digitizers_cfi::strip, strip_global_position_x, strip_global_position_y, strip_global_position_z, strip_number, stripHits, stripOccupancy, striptree, stripWeight, DetId::subdetId(), subdetid, subDetName, StripSubdetector::TEC, TrackerTopology::tecIsZMinusSide(), TrackerTopology::tecRing(), TrackerTopology::tecWheel(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::th1f, StripSubdetector::TIB, TrackerTopology::tibLayer(), TrackerTopology::tibModule(), StripSubdetector::TID, TrackerTopology::tidIsZMinusSide(), TrackerTopology::tidRing(), TrackerTopology::tidWheel(), StripSubdetector::TOB, TrackerTopology::tobLayer(), TrackerTopology::tobModule(), tTopo, WriteDQMHistograms_, and WriteOutputFile_.

Referenced by SiStripQualityHotStripIdentifierRoot::getNewObject(), and setTrackerGeometry().

35  {
36  LogTrace("SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy")
37  << "[SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVs] " << std::endl;
38 
39  if (WriteOutputFile_ == true) {
40  f = new TFile(OutFileName_.c_str(), "RECREATE");
41  f->cd();
42 
43  apvtree = new TTree("moduleOccupancy", "tree");
44 
45  apvtree->Branch("DetRawId", &detrawid, "DetRawId/I");
46  apvtree->Branch("SubDetId", &subdetid, "SubDetId/I");
47  apvtree->Branch("Layer_Ring", &layer_ring, "Layer_Ring/I");
48  apvtree->Branch("Disc", &disc, "Disc/I");
49  apvtree->Branch("IsBack", &isback, "IsBack/I");
50  apvtree->Branch("IsExternalString", &isexternalstring, "IsExternalString/I");
51  apvtree->Branch("IsZMinusSide", &iszminusside, "IsZMinusSide/I");
52  apvtree->Branch("RodStringPetal", &rodstringpetal, "RodStringPetal/I");
53  apvtree->Branch("IsStereo", &isstereo, "IsStereo/I");
54  apvtree->Branch("ModuleNumber", &module_number, "ModuleNumber/I");
55  apvtree->Branch("NumberOfStrips", &number_strips, "NumberOfStrips/I");
56  apvtree->Branch("APVGlobalPositionX", &global_position_x, "APVGlobalPositionX/F");
57  apvtree->Branch("APVGlobalPositionY", &global_position_y, "APVGlobalPositionY/F");
58  apvtree->Branch("APVGlobalPositionZ", &global_position_z, "APVGlobalPositionZ/F");
59  apvtree->Branch("APVNumber", &apv_number, "APVNumber/I");
60  apvtree->Branch("APVAbsoluteOccupancy", &apvAbsoluteOccupancy, "apvAbsoluteOccupancy/I");
61  apvtree->Branch("APVMedianOccupancy", &apvMedianOccupancy, "apvMedianOccupancy/D");
62  apvtree->Branch("IsBad", &isBad, "IsBad/I");
63 
64  striptree = new TTree("stripOccupancy", "tree");
65 
66  striptree->Branch("DetRawId", &detrawid, "DetRawId/I");
67  striptree->Branch("SubDetId", &subdetid, "SubDetId/I");
68  striptree->Branch("Layer_Ring", &layer_ring, "Layer_Ring/I");
69  striptree->Branch("Disc", &disc, "Disc/I");
70  striptree->Branch("IsBack", &isback, "IsBack/I");
71  striptree->Branch("IsExternalString", &isexternalstring, "IsExternalString/I");
72  striptree->Branch("IsZMinusSide", &iszminusside, "IsZMinusSide/I");
73  striptree->Branch("RodStringPetal", &rodstringpetal, "RodStringPetal/I");
74  striptree->Branch("IsStereo", &isstereo, "IsStereo/I");
75  striptree->Branch("ModulePosition", &module_number, "ModulePosition/I");
76  striptree->Branch("NumberOfStrips", &number_strips, "NumberOfStrips/I");
77  striptree->Branch("StripNumber", &strip_number, "StripNumber/I");
78  striptree->Branch("APVChannel", &apv_channel, "APVChannel/I");
79  striptree->Branch("StripGlobalPositionX", &strip_global_position_x, "StripGlobalPositionX/F");
80  striptree->Branch("StripGlobalPositionY", &strip_global_position_y, "StripGlobalPositionY/F");
81  striptree->Branch("StripGlobalPositionZ", &strip_global_position_z, "StripGlobalPositionZ/F");
82  striptree->Branch("IsHot", &isHot, "IsHot/I");
83  striptree->Branch("HotStripsPerAPV", &hotStripsPerAPV, "HotStripsPerAPV/I");
84  striptree->Branch("HotStripsPerModule", &hotStripsPerModule, "HotStripsPerModule/I");
85  striptree->Branch("StripOccupancy", &singleStripOccupancy, "StripOccupancy/D");
86  striptree->Branch("StripHits", &stripHits, "StripHits/I");
87  striptree->Branch("PoissonProb", &poissonProb, "PoissonProb/D");
88  striptree->Branch("MedianAPVHits", &medianAPVHits, "MedianAPVHits/D");
89  striptree->Branch("AvgAPVHits", &avgAPVHits, "AvgAPVHits/D");
90  }
91 
92  HistoMap::iterator it = DM.begin();
93  HistoMap::iterator itEnd = DM.end();
94  std::vector<unsigned int> badStripList;
95  uint32_t detid;
96  for (; it != itEnd; ++it) {
97  Apv APV;
98 
99  for (int apv = 0; apv < 6; apv++) {
100  APV.apvMedian[apv] = 0;
101  APV.apvabsoluteOccupancy[apv] = 0;
102  APV.NEntries[apv] = 0;
103  APV.NEmptyBins[apv] = 0;
104 
105  for (int strip = 0; strip < 128; strip++) {
106  stripOccupancy[apv][strip] = 0;
107  stripWeight[apv][strip] = 0;
108  }
109  }
110 
111  number_strips = (int)((it->second.get())->GetNbinsX());
112  number_apvs = number_strips / 128;
113  APV.numberApvs = number_apvs;
114 
115  for (int apv = 0; apv < number_apvs; apv++) {
116  APV.th1f[apv] = new TH1F("tmp", "tmp", 128, 0.5, 128.5);
117  int NumberEntriesPerAPV = 0;
118 
119  for (int strip = 0; strip < 128; strip++) {
120  stripOccupancy[apv][strip] =
121  (it->second.get())->GetBinContent((apv * 128) + strip + 1); // Remember: Bin=0 is underflow bin!
122  stripWeight[apv][strip] = 1;
123  APV.apvabsoluteOccupancy[apv] +=
124  (it->second.get())->GetBinContent((apv * 128) + strip + 1); // Remember: Bin=0 is underflow bin!
125  APV.th1f[apv]->SetBinContent(strip + 1, (it->second.get())->GetBinContent((apv * 128) + strip + 1));
126  NumberEntriesPerAPV += (int)(it->second.get())->GetBinContent((apv * 128) + strip + 1);
127  }
128 
129  APV.th1f[apv]->SetEntries(NumberEntriesPerAPV);
130  APV.NEntries[apv] = (int)APV.th1f[apv]->GetEntries();
131  }
132 
133  for (int apv = 0; apv < number_apvs; apv++) {
134  APV.apvMedian[apv] = TMath::Median(128, stripOccupancy[apv], stripWeight[apv]);
135  }
136 
137  detid = it->first;
138  DetId detectorId = DetId(detid);
139 
140  if (edm::isDebugEnabled())
141  LogTrace("SiStripBadAPV") << "Analyzing detid " << detid << std::endl;
142 
143  detrawid = detid;
144  APV.detrawId = detrawid;
145  subdetid = detectorId.subdetId();
146 
147  switch (detectorId.subdetId()) {
151  APV.modulePosition = module_number;
152 
153  if (layer_ring == 1)
154  medianValues_TIB_Layer1.push_back(APV);
155  else if (layer_ring == 2)
156  medianValues_TIB_Layer2.push_back(APV);
157  else if (layer_ring == 3)
158  medianValues_TIB_Layer3.push_back(APV);
159  else if (layer_ring == 4)
160  medianValues_TIB_Layer4.push_back(APV);
161  break;
162 
166  APV.modulePosition = layer_ring;
167 
169  iszminusside = 1;
170  else
171  iszminusside = 0;
172 
173  if (iszminusside == 0) {
174  if (disc == 1)
175  medianValues_TIDPlus_Disc1.push_back(APV);
176  else if (disc == 2)
177  medianValues_TIDPlus_Disc2.push_back(APV);
178  else if (disc == 3)
179  medianValues_TIDPlus_Disc3.push_back(APV);
180  } else if (iszminusside == 1) {
181  if (disc == 1)
182  medianValues_TIDMinus_Disc1.push_back(APV);
183  else if (disc == 2)
184  medianValues_TIDMinus_Disc2.push_back(APV);
185  else if (disc == 3)
186  medianValues_TIDMinus_Disc3.push_back(APV);
187  }
188  break;
189 
193  APV.modulePosition = module_number;
194 
195  if (layer_ring == 1)
196  medianValues_TOB_Layer1.push_back(APV);
197  else if (layer_ring == 2)
198  medianValues_TOB_Layer2.push_back(APV);
199  else if (layer_ring == 3)
200  medianValues_TOB_Layer3.push_back(APV);
201  else if (layer_ring == 4)
202  medianValues_TOB_Layer4.push_back(APV);
203  else if (layer_ring == 5)
204  medianValues_TOB_Layer5.push_back(APV);
205  else if (layer_ring == 6)
206  medianValues_TOB_Layer6.push_back(APV);
207  break;
208 
212  APV.modulePosition = layer_ring;
213 
215  iszminusside = 1;
216  else
217  iszminusside = 0;
218 
219  if (iszminusside == 0) {
220  if (disc == 1)
221  medianValues_TECPlus_Disc1.push_back(APV);
222  else if (disc == 2)
223  medianValues_TECPlus_Disc2.push_back(APV);
224  else if (disc == 3)
225  medianValues_TECPlus_Disc3.push_back(APV);
226  else if (disc == 4)
227  medianValues_TECPlus_Disc4.push_back(APV);
228  else if (disc == 5)
229  medianValues_TECPlus_Disc5.push_back(APV);
230  else if (disc == 6)
231  medianValues_TECPlus_Disc6.push_back(APV);
232  else if (disc == 7)
233  medianValues_TECPlus_Disc7.push_back(APV);
234  else if (disc == 8)
235  medianValues_TECPlus_Disc8.push_back(APV);
236  else if (disc == 9)
237  medianValues_TECPlus_Disc9.push_back(APV);
238  } else if (iszminusside == 1) {
239  if (disc == 1)
240  medianValues_TECMinus_Disc1.push_back(APV);
241  else if (disc == 2)
242  medianValues_TECMinus_Disc2.push_back(APV);
243  else if (disc == 3)
244  medianValues_TECMinus_Disc3.push_back(APV);
245  else if (disc == 4)
246  medianValues_TECMinus_Disc4.push_back(APV);
247  else if (disc == 5)
248  medianValues_TECMinus_Disc5.push_back(APV);
249  else if (disc == 6)
250  medianValues_TECMinus_Disc6.push_back(APV);
251  else if (disc == 7)
252  medianValues_TECMinus_Disc7.push_back(APV);
253  else if (disc == 8)
254  medianValues_TECMinus_Disc8.push_back(APV);
255  else if (disc == 9)
256  medianValues_TECMinus_Disc9.push_back(APV);
257  }
258  break;
259 
260  default:
261  std::cout << "### Detector does not belong to TIB, TID, TOB or TEC !? ###" << std::endl;
262  std::cout << "### DetRawId: " << detrawid << " ###" << std::endl;
263  }
264 
265  } // end loop on modules
266 
267  // Calculate Mean and RMS for each Layer
272 
279 
286 
296 
306 
307  pQuality = siStripQuality;
308  badStripList.clear();
309 
310  // Initialize the DQM output histograms
312 
313  // Analyze the Occupancy for both APVs and Strips
314  AnalyzeOccupancy(siStripQuality, medianValues_TIB_Layer1, MeanAndRms_TIB_Layer1, badStripList, inSiStripQuality);
315  AnalyzeOccupancy(siStripQuality, medianValues_TIB_Layer2, MeanAndRms_TIB_Layer2, badStripList, inSiStripQuality);
316  AnalyzeOccupancy(siStripQuality, medianValues_TIB_Layer3, MeanAndRms_TIB_Layer3, badStripList, inSiStripQuality);
317  AnalyzeOccupancy(siStripQuality, medianValues_TIB_Layer4, MeanAndRms_TIB_Layer4, badStripList, inSiStripQuality);
318 
319  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer1, MeanAndRms_TOB_Layer1, badStripList, inSiStripQuality);
320  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer2, MeanAndRms_TOB_Layer2, badStripList, inSiStripQuality);
321  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer3, MeanAndRms_TOB_Layer3, badStripList, inSiStripQuality);
322  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer4, MeanAndRms_TOB_Layer4, badStripList, inSiStripQuality);
323  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer5, MeanAndRms_TOB_Layer5, badStripList, inSiStripQuality);
324  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer6, MeanAndRms_TOB_Layer6, badStripList, inSiStripQuality);
325 
327  siStripQuality, medianValues_TIDPlus_Disc1, MeanAndRms_TIDPlus_Disc1, badStripList, inSiStripQuality);
329  siStripQuality, medianValues_TIDPlus_Disc2, MeanAndRms_TIDPlus_Disc2, badStripList, inSiStripQuality);
331  siStripQuality, medianValues_TIDPlus_Disc3, MeanAndRms_TIDPlus_Disc3, badStripList, inSiStripQuality);
333  siStripQuality, medianValues_TIDMinus_Disc1, MeanAndRms_TIDMinus_Disc1, badStripList, inSiStripQuality);
335  siStripQuality, medianValues_TIDMinus_Disc2, MeanAndRms_TIDMinus_Disc2, badStripList, inSiStripQuality);
337  siStripQuality, medianValues_TIDMinus_Disc3, MeanAndRms_TIDMinus_Disc3, badStripList, inSiStripQuality);
338 
340  siStripQuality, medianValues_TECPlus_Disc1, MeanAndRms_TECPlus_Disc1, badStripList, inSiStripQuality);
342  siStripQuality, medianValues_TECPlus_Disc2, MeanAndRms_TECPlus_Disc2, badStripList, inSiStripQuality);
344  siStripQuality, medianValues_TECPlus_Disc3, MeanAndRms_TECPlus_Disc3, badStripList, inSiStripQuality);
346  siStripQuality, medianValues_TECPlus_Disc4, MeanAndRms_TECPlus_Disc4, badStripList, inSiStripQuality);
348  siStripQuality, medianValues_TECPlus_Disc5, MeanAndRms_TECPlus_Disc5, badStripList, inSiStripQuality);
350  siStripQuality, medianValues_TECPlus_Disc6, MeanAndRms_TECPlus_Disc6, badStripList, inSiStripQuality);
352  siStripQuality, medianValues_TECPlus_Disc7, MeanAndRms_TECPlus_Disc7, badStripList, inSiStripQuality);
354  siStripQuality, medianValues_TECPlus_Disc8, MeanAndRms_TECPlus_Disc8, badStripList, inSiStripQuality);
356  siStripQuality, medianValues_TECPlus_Disc9, MeanAndRms_TECPlus_Disc9, badStripList, inSiStripQuality);
357 
359  siStripQuality, medianValues_TECMinus_Disc1, MeanAndRms_TECMinus_Disc1, badStripList, inSiStripQuality);
361  siStripQuality, medianValues_TECMinus_Disc2, MeanAndRms_TECMinus_Disc2, badStripList, inSiStripQuality);
363  siStripQuality, medianValues_TECMinus_Disc3, MeanAndRms_TECMinus_Disc3, badStripList, inSiStripQuality);
365  siStripQuality, medianValues_TECMinus_Disc4, MeanAndRms_TECMinus_Disc4, badStripList, inSiStripQuality);
367  siStripQuality, medianValues_TECMinus_Disc5, MeanAndRms_TECMinus_Disc5, badStripList, inSiStripQuality);
369  siStripQuality, medianValues_TECMinus_Disc6, MeanAndRms_TECMinus_Disc6, badStripList, inSiStripQuality);
371  siStripQuality, medianValues_TECMinus_Disc7, MeanAndRms_TECMinus_Disc7, badStripList, inSiStripQuality);
373  siStripQuality, medianValues_TECMinus_Disc8, MeanAndRms_TECMinus_Disc8, badStripList, inSiStripQuality);
375  siStripQuality, medianValues_TECMinus_Disc9, MeanAndRms_TECMinus_Disc9, badStripList, inSiStripQuality);
376 
377  siStripQuality->fillBadComponents();
378 
379  // Fill DQM histograms
380  for (unsigned int i = 0; i < subDetName.size(); i++) {
381  projYDistanceVsStripNumber[i]->Add((TH1F*)distanceVsStripNumber[i]->ProjectionY());
383  distanceVsStripNumber[i]->ProfileX(pfxDistanceVsStripNumber[i]->GetName(), 1, 998));
384  projYNHitsVsStripNumber[i]->Add(nHitsVsStripNumber[i]->ProjectionY());
387  projYOccupancyVsStripNumber[i]->Add(occupancyVsStripNumber[i]->ProjectionY());
391  occupancyVsStripNumber[i]->ProfileX(pfxOccupancyVsStripNumber[i]->GetName(), -8., 0.));
395  occupancyHotStripsVsStripNumber[i]->ProfileX(pfxOccupancyHotStripsVsStripNumber[i]->GetName(), -8., 0.));
400  poissonProbVsStripNumber[i]->ProfileX(pfxPoissonProbVsStripNumber[i]->GetName(), -18., 0.));
406  distanceVsStripNumber[i]->ProjectionX(projXDistanceVsStripNumber[i]->GetName(), 1, 998));
407  }
408 
409  // Save output files
410 
411  if (WriteOutputFile_ == true) {
412  f->cd();
413  apvtree->Write();
414  striptree->Write();
415  f->Close();
416  }
417 
418  if (WriteDQMHistograms_ == true) {
419  dqmStore->cd();
421  }
422 
423  LogTrace("SiStripBadAPV") << ss.str() << std::endl;
424 }
bool isDebugEnabled()
unsigned int tibLayer(const DetId &id) const
unsigned int tidRing(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
unsigned int tidWheel(const DetId &id) const
void CalculateMeanAndRMS(const std::vector< Apv > &, std::pair< double, double > *, int)
bool tecIsZMinusSide(const DetId &id) const
bool tidIsZMinusSide(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:41
void fillBadComponents()
#define LogTrace(id)
unsigned int tibModule(const DetId &id) const
Definition: DetId.h:18
void cd()
go to top directory (ie. root)
Definition: DQMStore.cc:546
void AnalyzeOccupancy(SiStripQuality *, std::vector< Apv > &, std::pair< double, double > *, std::vector< unsigned int > &, edm::ESHandle< SiStripQuality > &)
void save(std::string const &filename, std::string const &path="", std::string const &pattern="", std::string const &rewrite="", uint32_t run=0, uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, std::string const &fileupdate="RECREATE")
Definition: DQMStore.cc:2465
unsigned int tobModule(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::fillStripDQMHistograms ( )
private

Definition at line 1183 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References isHot, nHitsGoodStripsVsStripNumber, nHitsHotStripsVsStripNumber, nHitsVsStripNumber, occupancyGoodStripsVsStripNumber, occupancyHotStripsVsStripNumber, occupancyVsStripNumber, poissonProb, poissonProbGoodStripsVsStripNumber, poissonProbHotStripsVsStripNumber, poissonProbVsStripNumber, singleStripOccupancy, strip_number, stripHits, subdetid, and vHotStripsInModule.

Referenced by AnalyzeOccupancy().

1183  {
1184  double logStripOccupancy = -1;
1185  double logPoissonProb = -1;
1186 
1187  if (singleStripOccupancy > 0)
1188  logStripOccupancy = log10(singleStripOccupancy);
1189  if (poissonProb > 0)
1190  logPoissonProb = log10(fabs(poissonProb));
1191 
1192  occupancyVsStripNumber[0]->Fill(strip_number, logStripOccupancy);
1193  occupancyVsStripNumber[subdetid - 2]->Fill(strip_number, logStripOccupancy);
1194  poissonProbVsStripNumber[0]->Fill(strip_number, logPoissonProb);
1195  poissonProbVsStripNumber[subdetid - 2]->Fill(strip_number, logPoissonProb);
1198 
1199  if (isHot) {
1200  vHotStripsInModule.push_back(strip_number);
1201  occupancyHotStripsVsStripNumber[0]->Fill(strip_number, logStripOccupancy);
1202  occupancyHotStripsVsStripNumber[subdetid - 2]->Fill(strip_number, logStripOccupancy);
1203  poissonProbHotStripsVsStripNumber[0]->Fill(strip_number, logPoissonProb);
1204  poissonProbHotStripsVsStripNumber[subdetid - 2]->Fill(strip_number, logPoissonProb);
1207  } else {
1208  occupancyGoodStripsVsStripNumber[0]->Fill(strip_number, logStripOccupancy);
1209  occupancyGoodStripsVsStripNumber[subdetid - 2]->Fill(strip_number, logStripOccupancy);
1210  poissonProbGoodStripsVsStripNumber[0]->Fill(strip_number, logPoissonProb);
1211  poissonProbGoodStripsVsStripNumber[subdetid - 2]->Fill(strip_number, logPoissonProb);
1214  }
1215 }
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms ( )
private

Definition at line 836 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References absoluteOccupancy, DQMStore::book1D(), DQMStore::book2D(), DQMStore::bookProfile(), distanceVsStripNumber, dqmStore, MonitorElement::getTH1F(), MonitorElement::getTH2F(), MonitorElement::getTProfile(), mps_fire::i, layerName, medianOccupancy, medianVsAbsoluteOccupancy, nHitsGoodStripsVsStripNumber, nHitsHotStripsVsStripNumber, nHitsVsStripNumber, nLayers, occupancyGoodStripsVsStripNumber, occupancyHotStripsVsStripNumber, occupancyVsStripNumber, Utilities::operator, oss, pfxDistanceVsStripNumber, pfxNHitsGoodStripsVsStripNumber, pfxNHitsHotStripsVsStripNumber, pfxNHitsVsStripNumber, pfxOccupancyGoodStripsVsStripNumber, pfxOccupancyHotStripsVsStripNumber, pfxOccupancyVsStripNumber, pfxPoissonProbGoodStripsVsStripNumber, pfxPoissonProbHotStripsVsStripNumber, pfxPoissonProbVsStripNumber, poissonProbGoodStripsVsStripNumber, poissonProbHotStripsVsStripNumber, poissonProbVsStripNumber, projXDistanceVsStripNumber, projXNHitsGoodStripsVsStripNumber, projXNHitsHotStripsVsStripNumber, projXNHitsVsStripNumber, projYDistanceVsStripNumber, projYNHitsGoodStripsVsStripNumber, projYNHitsHotStripsVsStripNumber, projYNHitsVsStripNumber, projYOccupancyGoodStripsVsStripNumber, projYOccupancyHotStripsVsStripNumber, projYOccupancyVsStripNumber, projYPoissonProbGoodStripsVsStripNumber, projYPoissonProbHotStripsVsStripNumber, projYPoissonProbVsStripNumber, DQMStore::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, subDetName, tmp, and tmp_prof.

Referenced by extractBadAPVSandStrips().

836  {
837  oss.str("");
838  oss << 1; //runNumber
839 
841  dqmStore->setCurrentFolder("ChannelStatusPlots");
842 
843  // Initialize histograms
844  subDetName.push_back("");
845  subDetName.push_back("TIB");
846  subDetName.push_back("TID");
847  subDetName.push_back("TOB");
848  subDetName.push_back("TEC");
849  nLayers.push_back(0);
850  nLayers.push_back(4);
851  nLayers.push_back(3);
852  nLayers.push_back(6);
853  nLayers.push_back(9);
854  layerName.push_back("");
855  layerName.push_back("Layer");
856  layerName.push_back("Disk");
857  layerName.push_back("Layer");
858  layerName.push_back("Disk");
859 
860  std::string histoName;
861  std::string histoTitle;
862 
863  for (unsigned int i = 0; i < subDetName.size(); i++) {
864  histoName = "distanceVsStripNumber" + subDetName[i];
865  histoTitle = "Distance between hot strips vs. strip number";
866  if (i != 0)
867  histoTitle += " in " + subDetName[i];
868  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 999, 0.5, 999.5);
869  distanceVsStripNumber.push_back(tmp->getTH2F());
870 
871  histoName = "pfxDistanceVsStripNumber" + subDetName[i];
872  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
873  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
875  pfxDistanceVsStripNumber[i]->GetXaxis()->SetTitle("Strip");
876  pfxDistanceVsStripNumber[i]->GetYaxis()->SetTitle("Distance");
877 
878  histoName = "projXDistanceVsStripNumber" + subDetName[i];
879  histoTitle = "Number of hot strips vs. strip number";
880  if (i != 0)
881  histoTitle += " in " + subDetName[i];
882  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
883  projXDistanceVsStripNumber.push_back(tmp->getTH1F());
884  projXDistanceVsStripNumber[i]->GetXaxis()->SetTitle("Strip");
885  projXDistanceVsStripNumber[i]->GetYaxis()->SetTitle("N_{hot}");
886 
887  histoName = "projYDistanceVsStripNumber" + subDetName[i];
888  histoTitle = "Distribution of distance between hot strips";
889  if (i != 0)
890  histoTitle += " in " + subDetName[i];
891  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 999, 0.5, 999.5);
892  projYDistanceVsStripNumber.push_back(tmp->getTH1F());
893  projYDistanceVsStripNumber[i]->GetXaxis()->SetTitle("Distance");
894  projYDistanceVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
895 
896  //
897  histoName = "occupancyVsStripNumber" + subDetName[i];
898  histoTitle = "Occupancy of strips vs. strip number";
899  if (i != 0)
900  histoTitle += " in " + subDetName[i];
901  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 1000, -8., 0.);
902  occupancyVsStripNumber.push_back(tmp->getTH2F());
903 
904  histoName = "pfxOccupancyVsStripNumber" + subDetName[i];
905  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
906  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
908  pfxOccupancyVsStripNumber[i]->GetXaxis()->SetTitle("Strip");
909  pfxOccupancyVsStripNumber[i]->GetYaxis()->SetTitle("log_{10}(Occupancy)");
910 
911  histoName = "projYOccupancyVsStripNumber" + subDetName[i];
912  histoTitle = "Distribution of strip occupancy";
913  if (i != 0)
914  histoTitle += " in " + subDetName[i];
915  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 1000, -8., 0.);
917  projYOccupancyVsStripNumber[i]->GetXaxis()->SetTitle("log_{10}(Occupancy)");
918  projYOccupancyVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
919 
920  //
921  histoName = "occupancyHotStripsVsStripNumber" + subDetName[i];
922  histoTitle = "Occupancy of hot strips vs. strip number";
923  if (i != 0)
924  histoTitle += " in " + subDetName[i];
925  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 1000, -8., 0.);
927 
928  histoName = "pfxOccupancyHotStripsVsStripNumber" + subDetName[i];
929  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
930  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
932  pfxOccupancyHotStripsVsStripNumber[i]->GetXaxis()->SetTitle("Strip");
933  pfxOccupancyHotStripsVsStripNumber[i]->GetYaxis()->SetTitle("log_{10}(Occupancy)");
934 
935  histoName = "projYOccupancyHotStripsVsStripNumber" + subDetName[i];
936  histoTitle = "Distribution of hot strip occupancy";
937  if (i != 0)
938  histoTitle += " in " + subDetName[i];
939  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 1000, -8., 0.);
941  projYOccupancyHotStripsVsStripNumber[i]->GetXaxis()->SetTitle("log_{10}(Occupancy)");
942  projYOccupancyHotStripsVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
943 
944  //
945  histoName = "occupancyGoodStripsVsStripNumber" + subDetName[i];
946  histoTitle = "Occupancy of good strips vs. strip number";
947  if (i != 0)
948  histoTitle += " in " + subDetName[i];
949  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 1000, -8., 0.);
951 
952  histoName = "pfxOccupancyGoodStripsVsStripNumber" + subDetName[i];
953  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
954  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
956  pfxOccupancyGoodStripsVsStripNumber[i]->GetXaxis()->SetTitle("Strip");
957  pfxOccupancyGoodStripsVsStripNumber[i]->GetYaxis()->SetTitle("log_{10}(Occupancy)");
958 
959  histoName = "projYOccupancyGoodStripsVsStripNumber" + subDetName[i];
960  histoTitle = "Distribution of good strip occupancy";
961  if (i != 0)
962  histoTitle += " in " + subDetName[i];
963  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 1000, -8., 0.);
965  projYOccupancyGoodStripsVsStripNumber[i]->GetXaxis()->SetTitle("log_{10}(Occupancy)");
966  projYOccupancyGoodStripsVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
967 
968  //
969  histoName = "poissonProbVsStripNumber" + subDetName[i];
970  histoTitle = "Poisson probability of strips vs. strip number";
971  if (i != 0)
972  histoTitle += " in " + subDetName[i];
973  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 1000, -18., 0.);
974  poissonProbVsStripNumber.push_back(tmp->getTH2F());
975 
976  histoName = "pfxPoissonProbVsStripNumber" + subDetName[i];
977  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
978  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
980  pfxPoissonProbVsStripNumber[i]->GetXaxis()->SetTitle("Strip");
981  pfxPoissonProbVsStripNumber[i]->GetYaxis()->SetTitle("log_{10}(Probability)");
982 
983  histoName = "projYPoissonProbVsStripNumber" + subDetName[i];
984  histoTitle = "Distribution of strip Poisson probability";
985  if (i != 0)
986  histoTitle += " in " + subDetName[i];
987  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 1000, -18., 0.);
989  projYPoissonProbVsStripNumber[i]->GetXaxis()->SetTitle("log_{10}(Probability)");
990  projYPoissonProbVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
991 
992  //
993  histoName = "poissonProbHotStripsVsStripNumber" + subDetName[i];
994  histoTitle = "Poisson probability of hot strips vs. strip number";
995  if (i != 0)
996  histoTitle += " in " + subDetName[i];
997  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 1000, -18., 0.);
999 
1000  histoName = "pfxPoissonProbHotStripsVsStripNumber" + subDetName[i];
1001  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
1002  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
1004  pfxPoissonProbHotStripsVsStripNumber[i]->GetXaxis()->SetTitle("Strip");
1005  pfxPoissonProbHotStripsVsStripNumber[i]->GetYaxis()->SetTitle("log_{10}(Probability)");
1006 
1007  histoName = "projYPoissonProbHotStripsVsStripNumber" + subDetName[i];
1008  histoTitle = "Distribution of hot strip Poisson probability";
1009  if (i != 0)
1010  histoTitle += " in " + subDetName[i];
1011  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 1000, -18., 0.);
1013  projYPoissonProbHotStripsVsStripNumber[i]->GetXaxis()->SetTitle("log_{10}(Probability)");
1014  projYPoissonProbHotStripsVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
1015 
1016  //
1017  histoName = "poissonProbGoodStripsVsStripNumber" + subDetName[i];
1018  histoTitle = "Poisson probability of good strips vs. strip number";
1019  if (i != 0)
1020  histoTitle += " in " + subDetName[i];
1021  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 1000, -18., 0.);
1023 
1024  histoName = "pfxPoissonProbGoodStripsVsStripNumber" + subDetName[i];
1025  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
1026  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
1028  pfxPoissonProbGoodStripsVsStripNumber[i]->GetXaxis()->SetTitle("Strip");
1029  pfxPoissonProbGoodStripsVsStripNumber[i]->GetYaxis()->SetTitle("log_{10}(Probability)");
1030 
1031  histoName = "projYPoissonProbGoodStripsVsStripNumber" + subDetName[i];
1032  histoTitle = "Distribution of good strip Poisson probability";
1033  if (i != 0)
1034  histoTitle += " in " + subDetName[i];
1035  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 1000, -18., 0.);
1037  projYPoissonProbGoodStripsVsStripNumber[i]->GetXaxis()->SetTitle("log_{10}(Probability)");
1038  projYPoissonProbGoodStripsVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
1039 
1040  //
1041  histoName = "nHitsVsStripNumber" + subDetName[i];
1042  histoTitle = "NHits in strips vs. strip number";
1043  if (i != 0)
1044  histoTitle += " in " + subDetName[i];
1045  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 10000, -0.5, 9999.5);
1046  nHitsVsStripNumber.push_back(tmp->getTH2F());
1047 
1048  histoName = "pfxNHitsVsStripNumber" + subDetName[i];
1049  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
1050  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
1051  pfxNHitsVsStripNumber.push_back(tmp->getTProfile());
1052 
1053  histoName = "projXNHitsVsStripNumber" + subDetName[i];
1054  histoTitle = "Cumulative nHits in strips vs. strip number";
1055  if (i != 0)
1056  histoTitle += " in " + subDetName[i];
1057  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
1058  projXNHitsVsStripNumber.push_back(tmp->getTH1F());
1059 
1060  histoName = "projYNHitsVsStripNumber" + subDetName[i];
1061  histoTitle = "Distribution of nHits for all strips";
1062  if (i != 0)
1063  histoTitle += " in " + subDetName[i];
1064  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 10000, -0.5, 9999.5);
1065  projYNHitsVsStripNumber.push_back(tmp->getTH1F());
1066  projYNHitsVsStripNumber[i]->GetXaxis()->SetTitle("N_{hits}");
1067  projYNHitsVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
1068 
1069  //
1070  histoName = "nHitsHotStripsVsStripNumber" + subDetName[i];
1071  histoTitle = "NHits in hot strips vs. strip number";
1072  if (i != 0)
1073  histoTitle += " in " + subDetName[i];
1074  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 10000, -0.5, 9999.5);
1075  nHitsHotStripsVsStripNumber.push_back(tmp->getTH2F());
1076 
1077  histoName = "pfxNHitsHotStripsVsStripNumber" + subDetName[i];
1078  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
1079  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
1081 
1082  histoName = "projXNHitsHotStripsVsStripNumber" + subDetName[i];
1083  histoTitle = "Cumulative nHits in hot strips vs. strip number";
1084  if (i != 0)
1085  histoTitle += " in " + subDetName[i];
1086  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
1088 
1089  histoName = "projYNHitsHotStripsVsStripNumber" + subDetName[i];
1090  histoTitle = "Distribution of nHits for hot strips";
1091  if (i != 0)
1092  histoTitle += " in " + subDetName[i];
1093  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 10000, -0.5, 9999.5);
1095  projYNHitsHotStripsVsStripNumber[i]->GetXaxis()->SetTitle("N_{hits}");
1096  projYNHitsHotStripsVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
1097 
1098  //
1099  histoName = "nHitsGoodStripsVsStripNumber" + subDetName[i];
1100  histoTitle = "NHits in good strips vs. strip number";
1101  if (i != 0)
1102  histoTitle += " in " + subDetName[i];
1103  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5, 10000, -0.5, 9999.5);
1105 
1106  histoName = "pfxNHitsGoodStripsVsStripNumber" + subDetName[i];
1107  tmp_prof = new TProfile(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
1108  tmp = dqmStore->bookProfile(histoName.c_str(), tmp_prof);
1110 
1111  histoName = "projXNHitsGoodStripsVsStripNumber" + subDetName[i];
1112  histoTitle = "Cumulative nHits in good strips vs. strip number";
1113  if (i != 0)
1114  histoTitle += " in " + subDetName[i];
1115  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 768, 0.5, 768.5);
1117 
1118  histoName = "projYNHitsGoodStripsVsStripNumber" + subDetName[i];
1119  histoTitle = "Distribution of nHits for good strips";
1120  if (i != 0)
1121  histoTitle += " in " + subDetName[i];
1122  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 10000, -0.5, 9999.5);
1124  projYNHitsGoodStripsVsStripNumber[i]->GetXaxis()->SetTitle("N_{hits}");
1125  projYNHitsGoodStripsVsStripNumber[i]->GetYaxis()->SetTitle("N_{strips}");
1126 
1127  for (unsigned int j = 0; j <= nLayers[i]; j++) {
1128  histoName = "medianVsAbsoluteOccupancy" + subDetName[i];
1129  if (j != 0) {
1130  oss.str("");
1131  oss << j;
1132  histoName += layerName[i] + oss.str();
1133  }
1134  histoTitle = "Median APV occupancy vs. absolute APV occupancy";
1135  if (i != 0)
1136  histoTitle += " in " + subDetName[i];
1137  if (j != 0) {
1138  histoTitle += " " + layerName[i] + " " + oss.str();
1139  }
1140  tmp = dqmStore->book2D(histoName.c_str(), histoTitle.c_str(), 1000, 0., 6., 1000, -1., 3.);
1142  medianVsAbsoluteOccupancy[i][j]->Rebin2D(10, 10);
1143  medianVsAbsoluteOccupancy[i][j]->GetXaxis()->SetTitle("log_{10}(Abs. Occupancy)");
1144  medianVsAbsoluteOccupancy[i][j]->GetYaxis()->SetTitle("log_{10}(Median Occupancy)");
1145  //
1146  histoName = "medianOccupancy" + subDetName[i];
1147  if (j != 0) {
1148  oss.str("");
1149  oss << j;
1150  histoName += layerName[i] + oss.str();
1151  }
1152  histoTitle = "Median APV occupancy";
1153  if (i != 0)
1154  histoTitle += " in " + subDetName[i];
1155  if (j != 0) {
1156  histoTitle += " " + layerName[i] + " " + oss.str();
1157  }
1158  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 1000, -1., 3.);
1159  medianOccupancy[i][j] = tmp->getTH1F();
1160  medianOccupancy[i][j]->GetXaxis()->SetTitle("log_{10}(Occupancy)");
1161  medianOccupancy[i][j]->GetYaxis()->SetTitle("APVs");
1162  //
1163  histoName = "absoluteOccupancy" + subDetName[i];
1164  if (j != 0) {
1165  oss.str("");
1166  oss << j;
1167  histoName += layerName[i] + oss.str();
1168  }
1169  histoTitle = "Absolute APV occupancy";
1170  if (i != 0)
1171  histoTitle += " in " + subDetName[i];
1172  if (j != 0) {
1173  histoTitle += " " + layerName[i] + " " + oss.str();
1174  }
1175  tmp = dqmStore->book1D(histoName.c_str(), histoTitle.c_str(), 1000, 0., 6.);
1176  absoluteOccupancy[i][j] = tmp->getTH1F();
1177  absoluteOccupancy[i][j]->GetXaxis()->SetTitle("log_{10}(Occupancy)");
1178  absoluteOccupancy[i][j]->GetYaxis()->SetTitle("APVs");
1179  }
1180  }
1181 }
MonitorElement * book2D(char_string const &name, char_string const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:1173
TProfile * getTProfile() const
TH1F * getTH1F() const
MonitorElement * book1D(char_string const &name, char_string const &title, int const nchX, double const lowX, double const highX)
Book 1D histogram.
Definition: DQMStore.cc:1098
TH2F * getTH2F() const
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:571
MonitorElement * bookProfile(char_string const &name, char_string const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, char const *option="s")
Definition: DQMStore.cc:1285
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::iterativeSearch ( Apv histo,
std::vector< unsigned int > &  vect,
int  apv 
)
private

Definition at line 676 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References avgapvhits, diffTreeTool::diff, SiStripBadStrip::encode(), evaluatePoissonian(), hotstripsperapv, hotstripspermodule, mps_fire::i, createfilelist::int, edm::isDebugEnabled(), ishot, LogTrace, pfDeepBoostedJetPreprocessParams_cfi::median, medianapvhits, minNevents_, MinNumEntries_, MinNumEntriesPerStrip_, writelibraryfile_cfg::Nbins, SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::NEmptyBins, SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::NEntries, Nevents_, poissonprob, pQuality, prob_, ratio_, striphits, stripoccupancy, and SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Apv::th1f.

Referenced by AnalyzeOccupancy().

678  {
679  if (!histo.NEntries[apv] || histo.NEntries[apv] <= MinNumEntries_ || histo.NEntries[apv] <= minNevents_)
680  return;
681 
682  size_t startingSize = vect.size();
683  long double diff = 1. - prob_;
684 
685  size_t Nbins = histo.th1f[apv]->GetNbinsX();
686  size_t ibinStart = 1;
687  size_t ibinStop = Nbins + 1;
688  int MaxEntry = (int)histo.th1f[apv]->GetMaximum();
689 
690  std::vector<long double> vPoissonProbs(MaxEntry + 1, 0);
691  long double meanVal = 1. * histo.NEntries[apv] / (1. * Nbins - histo.NEmptyBins[apv]);
692  evaluatePoissonian(vPoissonProbs, meanVal);
693 
694  // Find median occupancy, taking into account only good strips
695  unsigned int goodstripentries[128];
696  int nGoodStrips = 0;
697  for (size_t i = ibinStart; i < ibinStop; ++i) {
698  if (ishot[(apv * 128) + i - 1] == 0) {
699  goodstripentries[nGoodStrips] = (unsigned int)histo.th1f[apv]->GetBinContent(i);
700  nGoodStrips++;
701  }
702  }
703  double median = TMath::Median(nGoodStrips, goodstripentries);
704 
705  for (size_t i = ibinStart; i < ibinStop; ++i) {
706  unsigned int entries = (unsigned int)histo.th1f[apv]->GetBinContent(i);
707 
708  if (ishot[i - 1] == 0) {
709  stripoccupancy[i - 1] = entries / (double)Nevents_;
710  striphits[i - 1] = entries;
711  poissonprob[i - 1] = 1 - vPoissonProbs[entries];
712  medianapvhits[apv] = median;
713  avgapvhits[apv] = meanVal;
714  }
715 
716  if (entries <= MinNumEntriesPerStrip_ || entries <= minNevents_ || entries / median < ratio_)
717  continue;
718 
719  if (diff < vPoissonProbs[entries]) {
720  ishot[i - 1] = 1;
722  hotstripsperapv[apv]++;
723  histo.th1f[apv]->SetBinContent(i, 0.);
724  histo.NEntries[apv] -= entries;
725  histo.NEmptyBins[apv]++;
726  if (edm::isDebugEnabled())
727  LogTrace("SiStripHotStrip") << " rejecting strip " << (apv * 128) + i - 1 << " value " << entries << " diff "
728  << diff << " prob " << vPoissonProbs[entries] << std::endl;
729  vect.push_back(pQuality->encode((apv * 128) + i - 1, 1, 0));
730  }
731  }
732  if (edm::isDebugEnabled())
733  LogTrace("SiStripHotStrip") << " [SiStripHotStripAlgorithmFromClusterOccupancy::iterativeSearch] Nbins=" << Nbins
734  << " MaxEntry=" << MaxEntry << " meanVal=" << meanVal
735  << " NEmptyBins=" << histo.NEmptyBins[apv] << " NEntries=" << histo.NEntries[apv]
736  << " thEntries " << histo.th1f[apv]->GetEntries() << " startingSize " << startingSize
737  << " vector.size " << vect.size() << std::endl;
738 
739  if (vect.size() != startingSize)
740  iterativeSearch(histo, vect, apv);
741 }
bool isDebugEnabled()
#define LogTrace(id)
unsigned int encode(const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0)
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setAbsoluteLowThreshold ( long double  absolute_low)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setAbsoluteOccupancyThreshold ( long double  absolute_occupancy)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters ( int  detid)
private

Definition at line 750 of file SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.cc.

References gather_cfg::cout, detrawid, disc, isback, isexternalstring, isstereo, iszminusside, layer_ring, module_number, rodstringpetal, DetId::subdetId(), subdetid, StripSubdetector::TEC, TrackerTopology::tecIsBackPetal(), TrackerTopology::tecIsStereo(), TrackerTopology::tecIsZMinusSide(), TrackerTopology::tecModule(), TrackerTopology::tecPetalNumber(), TrackerTopology::tecRing(), TrackerTopology::tecWheel(), StripSubdetector::TIB, TrackerTopology::tibIsExternalString(), TrackerTopology::tibIsStereo(), TrackerTopology::tibIsZMinusSide(), TrackerTopology::tibLayer(), TrackerTopology::tibModule(), TrackerTopology::tibString(), StripSubdetector::TID, TrackerTopology::tidIsBackRing(), TrackerTopology::tidIsStereo(), TrackerTopology::tidIsZMinusSide(), TrackerTopology::tidModule(), TrackerTopology::tidRing(), TrackerTopology::tidWheel(), StripSubdetector::TOB, TrackerTopology::tobIsStereo(), TrackerTopology::tobIsZMinusSide(), TrackerTopology::tobLayer(), TrackerTopology::tobModule(), TrackerTopology::tobRod(), and tTopo.

Referenced by AnalyzeOccupancy().

750  {
751  DetId DetectorID = DetId(detid);
752 
753  detrawid = detid;
754  subdetid = DetectorID.subdetId();
755 
756  switch (DetectorID.subdetId()) {
758  layer_ring = tTopo->tibLayer(detid);
759  disc = -1;
760  isstereo = tTopo->tibIsStereo(detid);
761  isback = -1;
762  if (tTopo->tibIsExternalString(detid))
763  isexternalstring = 1;
764  else
765  isexternalstring = 0;
766  if (tTopo->tibIsZMinusSide(detid))
767  iszminusside = 1;
768  else
769  iszminusside = 0;
770  rodstringpetal = tTopo->tibString(detid);
771  module_number = tTopo->tibModule(detid);
772 
773  break;
774 
776  layer_ring = tTopo->tidRing(detid);
777  disc = tTopo->tidWheel(detid);
778  isstereo = tTopo->tidIsStereo(detid);
779  if (tTopo->tidIsBackRing(detid))
780  isback = 1;
781  else
782  isback = 0;
783  if (tTopo->tidIsZMinusSide(detid))
784  iszminusside = 1;
785  else
786  iszminusside = 0;
787  isexternalstring = -1;
788  rodstringpetal = -1;
789  module_number = tTopo->tidModule(detid);
790 
791  break;
792 
794  layer_ring = tTopo->tobLayer(detid);
795  disc = -1;
796  isstereo = tTopo->tobIsStereo(detid);
797  isback = -1;
798  if (tTopo->tobIsZMinusSide(detid))
799  iszminusside = 1;
800  else
801  iszminusside = 0;
802  isexternalstring = -1;
803  rodstringpetal = tTopo->tobRod(detid);
804  module_number = tTopo->tobModule(detid);
805 
806  break;
807 
809  layer_ring = tTopo->tecRing(detid);
810  disc = tTopo->tecWheel(detid);
811  isstereo = tTopo->tecIsStereo(detid);
812  if (tTopo->tecIsBackPetal(detid))
813  isback = 1;
814  else
815  isback = 0;
816  if (tTopo->tecIsZMinusSide(detid))
817  iszminusside = 1;
818  else
819  iszminusside = 0;
820  isexternalstring = -1;
822  module_number = tTopo->tecModule(detid);
823 
824  break;
825 
826  default:
827  std::cout << "### Detector does not belong to TIB, TID, TOB or TEC !? ###" << std::endl;
828  std::cout << "### DetRawId: " << detid << " ###" << std::endl;
829  }
830 }
unsigned int tibLayer(const DetId &id) const
unsigned int tibString(const DetId &id) const
unsigned int tidRing(const DetId &id) const
bool tobIsStereo(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
unsigned int tidWheel(const DetId &id) const
bool tecIsZMinusSide(const DetId &id) const
bool tidIsStereo(const DetId &id) const
bool tidIsZMinusSide(const DetId &id) const
bool tecIsStereo(const DetId &id) const
bool tibIsExternalString(const DetId &id) const
bool tibIsZMinusSide(const DetId &id) const
unsigned int tidModule(const DetId &id) const
bool tidIsBackRing(const DetId &id) const
bool tobIsZMinusSide(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:41
unsigned int tibModule(const DetId &id) const
unsigned int tecModule(const DetId &id) const
bool tecIsBackPetal(const DetId &id) const
Definition: DetId.h:18
bool tibIsStereo(const DetId &id) const
unsigned int tobModule(const DetId &id) const
unsigned int tecPetalNumber(const DetId &id) const
unsigned int tobRod(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setHighOccupancyThreshold ( long double  high_occupancy)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setLowOccupancyThreshold ( long double  low_occupancy)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setMinNumEntries ( unsigned short  m)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setMinNumEntriesPerStrip ( unsigned short  m)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setMinNumOfEvents ( )
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setNumberIterations ( int  number_iterations)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setNumberOfEvents ( double  Nevents)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setOutputFileName ( std::string  OutputFileName,
bool  WriteOutputFile,
std::string  DQMOutfileName,
bool  WriteDQMHistograms 
)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setProbabilityThreshold ( long double  prob)
inline
void SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setTrackerGeometry ( const TrackerGeometry tkgeom)
inline

Member Data Documentation

long double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::absolute_occupancy_
private
long double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::absolutelow_
private
TH1F* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::absoluteOccupancy[5][10]
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::apv_channel
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::apv_number
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::apvAbsoluteOccupancy
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::apvMedianOccupancy
private
TTree* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::apvtree
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::avgAPVHits
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::avgapvhits[6]
private
uint32_t SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::detrawid
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::disc
private
unsigned int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::distance
private
unsigned int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::distanceL
private
unsigned int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::distanceR
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::distanceVsStripNumber
private
std::string SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::DQMOutfileName_
private
DQMStore* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::dqmStore
private
TFile* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::f
private
float SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::global_position_x
private
float SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::global_position_y
private
float SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::global_position_z
private
long double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::highoccupancy_
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::hotStripsPerAPV
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::hotstripsperapv[6]
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::hotStripsPerModule
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::hotstripspermodule
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::isback
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::isBad
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::isexternalstring
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::isHot
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::ishot[128]
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::isstereo
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::iszminusside
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::layer_ring
private
std::vector<std::string> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::layerName
private
long double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::lowoccupancy_
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc1[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc2[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc3[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc4[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc5[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc6[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc7[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc8[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc9[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc1[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc2[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc3[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc4[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc5[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc6[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc7[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc8[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc9[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIB_Layer1[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIB_Layer2[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIB_Layer3[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIB_Layer4[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIDMinus_Disc1[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIDMinus_Disc2[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIDMinus_Disc3[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIDPlus_Disc1[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIDPlus_Disc2[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TIDPlus_Disc3[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer1[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer2[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer3[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer4[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer5[7]
private
std::pair<double, double> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer6[7]
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianAPVHits
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianapvhits[6]
private
TH1F* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianOccupancy[5][10]
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc1
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc2
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc3
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc4
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc5
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc6
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc7
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc8
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc9
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc1
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc2
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc3
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc4
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc5
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc6
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc7
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc8
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc9
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIB_Layer1
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIB_Layer2
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIB_Layer3
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIB_Layer4
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIDMinus_Disc1
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIDMinus_Disc2
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIDMinus_Disc3
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIDPlus_Disc1
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIDPlus_Disc2
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TIDPlus_Disc3
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TOB_Layer1
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TOB_Layer2
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TOB_Layer3
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TOB_Layer4
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TOB_Layer5
private
std::vector<Apv> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianValues_TOB_Layer6
private
TH2F* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::medianVsAbsoluteOccupancy[5][10]
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::minNevents_
private
unsigned short SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MinNumEntries_
private
unsigned short SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::MinNumEntriesPerStrip_
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::module_number
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::Nevents_
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::nHitsGoodStripsVsStripNumber
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::nHitsHotStripsVsStripNumber
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::nHitsVsStripNumber
private
std::vector<unsigned int> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::nLayers
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::number_apvs
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::number_strips
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::numberiterations_
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::occupancyGoodStripsVsStripNumber
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::occupancyHotStripsVsStripNumber
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::occupancyVsStripNumber
private
std::ostringstream SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::oss
private
std::string SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::outfilename
private
std::string SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::OutFileName_
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxDistanceVsStripNumber
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxNHitsGoodStripsVsStripNumber
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxNHitsHotStripsVsStripNumber
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxNHitsVsStripNumber
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxOccupancyGoodStripsVsStripNumber
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxOccupancyHotStripsVsStripNumber
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxOccupancyVsStripNumber
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxPoissonProbGoodStripsVsStripNumber
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxPoissonProbHotStripsVsStripNumber
private
std::vector<TProfile*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pfxPoissonProbVsStripNumber
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::poissonProb
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::poissonprob[128]
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::poissonProbGoodStripsVsStripNumber
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::poissonProbHotStripsVsStripNumber
private
std::vector<TH2F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::poissonProbVsStripNumber
private
SiStripQuality* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::pQuality
private
long double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::prob_
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projXDistanceVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projXNHitsGoodStripsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projXNHitsHotStripsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projXNHitsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYDistanceVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYNHitsGoodStripsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYNHitsHotStripsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYNHitsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYOccupancyGoodStripsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYOccupancyHotStripsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYOccupancyVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYPoissonProbGoodStripsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYPoissonProbHotStripsVsStripNumber
private
std::vector<TH1F*> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::projYPoissonProbVsStripNumber
private
long double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::ratio_
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::rodstringpetal
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::singleStripOccupancy
private
std::stringstream SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::ss
private
float SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::strip_global_position_x
private
float SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::strip_global_position_y
private
float SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::strip_global_position_z
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::strip_number
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::stripHits
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::striphits[128]
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::stripOccupancy[6][128]
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::stripoccupancy[128]
private
TTree* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::striptree
private
double SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::stripWeight[6][128]
private
int SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::subdetid
private
std::vector<std::string> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::subDetName
private
const TrackerGeometry* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::TkGeom
private
MonitorElement* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::tmp
private
TProfile* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::tmp_prof
private
const TrackerTopology* SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::tTopo
private
bool SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::UseInputDB_
private
std::vector<unsigned int> SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::vHotStripsInModule
private
bool SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::WriteDQMHistograms_
private
bool SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::WriteOutputFile_
private