CMS 3D CMS Logo

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

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

Classes

struct  Apv
 
struct  pHisto
 

Public Types

typedef SiStrip::QualityHistosMap HistoMap
 

Public Member Functions

void extractBadAPVs (SiStripQuality *, HistoMap &, edm::ESHandle< SiStripQuality > &)
 
void setAbsoluteLowThreshold (long double absolute_low)
 
void setAbsoluteOccupancyThreshold (long double occupancy)
 
void setHighOccupancyThreshold (long double high_occupancy)
 
void setLowOccupancyThreshold (long double low_occupancy)
 
void setMinNumOfEvents ()
 
void setNumberIterations (int number_iterations)
 
void setNumberOfEvents (double Nevents)
 
void setOutputFileName (std::string OutputFileName, bool WriteOutputFile)
 
void setTrackerGeometry (const TrackerGeometry *tkgeom)
 
 SiStripBadAPVAlgorithmFromClusterOccupancy (const edm::ParameterSet &, const TrackerTopology *)
 
virtual ~SiStripBadAPVAlgorithmFromClusterOccupancy ()
 

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)
 

Private Attributes

long double absolutelow_
 
int apv_number
 
double apvAbsoluteOccupancy
 
double apvMedianOccupancy
 
TTree * apvtree
 
uint32_t detrawid
 
int disc
 
TFile * f
 
float global_position_x
 
float global_position_y
 
float global_position_z
 
long double highoccupancy_
 
int isback
 
int isexternalstring
 
int isstereo
 
int iszminusside
 
int layer_ring
 
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]
 
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
 
double minNevents_
 
int module_number
 
double Nevents_
 
int number_apvs
 
int number_strips
 
int numberiterations_
 
long double occupancy_
 
std::string OutFileName_
 
SiStripQualitypQuality
 
int rodstringpetal
 
std::stringstream ss
 
double stripOccupancy [6][128]
 
double stripWeight [6][128]
 
int subdetid
 
const TrackerGeometryTkGeom
 
const TrackerTopologytTopo
 
bool UseInputDB_
 
bool WriteOutputFile_
 

Detailed Description

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

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

Definition at line 41 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Member Typedef Documentation

Definition at line 43 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Constructor & Destructor Documentation

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

Definition at line 10 of file SiStripBadAPVAlgorithmFromClusterOccupancy.cc.

References minNevents_, Nevents_, and occupancy_.

12  : lowoccupancy_(0),
13  highoccupancy_(100),
14  absolutelow_(0),
16  Nevents_(0),
17  occupancy_(0),
18  OutFileName_("Occupancy.root"),
19  UseInputDB_(iConfig.getUntrackedParameter<bool>("UseInputDB", false)),
20  tTopo(theTopo) {
22 }
T getUntrackedParameter(std::string const &, T const &) const
SiStripBadAPVAlgorithmFromClusterOccupancy::~SiStripBadAPVAlgorithmFromClusterOccupancy ( )
virtual

Definition at line 24 of file SiStripBadAPVAlgorithmFromClusterOccupancy.cc.

References LogTrace.

24  {
25  LogTrace("SiStripBadAPVAlgorithmFromClusterOccupancy")
26  << "[SiStripBadAPVAlgorithmFromClusterOccupancy::~SiStripBadAPVAlgorithmFromClusterOccupancy] " << std::endl;
27 }
#define LogTrace(id)

Member Function Documentation

void SiStripBadAPVAlgorithmFromClusterOccupancy::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 448 of file SiStripBadAPVAlgorithmFromClusterOccupancy.cc.

References absolutelow_, SiStripQuality::compact(), gather_cfg::cout, SiStripBadStrip::encode(), plotBeamSpotDB::first, highoccupancy_, SiStripQuality::IsApvBad(), lowoccupancy_, minNevents_, pQuality, SiStripBadStrip::put(), edm::second(), and UseInputDB_.

Referenced by extractBadAPVs().

452  {
453  int Moduleposition;
454  uint32_t Detid;
455 
456  for (uint32_t it = 0; it < medianValues.size(); it++) {
457  Moduleposition = (medianValues[it].modulePosition) - 1;
458  Detid = medianValues[it].detrawId;
459 
460  for (int apv = 0; apv < medianValues[it].numberApvs; apv++) {
461  if (UseInputDB_) {
462  if (InSiStripQuality->IsApvBad(Detid, apv)) {
463  continue; //if the apv is already flagged as bad, continue.
464  }
465  }
466  if (medianValues[it].apvMedian[apv] > minNevents_) {
467  if ((medianValues[it].apvMedian[apv] >
468  (MeanAndRms[Moduleposition].first + highoccupancy_ * MeanAndRms[Moduleposition].second)) &&
469  (medianValues[it].apvMedian[apv] > absolutelow_))
470  BadStripList.push_back(pQuality->encode((apv * 128), 128, 0));
471  } else if (medianValues[it].apvMedian[apv] <
472  (MeanAndRms[Moduleposition].first - lowoccupancy_ * MeanAndRms[Moduleposition].second) &&
473  (MeanAndRms[Moduleposition].first > 2 || medianValues[it].apvabsoluteOccupancy[apv] == 0)) {
474  BadStripList.push_back(pQuality->encode((apv * 128), 128, 0));
475  std::cout << "Dead APV! DetId: " << medianValues[it].detrawId << ", APV number: " << apv + 1
476  << ", APVMedian: " << medianValues[it].apvMedian[apv]
477  << ", Mean: " << MeanAndRms[Moduleposition].first << ", RMS: " << MeanAndRms[Moduleposition].second
478  << ", LowThreshold: " << lowoccupancy_ << ", Mean-Low*RMS: "
479  << (MeanAndRms[Moduleposition].first - lowoccupancy_ * MeanAndRms[Moduleposition].second)
480  << std::endl;
481  }
482  }
483  if (BadStripList.begin() != BadStripList.end()) {
484  quality->compact(Detid, BadStripList);
485  SiStripQuality::Range range(BadStripList.begin(), BadStripList.end());
486  quality->put(Detid, range);
487  }
488  BadStripList.clear();
489  }
490 }
bool IsApvBad(const uint32_t &detid, const short &apvNb) const
U second(std::pair< T, U > const &p)
void compact(unsigned int &, std::vector< unsigned int > &)
std::pair< ContainerIterator, ContainerIterator > Range
bool put(const uint32_t &detID, const InputVector &vect)
unsigned int encode(const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0)
void SiStripBadAPVAlgorithmFromClusterOccupancy::CalculateMeanAndRMS ( const std::vector< Apv > &  a,
std::pair< double, double > *  MeanRMS,
int  number_iterations 
)
private

Definition at line 401 of file SiStripBadAPVAlgorithmFromClusterOccupancy.cc.

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

Referenced by extractBadAPVs().

403  {
404  Double_t tot[7], tot2[7];
405  Double_t n[7];
406 
407  Double_t Mean[7] = {0};
408  Double_t Rms[7] = {1000, 1000, 1000, 1000, 1000, 1000, 1000};
409 
410  int Moduleposition;
411 
412  for (int i = 0; i < number_iterations; i++) {
413  for (int j = 0; j < 7; j++) {
414  n[j] = 0;
415  tot[j] = 0;
416  tot2[j] = 0;
417  }
418 
419  for (uint32_t it = 0; it < a.size(); it++) {
420  Moduleposition = (a[it].modulePosition) - 1;
421 
422  for (int apv = 0; apv < a[it].numberApvs; apv++) {
423  if (i > 0) {
424  if (a[it].apvMedian[apv] < (Mean[Moduleposition] - 3 * Rms[Moduleposition]) ||
425  (a[it].apvMedian[apv] > (Mean[Moduleposition] + 5 * Rms[Moduleposition]))) {
426  continue;
427  }
428  }
429  tot[Moduleposition] += a[it].apvMedian[apv];
430  tot2[Moduleposition] += (a[it].apvMedian[apv]) * (a[it].apvMedian[apv]);
431  n[Moduleposition]++;
432  }
433  }
434 
435  for (int j = 0; j < 7; j++) {
436  if (n[j] != 0) {
437  Mean[j] = tot[j] / n[j];
438  Rms[j] = TMath::Sqrt(TMath::Abs(tot2[j] / n[j] - Mean[j] * Mean[j]));
439  }
440  }
441  }
442 
443  for (int j = 0; j < 7; j++) {
444  MeanRMS[j] = std::make_pair(Mean[j], Rms[j]);
445  }
446 }
T Abs(T a)
Definition: MathUtil.h:49
double a
Definition: hdecay.h:121
void SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs ( SiStripQuality siStripQuality,
HistoMap DM,
edm::ESHandle< SiStripQuality > &  inSiStripQuality 
)

Definition at line 29 of file SiStripBadAPVAlgorithmFromClusterOccupancy.cc.

References SiStripBadAPVAlgorithmFromClusterOccupancy::pHisto::_NBins, SiStripBadAPVAlgorithmFromClusterOccupancy::pHisto::_NEntries, SiStripBadAPVAlgorithmFromClusterOccupancy::pHisto::_th1f, AnalyzeOccupancy(), sistrip::APV, apv_number, SiStripBadAPVAlgorithmFromClusterOccupancy::Apv::apvabsoluteOccupancy, apvAbsoluteOccupancy, SiStripBadAPVAlgorithmFromClusterOccupancy::Apv::apvMedian, apvMedianOccupancy, apvtree, CalculateMeanAndRMS(), SiStripQuality::clear(), gather_cfg::cout, SiStripBadAPVAlgorithmFromClusterOccupancy::Apv::detrawId, detrawid, disc, f, SiStripQuality::fillBadComponents(), global_position_x, global_position_y, global_position_z, TrackerGeometry::idToDet(), createfilelist::int, isback, edm::isDebugEnabled(), isexternalstring, isstereo, iszminusside, layer_ring, StripTopology::localPosition(), 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, 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, SiStripBadAPVAlgorithmFromClusterOccupancy::Apv::modulePosition, number_apvs, number_strips, SiStripBadAPVAlgorithmFromClusterOccupancy::Apv::numberApvs, numberiterations_, OutFileName_, pQuality, rodstringpetal, StripGeomDetUnit::specificTopology(), ss, digitizers_cfi::strip, stripOccupancy, stripWeight, 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(), TkGeom, StripSubdetector::TOB, TrackerTopology::tobIsStereo(), TrackerTopology::tobIsZMinusSide(), TrackerTopology::tobLayer(), TrackerTopology::tobModule(), TrackerTopology::tobRod(), tTopo, WriteOutputFile_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

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

31  {
32  LogTrace("SiStripBadAPVAlgorithmFromClusterOccupancy")
33  << "[SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs] " << std::endl;
34 
35  if (WriteOutputFile_ == true) {
36  f = new TFile(OutFileName_.c_str(), "RECREATE");
37  f->cd();
38 
39  apvtree = new TTree("moduleOccupancy", "tree");
40 
41  apvtree->Branch("DetRawId", &detrawid, "DetRawId/I");
42  apvtree->Branch("SubDetId", &subdetid, "SubDetId/I");
43  apvtree->Branch("Layer_Ring", &layer_ring, "Layer_Ring/I");
44  apvtree->Branch("Disc", &disc, "Disc/I");
45  apvtree->Branch("IsBack", &isback, "IsBack/I");
46  apvtree->Branch("IsExternalString", &isexternalstring, "IsExternalString/I");
47  apvtree->Branch("IsZMinusSide", &iszminusside, "IsZMinusSide/I");
48  apvtree->Branch("RodStringPetal", &rodstringpetal, "RodStringPetal/I");
49  apvtree->Branch("IsStereo", &isstereo, "IsStereo/I");
50  apvtree->Branch("ModuleNumber", &module_number, "ModuleNumber/I");
51  apvtree->Branch("NumberOfStrips", &number_strips, "NumberOfStrips/I");
52  apvtree->Branch("APVGlobalPositionX", &global_position_x, "APVGlobalPositionX/F");
53  apvtree->Branch("APVGlobalPositionY", &global_position_y, "APVGlobalPositionY/F");
54  apvtree->Branch("APVGlobalPositionZ", &global_position_z, "APVGlobalPositionZ/F");
55  apvtree->Branch("APVNumber", &apv_number, "APVNumber/I");
56  apvtree->Branch("APVAbsoluteOccupancy", &apvAbsoluteOccupancy, "apvAbsoluteOccupancy/D");
57  apvtree->Branch("APVMedianOccupancy", &apvMedianOccupancy, "apvMedianOccupancy/D");
58  }
59 
60  HistoMap::iterator it = DM.begin();
61  HistoMap::iterator itEnd = DM.end();
62  std::vector<unsigned int> badStripList;
63  uint32_t detid;
64  for (; it != itEnd; ++it) {
65  Apv APV;
66 
67  for (int apv = 0; apv < 6; apv++) {
68  APV.apvMedian[apv] = 0;
69  APV.apvabsoluteOccupancy[apv] = 0;
70 
71  for (int strip = 0; strip < 128; strip++) {
72  stripOccupancy[apv][strip] = 0;
73  stripWeight[apv][strip] = 0;
74  }
75  }
76 
77  pHisto phisto;
78  phisto._th1f = it->second.get();
79  phisto._NEntries = (int)phisto._th1f->GetEntries();
80  phisto._NBins = phisto._th1f->GetNbinsX();
81 
82  number_strips = (int)phisto._NBins;
83  number_apvs = number_strips / 128;
84  APV.numberApvs = number_apvs;
85 
86  for (int apv = 0; apv < number_apvs; apv++) {
87  for (int strip = 0; strip < 128; strip++) {
88  stripOccupancy[apv][strip] =
89  phisto._th1f->GetBinContent((apv * 128) + strip + 1); // Remember: Bin=0 is underflow bin!
90  stripWeight[apv][strip] = 1;
91  APV.apvabsoluteOccupancy[apv] +=
92  phisto._th1f->GetBinContent((apv * 128) + strip + 1); // Remember: Bin=0 is underflow bin!
93  }
94  }
95 
96  for (int apv = 0; apv < number_apvs; apv++) {
97  APV.apvMedian[apv] = TMath::Median(128, stripOccupancy[apv], stripWeight[apv]);
98  }
99 
100  detid = it->first;
101  DetId detectorId = DetId(detid);
102 
103  if (edm::isDebugEnabled())
104  LogTrace("SiStripBadAPV") << "Analyzing detid " << detid << std::endl;
105 
106  detrawid = detid;
107  APV.detrawId = detrawid;
108  subdetid = detectorId.subdetId();
109  switch (detectorId.subdetId()) {
112  disc = -1;
114  isback = -1;
116  isexternalstring = 1;
117  else
118  isexternalstring = 0;
120  iszminusside = 1;
121  else
122  iszminusside = 0;
125  APV.modulePosition = module_number;
126 
127  if (layer_ring == 1)
128  medianValues_TIB_Layer1.push_back(APV);
129  else if (layer_ring == 2)
130  medianValues_TIB_Layer2.push_back(APV);
131  else if (layer_ring == 3)
132  medianValues_TIB_Layer3.push_back(APV);
133  else if (layer_ring == 4)
134  medianValues_TIB_Layer4.push_back(APV);
135  break;
136 
142  isback = 1;
143  else
144  isback = 0;
146  iszminusside = 1;
147  else
148  iszminusside = 0;
149  isexternalstring = -1;
150  rodstringpetal = -1;
152  APV.modulePosition = layer_ring;
153 
154  if (iszminusside == 0) {
155  if (disc == 1)
156  medianValues_TIDPlus_Disc1.push_back(APV);
157  else if (disc == 2)
158  medianValues_TIDPlus_Disc2.push_back(APV);
159  else if (disc == 3)
160  medianValues_TIDPlus_Disc3.push_back(APV);
161  } else if (iszminusside == 1) {
162  if (disc == 1)
163  medianValues_TIDMinus_Disc1.push_back(APV);
164  else if (disc == 2)
165  medianValues_TIDMinus_Disc2.push_back(APV);
166  else if (disc == 3)
167  medianValues_TIDMinus_Disc3.push_back(APV);
168  }
169  break;
170 
173  disc = -1;
175  isback = -1;
177  iszminusside = 1;
178  else
179  iszminusside = 0;
180  isexternalstring = -1;
183  APV.modulePosition = module_number;
184 
185  if (layer_ring == 1)
186  medianValues_TOB_Layer1.push_back(APV);
187  else if (layer_ring == 2)
188  medianValues_TOB_Layer2.push_back(APV);
189  else if (layer_ring == 3)
190  medianValues_TOB_Layer3.push_back(APV);
191  else if (layer_ring == 4)
192  medianValues_TOB_Layer4.push_back(APV);
193  else if (layer_ring == 5)
194  medianValues_TOB_Layer5.push_back(APV);
195  else if (layer_ring == 6)
196  medianValues_TOB_Layer6.push_back(APV);
197  break;
198 
204  isback = 1;
205  else
206  isback = 0;
208  iszminusside = 1;
209  else
210  iszminusside = 0;
211  isexternalstring = -1;
214  APV.modulePosition = layer_ring;
215 
216  if (iszminusside == 0) {
217  if (disc == 1)
218  medianValues_TECPlus_Disc1.push_back(APV);
219  else if (disc == 2)
220  medianValues_TECPlus_Disc2.push_back(APV);
221  else if (disc == 3)
222  medianValues_TECPlus_Disc3.push_back(APV);
223  else if (disc == 4)
224  medianValues_TECPlus_Disc4.push_back(APV);
225  else if (disc == 5)
226  medianValues_TECPlus_Disc5.push_back(APV);
227  else if (disc == 6)
228  medianValues_TECPlus_Disc6.push_back(APV);
229  else if (disc == 7)
230  medianValues_TECPlus_Disc7.push_back(APV);
231  else if (disc == 8)
232  medianValues_TECPlus_Disc8.push_back(APV);
233  else if (disc == 9)
234  medianValues_TECPlus_Disc9.push_back(APV);
235  } else if (iszminusside == 1) {
236  if (disc == 1)
237  medianValues_TECMinus_Disc1.push_back(APV);
238  else if (disc == 2)
239  medianValues_TECMinus_Disc2.push_back(APV);
240  else if (disc == 3)
241  medianValues_TECMinus_Disc3.push_back(APV);
242  else if (disc == 4)
243  medianValues_TECMinus_Disc4.push_back(APV);
244  else if (disc == 5)
245  medianValues_TECMinus_Disc5.push_back(APV);
246  else if (disc == 6)
247  medianValues_TECMinus_Disc6.push_back(APV);
248  else if (disc == 7)
249  medianValues_TECMinus_Disc7.push_back(APV);
250  else if (disc == 8)
251  medianValues_TECMinus_Disc8.push_back(APV);
252  else if (disc == 9)
253  medianValues_TECMinus_Disc9.push_back(APV);
254  }
255  break;
256 
257  default:
258  std::cout << "### Detector does not belong to TIB, TID, TOB or TEC !? ###" << std::endl;
259  std::cout << "### DetRawId: " << detrawid << " ###" << std::endl;
260  }
261 
262  const StripGeomDetUnit* theStripDet = dynamic_cast<const StripGeomDetUnit*>((TkGeom->idToDet(detectorId)));
263  const StripTopology* theStripTopol = dynamic_cast<const StripTopology*>(&(theStripDet->specificTopology()));
264 
265  for (int apv = 0; apv < number_apvs; apv++) {
266  apv_number = apv + 1;
267  apvMedianOccupancy = APV.apvMedian[apv];
268  apvAbsoluteOccupancy = APV.apvabsoluteOccupancy[apv];
269 
270  LocalPoint pos_strip_local = theStripTopol->localPosition((apv * 128));
271  GlobalPoint pos_strip_global = (TkGeom->idToDet(detectorId))->surface().toGlobal(pos_strip_local);
272 
273  global_position_x = pos_strip_global.x();
274  global_position_y = pos_strip_global.y();
275  global_position_z = pos_strip_global.z();
276 
277  if (WriteOutputFile_ == true)
278  apvtree->Fill();
279  }
280 
281  } // end loop on modules
282 
283  // Calculate Mean and RMS for each Layer
288 
295 
302 
312 
322 
323  pQuality = siStripQuality;
324  badStripList.clear();
325 
326  // Analyze the APV Occupancy for hot APVs
327  AnalyzeOccupancy(siStripQuality, medianValues_TIB_Layer1, MeanAndRms_TIB_Layer1, badStripList, inSiStripQuality);
328  AnalyzeOccupancy(siStripQuality, medianValues_TIB_Layer2, MeanAndRms_TIB_Layer2, badStripList, inSiStripQuality);
329  AnalyzeOccupancy(siStripQuality, medianValues_TIB_Layer3, MeanAndRms_TIB_Layer3, badStripList, inSiStripQuality);
330  AnalyzeOccupancy(siStripQuality, medianValues_TIB_Layer4, MeanAndRms_TIB_Layer4, badStripList, inSiStripQuality);
331 
332  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer1, MeanAndRms_TOB_Layer1, badStripList, inSiStripQuality);
333  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer2, MeanAndRms_TOB_Layer2, badStripList, inSiStripQuality);
334  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer3, MeanAndRms_TOB_Layer3, badStripList, inSiStripQuality);
335  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer4, MeanAndRms_TOB_Layer4, badStripList, inSiStripQuality);
336  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer5, MeanAndRms_TOB_Layer5, badStripList, inSiStripQuality);
337  AnalyzeOccupancy(siStripQuality, medianValues_TOB_Layer6, MeanAndRms_TOB_Layer6, badStripList, inSiStripQuality);
338 
340  siStripQuality, medianValues_TIDPlus_Disc1, MeanAndRms_TIDPlus_Disc1, badStripList, inSiStripQuality);
342  siStripQuality, medianValues_TIDPlus_Disc2, MeanAndRms_TIDPlus_Disc2, badStripList, inSiStripQuality);
344  siStripQuality, medianValues_TIDPlus_Disc3, MeanAndRms_TIDPlus_Disc3, badStripList, inSiStripQuality);
346  siStripQuality, medianValues_TIDMinus_Disc1, MeanAndRms_TIDMinus_Disc1, badStripList, inSiStripQuality);
348  siStripQuality, medianValues_TIDMinus_Disc2, MeanAndRms_TIDMinus_Disc2, badStripList, inSiStripQuality);
350  siStripQuality, medianValues_TIDMinus_Disc3, MeanAndRms_TIDMinus_Disc3, badStripList, inSiStripQuality);
351 
353  siStripQuality, medianValues_TECPlus_Disc1, MeanAndRms_TECPlus_Disc1, badStripList, inSiStripQuality);
355  siStripQuality, medianValues_TECPlus_Disc2, MeanAndRms_TECPlus_Disc2, badStripList, inSiStripQuality);
357  siStripQuality, medianValues_TECPlus_Disc3, MeanAndRms_TECPlus_Disc3, badStripList, inSiStripQuality);
359  siStripQuality, medianValues_TECPlus_Disc4, MeanAndRms_TECPlus_Disc4, badStripList, inSiStripQuality);
361  siStripQuality, medianValues_TECPlus_Disc5, MeanAndRms_TECPlus_Disc5, badStripList, inSiStripQuality);
363  siStripQuality, medianValues_TECPlus_Disc6, MeanAndRms_TECPlus_Disc6, badStripList, inSiStripQuality);
365  siStripQuality, medianValues_TECPlus_Disc7, MeanAndRms_TECPlus_Disc7, badStripList, inSiStripQuality);
367  siStripQuality, medianValues_TECPlus_Disc8, MeanAndRms_TECPlus_Disc8, badStripList, inSiStripQuality);
369  siStripQuality, medianValues_TECPlus_Disc9, MeanAndRms_TECPlus_Disc9, badStripList, inSiStripQuality);
370 
372  siStripQuality, medianValues_TECMinus_Disc1, MeanAndRms_TECMinus_Disc1, badStripList, inSiStripQuality);
374  siStripQuality, medianValues_TECMinus_Disc2, MeanAndRms_TECMinus_Disc2, badStripList, inSiStripQuality);
376  siStripQuality, medianValues_TECMinus_Disc3, MeanAndRms_TECMinus_Disc3, badStripList, inSiStripQuality);
378  siStripQuality, medianValues_TECMinus_Disc4, MeanAndRms_TECMinus_Disc4, badStripList, inSiStripQuality);
380  siStripQuality, medianValues_TECMinus_Disc5, MeanAndRms_TECMinus_Disc5, badStripList, inSiStripQuality);
382  siStripQuality, medianValues_TECMinus_Disc6, MeanAndRms_TECMinus_Disc6, badStripList, inSiStripQuality);
384  siStripQuality, medianValues_TECMinus_Disc7, MeanAndRms_TECMinus_Disc7, badStripList, inSiStripQuality);
386  siStripQuality, medianValues_TECMinus_Disc8, MeanAndRms_TECMinus_Disc8, badStripList, inSiStripQuality);
388  siStripQuality, medianValues_TECMinus_Disc9, MeanAndRms_TECMinus_Disc9, badStripList, inSiStripQuality);
389 
390  siStripQuality->fillBadComponents();
391 
392  if (WriteOutputFile_ == true) {
393  f->cd();
394  apvtree->Write();
395  f->Close();
396  }
397 
398  LogTrace("SiStripBadAPV") << ss.str() << std::endl;
399 }
bool isDebugEnabled()
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
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)
unsigned int tecRing(const DetId &id) const
ring id
T y() const
Definition: PV3DBase.h:63
unsigned int tidWheel(const DetId &id) const
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
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
virtual LocalPoint localPosition(float strip) const =0
unsigned int tidModule(const DetId &id) const
bool tidIsBackRing(const DetId &id) const
T z() const
Definition: PV3DBase.h:64
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
void fillBadComponents()
#define LogTrace(id)
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
const TrackerGeomDet * idToDet(DetId) const override
unsigned int tecPetalNumber(const DetId &id) const
unsigned int tobRod(const DetId &id) const
T x() const
Definition: PV3DBase.h:62
unsigned int tecWheel(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
void SiStripBadAPVAlgorithmFromClusterOccupancy::setAbsoluteLowThreshold ( long double  absolute_low)
inline
void SiStripBadAPVAlgorithmFromClusterOccupancy::setAbsoluteOccupancyThreshold ( long double  occupancy)
inline
void SiStripBadAPVAlgorithmFromClusterOccupancy::setHighOccupancyThreshold ( long double  high_occupancy)
inline
void SiStripBadAPVAlgorithmFromClusterOccupancy::setLowOccupancyThreshold ( long double  low_occupancy)
inline
void SiStripBadAPVAlgorithmFromClusterOccupancy::setMinNumOfEvents ( )
void SiStripBadAPVAlgorithmFromClusterOccupancy::setNumberIterations ( int  number_iterations)
inline
void SiStripBadAPVAlgorithmFromClusterOccupancy::setNumberOfEvents ( double  Nevents)
inline
void SiStripBadAPVAlgorithmFromClusterOccupancy::setOutputFileName ( std::string  OutputFileName,
bool  WriteOutputFile 
)
inline
void SiStripBadAPVAlgorithmFromClusterOccupancy::setTrackerGeometry ( const TrackerGeometry tkgeom)
inline

Member Data Documentation

long double SiStripBadAPVAlgorithmFromClusterOccupancy::absolutelow_
private
int SiStripBadAPVAlgorithmFromClusterOccupancy::apv_number
private

Definition at line 194 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

double SiStripBadAPVAlgorithmFromClusterOccupancy::apvAbsoluteOccupancy
private

Definition at line 200 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

double SiStripBadAPVAlgorithmFromClusterOccupancy::apvMedianOccupancy
private

Definition at line 201 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

TTree* SiStripBadAPVAlgorithmFromClusterOccupancy::apvtree
private

Definition at line 180 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

uint32_t SiStripBadAPVAlgorithmFromClusterOccupancy::detrawid
private

Definition at line 182 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

int SiStripBadAPVAlgorithmFromClusterOccupancy::disc
private

Definition at line 185 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

TFile* SiStripBadAPVAlgorithmFromClusterOccupancy::f
private
float SiStripBadAPVAlgorithmFromClusterOccupancy::global_position_x
private

Definition at line 196 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

float SiStripBadAPVAlgorithmFromClusterOccupancy::global_position_y
private

Definition at line 197 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

float SiStripBadAPVAlgorithmFromClusterOccupancy::global_position_z
private

Definition at line 198 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

long double SiStripBadAPVAlgorithmFromClusterOccupancy::highoccupancy_
private
int SiStripBadAPVAlgorithmFromClusterOccupancy::isback
private

Definition at line 186 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

int SiStripBadAPVAlgorithmFromClusterOccupancy::isexternalstring
private

Definition at line 187 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

int SiStripBadAPVAlgorithmFromClusterOccupancy::isstereo
private

Definition at line 190 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

int SiStripBadAPVAlgorithmFromClusterOccupancy::iszminusside
private

Definition at line 188 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

int SiStripBadAPVAlgorithmFromClusterOccupancy::layer_ring
private

Definition at line 184 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

long double SiStripBadAPVAlgorithmFromClusterOccupancy::lowoccupancy_
private
std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc1[7]
private

Definition at line 161 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc2[7]
private

Definition at line 163 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc3[7]
private

Definition at line 165 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc4[7]
private

Definition at line 167 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc5[7]
private

Definition at line 169 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc6[7]
private

Definition at line 171 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc7[7]
private

Definition at line 173 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc8[7]
private

Definition at line 175 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECMinus_Disc9[7]
private

Definition at line 177 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc1[7]
private

Definition at line 142 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc2[7]
private

Definition at line 144 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc3[7]
private

Definition at line 146 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc4[7]
private

Definition at line 148 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc5[7]
private

Definition at line 150 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc6[7]
private

Definition at line 152 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc7[7]
private

Definition at line 154 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc8[7]
private

Definition at line 156 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TECPlus_Disc9[7]
private

Definition at line 158 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIB_Layer1[7]
private

Definition at line 106 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIB_Layer2[7]
private

Definition at line 108 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIB_Layer3[7]
private

Definition at line 110 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIB_Layer4[7]
private

Definition at line 112 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIDMinus_Disc1[7]
private

Definition at line 135 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIDMinus_Disc2[7]
private

Definition at line 137 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIDMinus_Disc3[7]
private

Definition at line 139 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIDPlus_Disc1[7]
private

Definition at line 128 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIDPlus_Disc2[7]
private

Definition at line 130 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TIDPlus_Disc3[7]
private

Definition at line 132 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer1[7]
private

Definition at line 115 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer2[7]
private

Definition at line 117 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer3[7]
private

Definition at line 119 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer4[7]
private

Definition at line 121 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer5[7]
private

Definition at line 123 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::pair<double, double> SiStripBadAPVAlgorithmFromClusterOccupancy::MeanAndRms_TOB_Layer6[7]
private

Definition at line 125 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc1
private

Definition at line 160 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc2
private

Definition at line 162 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc3
private

Definition at line 164 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc4
private

Definition at line 166 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc5
private

Definition at line 168 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc6
private

Definition at line 170 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc7
private

Definition at line 172 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc8
private

Definition at line 174 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECMinus_Disc9
private

Definition at line 176 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc1
private

Definition at line 141 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc2
private

Definition at line 143 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc3
private

Definition at line 145 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc4
private

Definition at line 147 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc5
private

Definition at line 149 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc6
private

Definition at line 151 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc7
private

Definition at line 153 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc8
private

Definition at line 155 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TECPlus_Disc9
private

Definition at line 157 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIB_Layer1
private

Definition at line 105 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIB_Layer2
private

Definition at line 107 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIB_Layer3
private

Definition at line 109 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIB_Layer4
private

Definition at line 111 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIDMinus_Disc1
private

Definition at line 134 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIDMinus_Disc2
private

Definition at line 136 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIDMinus_Disc3
private

Definition at line 138 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIDPlus_Disc1
private

Definition at line 127 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIDPlus_Disc2
private

Definition at line 129 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TIDPlus_Disc3
private

Definition at line 131 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TOB_Layer1
private

Definition at line 114 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TOB_Layer2
private

Definition at line 116 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TOB_Layer3
private

Definition at line 118 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TOB_Layer4
private

Definition at line 120 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TOB_Layer5
private

Definition at line 122 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::vector<Apv> SiStripBadAPVAlgorithmFromClusterOccupancy::medianValues_TOB_Layer6
private

Definition at line 124 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

double SiStripBadAPVAlgorithmFromClusterOccupancy::minNevents_
private
int SiStripBadAPVAlgorithmFromClusterOccupancy::module_number
private

Definition at line 191 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

double SiStripBadAPVAlgorithmFromClusterOccupancy::Nevents_
private
int SiStripBadAPVAlgorithmFromClusterOccupancy::number_apvs
private

Definition at line 193 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

int SiStripBadAPVAlgorithmFromClusterOccupancy::number_strips
private

Definition at line 192 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

int SiStripBadAPVAlgorithmFromClusterOccupancy::numberiterations_
private
long double SiStripBadAPVAlgorithmFromClusterOccupancy::occupancy_
private
std::string SiStripBadAPVAlgorithmFromClusterOccupancy::OutFileName_
private
SiStripQuality* SiStripBadAPVAlgorithmFromClusterOccupancy::pQuality
private
int SiStripBadAPVAlgorithmFromClusterOccupancy::rodstringpetal
private

Definition at line 189 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

std::stringstream SiStripBadAPVAlgorithmFromClusterOccupancy::ss
private

Definition at line 203 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

double SiStripBadAPVAlgorithmFromClusterOccupancy::stripOccupancy[6][128]
private

Definition at line 102 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

double SiStripBadAPVAlgorithmFromClusterOccupancy::stripWeight[6][128]
private

Definition at line 103 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

int SiStripBadAPVAlgorithmFromClusterOccupancy::subdetid
private

Definition at line 183 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

const TrackerGeometry* SiStripBadAPVAlgorithmFromClusterOccupancy::TkGeom
private
const TrackerTopology* SiStripBadAPVAlgorithmFromClusterOccupancy::tTopo
private

Definition at line 98 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by extractBadAPVs().

bool SiStripBadAPVAlgorithmFromClusterOccupancy::UseInputDB_
private

Definition at line 96 of file SiStripBadAPVAlgorithmFromClusterOccupancy.h.

Referenced by AnalyzeOccupancy().

bool SiStripBadAPVAlgorithmFromClusterOccupancy::WriteOutputFile_
private