CMS 3D CMS Logo

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

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

Classes

struct  pHisto
 

Public Types

typedef SiStrip::QualityHistosMap HistoMap
 

Public Member Functions

void extractBadStrips (SiStripQuality *, HistoMap &, const SiStripQuality *)
 
void setMinNumEntries (unsigned short m)
 
void setMinNumEntriesPerStrip (unsigned short m)
 
void setNumberOfEvents (double Nevents)
 
void setOccupancyThreshold (long double occupancy)
 
void setOutputFileName (std::string OutputFileName, bool WriteOutputFile)
 
void setProbabilityThreshold (long double prob)
 
void setTrackerGeometry (const TrackerGeometry *tkgeom)
 
 SiStripHotStripAlgorithmFromClusterOccupancy (const edm::ParameterSet &, const TrackerTopology *)
 
virtual ~SiStripHotStripAlgorithmFromClusterOccupancy ()
 

Private Member Functions

void evaluatePoissonian (std::vector< long double > &, long double &meanVal)
 
void iterativeSearch (pHisto &, std::vector< unsigned int > &, int)
 

Private Attributes

int apv_channel
 
double avgapvhits [6]
 
double avgAPVHits
 
int detrawid
 
int disc
 
TFile * f
 
float global_position_x
 
float global_position_y
 
float global_position_z
 
int hotstripsperapv [6]
 
int hotStripsPerAPV
 
int hotStripsPerModule
 
int hotstripspermodule
 
int isback
 
int isexternalstring
 
int ishot [768]
 
int isHot
 
int isstereo
 
int iszminusside
 
int layer_ring
 
double medianapvhits [6]
 
double medianAPVHits
 
double minNevents_
 
unsigned short MinNumEntries_
 
unsigned short MinNumEntriesPerStrip_
 
int module_position
 
double Nevents_
 
int number_strips
 
long double occupancy_
 
std::string OutFileName_
 
double poissonprob [768]
 
double poissonProb
 
SiStripQualitypQuality
 
long double prob_
 
long double ratio_
 
int rodstringpetal
 
std::stringstream ss
 
int strip_number
 
int striphits [768]
 
int stripHits
 
double stripoccupancy [768]
 
double stripOccupancy
 
TTree * striptree
 
int subdetid
 
const TrackerGeometryTkGeom
 
const TrackerTopologytTopo
 
bool UseInputDB_
 
bool WriteOutputFile_
 

Detailed Description

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

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

Definition at line 51 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Member Typedef Documentation

◆ HistoMap

Constructor & Destructor Documentation

◆ SiStripHotStripAlgorithmFromClusterOccupancy()

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

Definition at line 5 of file SiStripHotStripAlgorithmFromClusterOccupancy.cc.

7  : prob_(1.E-7),
8  ratio_(1.5),
11  Nevents_(0),
12  occupancy_(0),
13  OutFileName_("Occupancy.root"),
14  tTopo(theTopo),
15  UseInputDB_(iConfig.getUntrackedParameter<bool>("UseInputDB", false)) {
17 }

References minNevents_, Nevents_, and occupancy_.

◆ ~SiStripHotStripAlgorithmFromClusterOccupancy()

SiStripHotStripAlgorithmFromClusterOccupancy::~SiStripHotStripAlgorithmFromClusterOccupancy ( )
virtual

Definition at line 19 of file SiStripHotStripAlgorithmFromClusterOccupancy.cc.

19  {
20  LogTrace("SiStripHotStripAlgorithmFromClusterOccupancy")
21  << "[SiStripHotStripAlgorithmFromClusterOccupancy::~SiStripHotStripAlgorithmFromClusterOccupancy] " << std::endl;
22 }

References LogTrace.

Member Function Documentation

◆ evaluatePoissonian()

void SiStripHotStripAlgorithmFromClusterOccupancy::evaluatePoissonian ( std::vector< long double > &  vPoissonProbs,
long double &  meanVal 
)
private

Definition at line 316 of file SiStripHotStripAlgorithmFromClusterOccupancy.cc.

317  {
318  for (size_t i = 0; i < vPoissonProbs.size(); ++i) {
319  vPoissonProbs[i] = (i == 0) ? TMath::Poisson(i, meanVal) : vPoissonProbs[i - 1] + TMath::Poisson(i, meanVal);
320  }
321 }

References mps_fire::i.

Referenced by iterativeSearch().

◆ extractBadStrips()

void SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips ( SiStripQuality OutSiStripQuality,
HistoMap DM,
const SiStripQuality InSiStripQuality 
)

Definition at line 24 of file SiStripHotStripAlgorithmFromClusterOccupancy.cc.

26  {
27  LogTrace("SiStripHotStripAlgorithmFromClusterOccupancy")
28  << "[SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips] " << std::endl;
29 
30  if (WriteOutputFile_ == true) {
31  f = new TFile(OutFileName_.c_str(), "RECREATE");
32  f->cd();
33 
34  striptree = new TTree("stripOccupancy", "tree");
35 
36  striptree->Branch("DetRawId", &detrawid, "DetRawId/I");
37  striptree->Branch("SubDetId", &subdetid, "SubDetId/I");
38  striptree->Branch("Layer_Ring", &layer_ring, "Layer_Ring/I");
39  striptree->Branch("Disc", &disc, "Disc/I");
40  striptree->Branch("IsBack", &isback, "IsBack/I");
41  striptree->Branch("IsExternalString", &isexternalstring, "IsExternalString/I");
42  striptree->Branch("IsZMinusSide", &iszminusside, "IsZMinusSide/I");
43  striptree->Branch("RodStringPetal", &rodstringpetal, "RodStringPetal/I");
44  striptree->Branch("IsStereo", &isstereo, "IsStereo/I");
45  striptree->Branch("ModulePosition", &module_position, "ModulePosition/I");
46  striptree->Branch("NumberOfStrips", &number_strips, "NumberOfStrips/I");
47  striptree->Branch("StripNumber", &strip_number, "StripNumber/I");
48  striptree->Branch("APVChannel", &apv_channel, "APVChannel/I");
49  striptree->Branch("StripGlobalPositionX", &global_position_x, "StripGlobalPositionX/F");
50  striptree->Branch("StripGlobalPositionY", &global_position_y, "StripGlobalPositionY/F");
51  striptree->Branch("StripGlobalPositionZ", &global_position_z, "StripGlobalPositionZ/F");
52  striptree->Branch("IsHot", &isHot, "IsHot/I");
53  striptree->Branch("HotStripsPerAPV", &hotStripsPerAPV, "HotStripsPerAPV/I");
54  striptree->Branch("HotStripsPerModule", &hotStripsPerModule, "HotStripsPerModule/I");
55  striptree->Branch("StripOccupancy", &stripOccupancy, "StripOccupancy/D");
56  striptree->Branch("StripHits", &stripHits, "StripHits/I");
57  striptree->Branch("PoissonProb", &poissonProb, "PoissonProb/D");
58  striptree->Branch("MedianAPVHits", &medianAPVHits, "MedianAPVHits/D");
59  striptree->Branch("AvgAPVHits", &avgAPVHits, "AvgAPVHits/D");
60  }
61 
62  HistoMap::iterator it = DM.begin();
63  HistoMap::iterator itEnd = DM.end();
64  std::vector<unsigned int> badStripList;
65  uint32_t detid;
66  for (; it != itEnd; ++it) {
67  pHisto phisto;
68  detid = it->first;
69 
70  DetId detectorId = DetId(detid);
71  phisto._SubdetId = detectorId.subdetId();
72 
73  if (edm::isDebugEnabled())
74  LogTrace("SiStripHotStrip") << "Analyzing detid " << detid << std::endl;
75 
76  int numberAPVs = (int)(it->second.get())->GetNbinsX() / 128;
77 
78  // Set the values for the tree:
79 
80  detrawid = detid;
81  subdetid = detectorId.subdetId();
82  number_strips = (int)(it->second.get())->GetNbinsX();
83  switch (detectorId.subdetId()) {
86  disc = -1;
88  isback = -1;
90  isexternalstring = 1;
91  else
92  isexternalstring = 0;
94  iszminusside = 1;
95  else
96  iszminusside = 0;
99  break;
100 
106  isback = 1;
107  else
108  isback = 0;
110  iszminusside = 1;
111  else
112  iszminusside = 0;
113  isexternalstring = -1;
114  rodstringpetal = -1;
116  break;
117 
120  disc = -1;
122  isback = -1;
124  iszminusside = 1;
125  else
126  iszminusside = 0;
127  isexternalstring = -1;
130  break;
131 
137  isback = 1;
138  else
139  isback = 0;
141  iszminusside = 1;
142  else
143  iszminusside = 0;
144  isexternalstring = -1;
147  break;
148 
149  default:
150  std::cout << "### Detector does not belong to TIB, TID, TOB or TEC !? ###" << std::endl;
151  std::cout << "### DetRawId: " << detrawid << " ###" << std::endl;
152  }
153 
154  // End: Set the values for the tree.
155 
156  pQuality = OutSiStripQuality;
157  badStripList.clear();
158 
159  for (int i = 0; i < 768; i++) {
160  ishot[i] = 0;
161  stripoccupancy[i] = 0;
162  striphits[i] = 0;
163  poissonprob[i] = 0;
164  hotstripsperapv[i / 128] = 0;
165  }
166 
167  hotstripspermodule = 0;
168 
169  for (int apv = 0; apv < numberAPVs; apv++) {
170  if (UseInputDB_) {
171  if (InSiStripQuality->IsApvBad(detid, apv)) {
172  if (edm::isDebugEnabled())
173  LogTrace("SiStripHotStrip") << "(Module and Apv number) " << detid << " , " << apv
174  << " excluded by input ESetup." << std::endl;
175  continue; //if the apv is already flagged as bad, continue.
176  } else {
177  if (edm::isDebugEnabled())
178  LogTrace("SiStripHotStrip") << "(Module and Apv number) " << detid << " , " << apv
179  << " good by input ESetup." << std::endl;
180  }
181  }
182 
183  phisto._th1f = new TH1F("tmp", "tmp", 128, 0.5, 128.5);
184  int NumberEntriesPerAPV = 0;
185 
186  for (int strip = 0; strip < 128; strip++) {
187  phisto._th1f->SetBinContent(strip + 1, (it->second.get())->GetBinContent((apv * 128) + strip + 1));
188  NumberEntriesPerAPV += (int)(it->second.get())->GetBinContent((apv * 128) + strip + 1);
189  }
190 
191  phisto._th1f->SetEntries(NumberEntriesPerAPV);
192  phisto._NEntries = (int)phisto._th1f->GetEntries();
193  phisto._NEmptyBins = 0;
194 
195  LogTrace("SiStripHotStrip") << "Number of clusters in APV " << apv << ": " << NumberEntriesPerAPV << std::endl;
196 
197  iterativeSearch(phisto, badStripList, apv);
198 
199  delete phisto._th1f;
200  }
201 
202  const StripGeomDetUnit* theStripDet = dynamic_cast<const StripGeomDetUnit*>((TkGeom->idToDet(detectorId)));
203  const StripTopology* theStripTopol = dynamic_cast<const StripTopology*>(&(theStripDet->specificTopology()));
204 
205  for (int strip = 0; strip < number_strips; strip++) {
206  strip_number = strip + 1;
207  apv_channel = (strip % 128) + 1;
208  isHot = ishot[strip];
213  avgAPVHits = avgapvhits[strip / 128];
214 
217 
218  LocalPoint pos_strip_local = theStripTopol->localPosition(strip);
219  GlobalPoint pos_strip_global = (TkGeom->idToDet(detectorId))->surface().toGlobal(pos_strip_local);
220 
221  global_position_x = pos_strip_global.x();
222  global_position_y = pos_strip_global.y();
223  global_position_z = pos_strip_global.z();
224 
225  if (WriteOutputFile_ == true)
226  striptree->Fill();
227  }
228 
229  if (badStripList.begin() == badStripList.end())
230  continue;
231 
232  OutSiStripQuality->compact(detid, badStripList);
233 
234  SiStripQuality::Range range(badStripList.begin(), badStripList.end());
235  if (!OutSiStripQuality->put(detid, range))
236  edm::LogError("SiStripHotStrip")
237  << "[SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips] detid already exists" << std::endl;
238  }
239  OutSiStripQuality->fillBadComponents();
240 
241  if (WriteOutputFile_ == true) {
242  f->cd();
243  striptree->Write();
244  f->Close();
245  }
246 
247  LogTrace("SiStripHotStrip") << ss.str() << std::endl;
248 }

References SiStripHotStripAlgorithmFromClusterOccupancy::pHisto::_NEmptyBins, SiStripHotStripAlgorithmFromClusterOccupancy::pHisto::_NEntries, SiStripHotStripAlgorithmFromClusterOccupancy::pHisto::_SubdetId, SiStripHotStripAlgorithmFromClusterOccupancy::pHisto::_th1f, apv_channel, avgAPVHits, avgapvhits, SiStripQuality::clear(), SiStripQuality::compact(), gather_cfg::cout, detrawid, disc, f, SiStripQuality::fillBadComponents(), global_position_x, global_position_y, global_position_z, hotStripsPerAPV, hotstripsperapv, hotStripsPerModule, hotstripspermodule, mps_fire::i, TrackerGeometry::idToDet(), createfilelist::int, SiStripQuality::IsApvBad(), isback, edm::isDebugEnabled(), isexternalstring, isHot, ishot, isstereo, iszminusside, iterativeSearch(), layer_ring, StripTopology::localPosition(), LogTrace, medianAPVHits, medianapvhits, module_position, number_strips, OutFileName_, poissonProb, poissonprob, pQuality, SiStripBadStrip::put(), FastTimerService_cff::range, rodstringpetal, StripGeomDetUnit::specificTopology(), ss, digitizers_cfi::strip, strip_number, stripHits, striphits, stripOccupancy, stripoccupancy, striptree, 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, UseInputDB_, WriteOutputFile_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

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

◆ iterativeSearch()

void SiStripHotStripAlgorithmFromClusterOccupancy::iterativeSearch ( pHisto histo,
std::vector< unsigned int > &  vect,
int  apv 
)
private

Definition at line 250 of file SiStripHotStripAlgorithmFromClusterOccupancy.cc.

252  {
253  if (!histo._NEntries || histo._NEntries <= MinNumEntries_ || histo._NEntries <= minNevents_)
254  return;
255 
256  size_t startingSize = vect.size();
257  long double diff = 1. - prob_;
258 
259  size_t Nbins = histo._th1f->GetNbinsX();
260  size_t ibinStart = 1;
261  size_t ibinStop = Nbins + 1;
262  int MaxEntry = (int)histo._th1f->GetMaximum();
263 
264  std::vector<long double> vPoissonProbs(MaxEntry + 1, 0);
265  long double meanVal = 1. * histo._NEntries / (1. * Nbins - histo._NEmptyBins);
266  evaluatePoissonian(vPoissonProbs, meanVal);
267 
268  // Find median occupancy, taking into account only good strips
269  unsigned int goodstripentries[128];
270  int nGoodStrips = 0;
271  for (size_t i = ibinStart; i < ibinStop; ++i) {
272  if (ishot[(apv * 128) + i - 1] == 0) {
273  goodstripentries[nGoodStrips] = (unsigned int)histo._th1f->GetBinContent(i);
274  nGoodStrips++;
275  }
276  }
277  double median = TMath::Median(nGoodStrips, goodstripentries);
278 
279  for (size_t i = ibinStart; i < ibinStop; ++i) {
280  unsigned int entries = (unsigned int)histo._th1f->GetBinContent(i);
281 
282  if (ishot[(apv * 128) + i - 1] == 0) {
283  stripoccupancy[(apv * 128) + i - 1] = entries / (double)Nevents_;
284  striphits[(apv * 128) + i - 1] = entries;
285  poissonprob[(apv * 128) + i - 1] = 1 - vPoissonProbs[entries];
286  medianapvhits[apv] = median;
287  avgapvhits[apv] = meanVal;
288  }
289  if (entries <= MinNumEntriesPerStrip_ || entries <= minNevents_ || entries / median < ratio_)
290  continue;
291 
292  if (diff < vPoissonProbs[entries]) {
293  ishot[(apv * 128) + i - 1] = 1;
295  hotstripsperapv[apv]++;
296  histo._th1f->SetBinContent(i, 0.);
297  histo._NEntries -= entries;
298  histo._NEmptyBins++;
299  if (edm::isDebugEnabled())
300  LogTrace("SiStripHotStrip") << " rejecting strip " << (apv * 128) + i - 1 << " value " << entries << " diff "
301  << diff << " prob " << vPoissonProbs[entries] << std::endl;
302  vect.push_back(pQuality->encode((apv * 128) + i - 1, 1, 0));
303  }
304  }
305  if (edm::isDebugEnabled())
306  LogTrace("SiStripHotStrip") << " [SiStripHotStripAlgorithmFromClusterOccupancy::iterativeSearch] Nbins=" << Nbins
307  << " MaxEntry=" << MaxEntry << " meanVal=" << meanVal
308  << " NEmptyBins=" << histo._NEmptyBins << " NEntries=" << histo._NEntries
309  << " thEntries " << histo._th1f->GetEntries() << " startingSize " << startingSize
310  << " vector.size " << vect.size() << std::endl;
311 
312  if (vect.size() != startingSize)
313  iterativeSearch(histo, vect, apv);
314 }

References avgapvhits, change_name::diff, SiStripBadStrip::encode(), evaluatePoissonian(), timingPdfMaker::histo, hotstripsperapv, hotstripspermodule, mps_fire::i, createfilelist::int, edm::isDebugEnabled(), ishot, LogTrace, pfDeepBoostedJetPreprocessParams_cfi::median, medianapvhits, minNevents_, MinNumEntries_, MinNumEntriesPerStrip_, SiStripMonitorCluster_cfi::Nbins, Nevents_, poissonprob, pQuality, prob_, ratio_, striphits, and stripoccupancy.

Referenced by extractBadStrips().

◆ setMinNumEntries()

void SiStripHotStripAlgorithmFromClusterOccupancy::setMinNumEntries ( unsigned short  m)
inline

◆ setMinNumEntriesPerStrip()

void SiStripHotStripAlgorithmFromClusterOccupancy::setMinNumEntriesPerStrip ( unsigned short  m)
inline

◆ setNumberOfEvents()

void SiStripHotStripAlgorithmFromClusterOccupancy::setNumberOfEvents ( double  Nevents)

Definition at line 323 of file SiStripHotStripAlgorithmFromClusterOccupancy.cc.

323  {
324  Nevents_ = Nevents;
326  if (edm::isDebugEnabled())
327  LogTrace("SiStripHotStrip") << " [SiStripHotStripAlgorithmFromClusterOccupancy::setNumberOfEvents] minNumber of "
328  "Events per strip used to consider a strip bad"
329  << minNevents_ << " for occupancy " << occupancy_ << std::endl;
330 }

References edm::isDebugEnabled(), LogTrace, minNevents_, Nevents_, and occupancy_.

Referenced by SiStripQualityHotStripIdentifierRoot::getNewObject().

◆ setOccupancyThreshold()

void SiStripHotStripAlgorithmFromClusterOccupancy::setOccupancyThreshold ( long double  occupancy)
inline

Definition at line 62 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

62  {
63  occupancy_ = occupancy;
65  }

References minNevents_, Nevents_, and occupancy_.

Referenced by SiStripQualityHotStripIdentifierRoot::getNewObject().

◆ setOutputFileName()

void SiStripHotStripAlgorithmFromClusterOccupancy::setOutputFileName ( std::string  OutputFileName,
bool  WriteOutputFile 
)
inline

◆ setProbabilityThreshold()

void SiStripHotStripAlgorithmFromClusterOccupancy::setProbabilityThreshold ( long double  prob)
inline

◆ setTrackerGeometry()

void SiStripHotStripAlgorithmFromClusterOccupancy::setTrackerGeometry ( const TrackerGeometry tkgeom)
inline

Definition at line 71 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

71 { TkGeom = tkgeom; }

References TkGeom.

Referenced by SiStripQualityHotStripIdentifierRoot::getNewObject().

Member Data Documentation

◆ apv_channel

int SiStripHotStripAlgorithmFromClusterOccupancy::apv_channel
private

Definition at line 120 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ avgapvhits

double SiStripHotStripAlgorithmFromClusterOccupancy::avgapvhits[6]
private

◆ avgAPVHits

double SiStripHotStripAlgorithmFromClusterOccupancy::avgAPVHits
private

Definition at line 132 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ detrawid

int SiStripHotStripAlgorithmFromClusterOccupancy::detrawid
private

Definition at line 108 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ disc

int SiStripHotStripAlgorithmFromClusterOccupancy::disc
private

Definition at line 111 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ f

TFile* SiStripHotStripAlgorithmFromClusterOccupancy::f
private

◆ global_position_x

float SiStripHotStripAlgorithmFromClusterOccupancy::global_position_x
private

Definition at line 122 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ global_position_y

float SiStripHotStripAlgorithmFromClusterOccupancy::global_position_y
private

Definition at line 123 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ global_position_z

float SiStripHotStripAlgorithmFromClusterOccupancy::global_position_z
private

Definition at line 124 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ hotstripsperapv

int SiStripHotStripAlgorithmFromClusterOccupancy::hotstripsperapv[6]
private

◆ hotStripsPerAPV

int SiStripHotStripAlgorithmFromClusterOccupancy::hotStripsPerAPV
private

Definition at line 127 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ hotStripsPerModule

int SiStripHotStripAlgorithmFromClusterOccupancy::hotStripsPerModule
private

Definition at line 128 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ hotstripspermodule

int SiStripHotStripAlgorithmFromClusterOccupancy::hotstripspermodule
private

◆ isback

int SiStripHotStripAlgorithmFromClusterOccupancy::isback
private

Definition at line 112 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ isexternalstring

int SiStripHotStripAlgorithmFromClusterOccupancy::isexternalstring
private

Definition at line 113 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ ishot

int SiStripHotStripAlgorithmFromClusterOccupancy::ishot[768]
private

◆ isHot

int SiStripHotStripAlgorithmFromClusterOccupancy::isHot
private

Definition at line 126 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ isstereo

int SiStripHotStripAlgorithmFromClusterOccupancy::isstereo
private

Definition at line 116 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ iszminusside

int SiStripHotStripAlgorithmFromClusterOccupancy::iszminusside
private

Definition at line 114 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ layer_ring

int SiStripHotStripAlgorithmFromClusterOccupancy::layer_ring
private

Definition at line 110 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ medianapvhits

double SiStripHotStripAlgorithmFromClusterOccupancy::medianapvhits[6]
private

◆ medianAPVHits

double SiStripHotStripAlgorithmFromClusterOccupancy::medianAPVHits
private

Definition at line 131 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ minNevents_

double SiStripHotStripAlgorithmFromClusterOccupancy::minNevents_
private

◆ MinNumEntries_

unsigned short SiStripHotStripAlgorithmFromClusterOccupancy::MinNumEntries_
private

◆ MinNumEntriesPerStrip_

unsigned short SiStripHotStripAlgorithmFromClusterOccupancy::MinNumEntriesPerStrip_
private

◆ module_position

int SiStripHotStripAlgorithmFromClusterOccupancy::module_position
private

Definition at line 117 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ Nevents_

double SiStripHotStripAlgorithmFromClusterOccupancy::Nevents_
private

◆ number_strips

int SiStripHotStripAlgorithmFromClusterOccupancy::number_strips
private

Definition at line 118 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ occupancy_

long double SiStripHotStripAlgorithmFromClusterOccupancy::occupancy_
private

◆ OutFileName_

std::string SiStripHotStripAlgorithmFromClusterOccupancy::OutFileName_
private

◆ poissonprob

double SiStripHotStripAlgorithmFromClusterOccupancy::poissonprob[768]
private

◆ poissonProb

double SiStripHotStripAlgorithmFromClusterOccupancy::poissonProb
private

Definition at line 133 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ pQuality

SiStripQuality* SiStripHotStripAlgorithmFromClusterOccupancy::pQuality
private

◆ prob_

long double SiStripHotStripAlgorithmFromClusterOccupancy::prob_
private

◆ ratio_

long double SiStripHotStripAlgorithmFromClusterOccupancy::ratio_
private

Definition at line 92 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by iterativeSearch().

◆ rodstringpetal

int SiStripHotStripAlgorithmFromClusterOccupancy::rodstringpetal
private

Definition at line 115 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ ss

std::stringstream SiStripHotStripAlgorithmFromClusterOccupancy::ss
private

Definition at line 144 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ strip_number

int SiStripHotStripAlgorithmFromClusterOccupancy::strip_number
private

Definition at line 119 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ striphits

int SiStripHotStripAlgorithmFromClusterOccupancy::striphits[768]
private

◆ stripHits

int SiStripHotStripAlgorithmFromClusterOccupancy::stripHits
private

Definition at line 130 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ stripoccupancy

double SiStripHotStripAlgorithmFromClusterOccupancy::stripoccupancy[768]
private

◆ stripOccupancy

double SiStripHotStripAlgorithmFromClusterOccupancy::stripOccupancy
private

Definition at line 129 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ striptree

TTree* SiStripHotStripAlgorithmFromClusterOccupancy::striptree
private

Definition at line 106 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ subdetid

int SiStripHotStripAlgorithmFromClusterOccupancy::subdetid
private

Definition at line 109 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ TkGeom

const TrackerGeometry* SiStripHotStripAlgorithmFromClusterOccupancy::TkGeom
private

◆ tTopo

const TrackerTopology* SiStripHotStripAlgorithmFromClusterOccupancy::tTopo
private

Definition at line 101 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ UseInputDB_

bool SiStripHotStripAlgorithmFromClusterOccupancy::UseInputDB_
private

Definition at line 107 of file SiStripHotStripAlgorithmFromClusterOccupancy.h.

Referenced by extractBadStrips().

◆ WriteOutputFile_

bool SiStripHotStripAlgorithmFromClusterOccupancy::WriteOutputFile_
private
TrackerGeometry::idToDet
const TrackerGeomDet * idToDet(DetId) const override
Definition: TrackerGeometry.cc:193
change_name.diff
diff
Definition: change_name.py:13
SiStripHotStripAlgorithmFromClusterOccupancy::medianapvhits
double medianapvhits[6]
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:141
SiStripHotStripAlgorithmFromClusterOccupancy::medianAPVHits
double medianAPVHits
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:131
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
TrackerTopology::tidIsZMinusSide
bool tidIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:259
SiStripHotStripAlgorithmFromClusterOccupancy::poissonProb
double poissonProb
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:133
SiStripHotStripAlgorithmFromClusterOccupancy::avgAPVHits
double avgAPVHits
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:132
SiStripHotStripAlgorithmFromClusterOccupancy::isexternalstring
int isexternalstring
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:113
mps_fire.i
i
Definition: mps_fire.py:428
TrackerTopology::tibIsExternalString
bool tibIsExternalString(const DetId &id) const
Definition: TrackerTopology.h:431
SiStripHotStripAlgorithmFromClusterOccupancy::iszminusside
int iszminusside
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:114
TrackerTopology::tobIsStereo
bool tobIsStereo(const DetId &id) const
Definition: TrackerTopology.h:264
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
TrackerTopology::tecIsZMinusSide
bool tecIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:262
StripTopology::localPosition
virtual LocalPoint localPosition(float strip) const =0
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
gather_cfg.cout
cout
Definition: gather_cfg.py:144
pfDeepBoostedJetPreprocessParams_cfi.median
median
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:12
TrackerTopology::tecIsStereo
bool tecIsStereo(const DetId &id) const
Definition: TrackerTopology.h:265
timingPdfMaker.histo
histo
Definition: timingPdfMaker.py:279
SiStripHotStripAlgorithmFromClusterOccupancy::prob_
long double prob_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:91
SiStripHotStripAlgorithmFromClusterOccupancy::layer_ring
int layer_ring
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:110
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
SiStripHotStripAlgorithmFromClusterOccupancy::isHot
int isHot
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:126
SiStripBadStrip::put
bool put(const uint32_t &detID, const InputVector &vect)
Definition: SiStripBadStrip.h:65
SiStripHotStripAlgorithmFromClusterOccupancy::isback
int isback
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:112
TrackerTopology::tidModule
unsigned int tidModule(const DetId &id) const
Definition: TrackerTopology.h:175
OutputFileName
string OutputFileName
Definition: PFMETBenchmarkAnalyzer.cc:73
SiStripHotStripAlgorithmFromClusterOccupancy::ss
std::stringstream ss
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:144
TrackerTopology::tidRing
unsigned int tidRing(const DetId &id) const
Definition: TrackerTopology.h:218
SiStripHotStripAlgorithmFromClusterOccupancy::striptree
TTree * striptree
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:106
SiStripHotStripAlgorithmFromClusterOccupancy::detrawid
int detrawid
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:108
TrackerTopology::tobRod
unsigned int tobRod(const DetId &id) const
Definition: TrackerTopology.h:195
TrackerTopology::tidWheel
unsigned int tidWheel(const DetId &id) const
Definition: TrackerTopology.h:201
SiStripHotStripAlgorithmFromClusterOccupancy::iterativeSearch
void iterativeSearch(pHisto &, std::vector< unsigned int > &, int)
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.cc:250
TrackerTopology::tidIsStereo
bool tidIsStereo(const DetId &id) const
Definition: TrackerTopology.h:267
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
DetId
Definition: DetId.h:17
SiStripHotStripAlgorithmFromClusterOccupancy::occupancy_
long double occupancy_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:97
SiStripBadStrip::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: SiStripBadStrip.h:53
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
SiStripQuality::compact
void compact(unsigned int &, std::vector< unsigned int > &)
Definition: SiStripQuality.cc:326
SiStripHotStripAlgorithmFromClusterOccupancy::stripoccupancy
double stripoccupancy[768]
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:138
SiStripHotStripAlgorithmFromClusterOccupancy::hotStripsPerModule
int hotStripsPerModule
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:128
SiStripHotStripAlgorithmFromClusterOccupancy::ratio_
long double ratio_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:92
TrackerTopology::tibIsStereo
bool tibIsStereo(const DetId &id) const
Definition: TrackerTopology.h:266
StripSubdetector::TIB
static constexpr auto TIB
Definition: StripSubdetector.h:16
SiStripHotStripAlgorithmFromClusterOccupancy::subdetid
int subdetid
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:109
Point3DBase< float, LocalTag >
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
SiStripHotStripAlgorithmFromClusterOccupancy::global_position_x
float global_position_x
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:122
TrackerTopology::tibString
unsigned int tibString(const DetId &id) const
Definition: TrackerTopology.h:419
SiStripHotStripAlgorithmFromClusterOccupancy::rodstringpetal
int rodstringpetal
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:115
SiStripHotStripAlgorithmFromClusterOccupancy::striphits
int striphits[768]
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:139
SiStripHotStripAlgorithmFromClusterOccupancy::ishot
int ishot[768]
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:135
TrackerTopology::tecPetalNumber
unsigned int tecPetalNumber(const DetId &id) const
Definition: TrackerTopology.h:221
TrackerTopology::tobIsZMinusSide
bool tobIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:253
rctMonitor_cfi.WriteOutputFile
WriteOutputFile
Name of root file for histograms.
Definition: rctMonitor_cfi.py:8
SiStripMonitorCluster_cfi.Nbins
Nbins
Definition: SiStripMonitorCluster_cfi.py:32
SiStripHotStripAlgorithmFromClusterOccupancy::MinNumEntriesPerStrip_
unsigned short MinNumEntriesPerStrip_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:94
SiStripHotStripAlgorithmFromClusterOccupancy::global_position_y
float global_position_y
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:123
SiStripHotStripAlgorithmFromClusterOccupancy::f
TFile * f
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:105
SiStripHotStripAlgorithmFromClusterOccupancy::number_strips
int number_strips
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:118
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
TrackerTopology::tibModule
unsigned int tibModule(const DetId &id) const
Definition: TrackerTopology.h:172
createfilelist.int
int
Definition: createfilelist.py:10
SiStripHotStripAlgorithmFromClusterOccupancy::pQuality
SiStripQuality * pQuality
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:103
TrackerTopology::tecRing
unsigned int tecRing(const DetId &id) const
ring id
Definition: TrackerTopology.h:217
SiStripHotStripAlgorithmFromClusterOccupancy::tTopo
const TrackerTopology * tTopo
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:101
SiStripHotStripAlgorithmFromClusterOccupancy::UseInputDB_
bool UseInputDB_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:107
SiStripQuality::fillBadComponents
void fillBadComponents()
Definition: SiStripQuality.cc:531
SiStripHotStripAlgorithmFromClusterOccupancy::evaluatePoissonian
void evaluatePoissonian(std::vector< long double > &, long double &meanVal)
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.cc:316
SiStripHotStripAlgorithmFromClusterOccupancy::OutFileName_
std::string OutFileName_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:98
SiStripQuality::IsApvBad
bool IsApvBad(const uint32_t &detid, const short &apvNb) const
Definition: SiStripQuality.cc:615
SiStripHotStripAlgorithmFromClusterOccupancy::minNevents_
double minNevents_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:96
SiStripHotStripAlgorithmFromClusterOccupancy::stripHits
int stripHits
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:130
TrackerTopology::tobLayer
unsigned int tobLayer(const DetId &id) const
Definition: TrackerTopology.h:147
TrackerTopology::tidIsBackRing
bool tidIsBackRing(const DetId &id) const
Definition: TrackerTopology.h:441
StripSubdetector::TEC
static constexpr auto TEC
Definition: StripSubdetector.h:19
TrackerTopology::tobModule
unsigned int tobModule(const DetId &id) const
Definition: TrackerTopology.h:166
SiStripHotStripAlgorithmFromClusterOccupancy::avgapvhits
double avgapvhits[6]
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:142
SiStripHotStripAlgorithmFromClusterOccupancy::apv_channel
int apv_channel
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:120
SiStripHotStripAlgorithmFromClusterOccupancy::stripOccupancy
double stripOccupancy
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:129
StripSubdetector::TOB
static constexpr auto TOB
Definition: StripSubdetector.h:18
SiStripHotStripAlgorithmFromClusterOccupancy::poissonprob
double poissonprob[768]
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:140
SiStripHotStripAlgorithmFromClusterOccupancy::disc
int disc
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:111
TrackerTopology::tecModule
unsigned int tecModule(const DetId &id) const
Definition: TrackerTopology.h:169
edm::isDebugEnabled
bool isDebugEnabled()
Definition: MessageLogger.cc:12
StripGeomDetUnit::specificTopology
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
Definition: StripGeomDetUnit.cc:17
SiStripHotStripAlgorithmFromClusterOccupancy::TkGeom
const TrackerGeometry * TkGeom
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:100
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:234
SiStripHotStripAlgorithmFromClusterOccupancy::global_position_z
float global_position_z
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:124
TrackerTopology::tecIsBackPetal
bool tecIsBackPetal(const DetId &id) const
Definition: TrackerTopology.h:414
SiStripHotStripAlgorithmFromClusterOccupancy::Nevents_
double Nevents_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:95
SiStripHotStripAlgorithmFromClusterOccupancy::strip_number
int strip_number
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:119
SiStripQuality::clear
void clear()
Definition: SiStripQuality.h:52
SiStripBadStrip::encode
unsigned int encode(const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0)
Definition: SiStripBadStrip.h:86
TrackerTopology::tibIsZMinusSide
bool tibIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:256
TrackerTopology::tecWheel
unsigned int tecWheel(const DetId &id) const
Definition: TrackerTopology.h:198
edm::Log
Definition: MessageLogger.h:70
StripTopology
Definition: StripTopology.h:11
TtFullHadEvtBuilder_cfi.prob
prob
Definition: TtFullHadEvtBuilder_cfi.py:33
SiStripHotStripAlgorithmFromClusterOccupancy::hotstripspermodule
int hotstripspermodule
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:137
StripSubdetector::TID
static constexpr auto TID
Definition: StripSubdetector.h:17
SiStripHotStripAlgorithmFromClusterOccupancy::hotStripsPerAPV
int hotStripsPerAPV
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:127
SiStripHotStripAlgorithmFromClusterOccupancy::isstereo
int isstereo
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:116
SiStripHotStripAlgorithmFromClusterOccupancy::module_position
int module_position
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:117
SiStripHotStripAlgorithmFromClusterOccupancy::hotstripsperapv
int hotstripsperapv[6]
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:136
SiStripHotStripAlgorithmFromClusterOccupancy::WriteOutputFile_
bool WriteOutputFile_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:99
SiStripHotStripAlgorithmFromClusterOccupancy::MinNumEntries_
unsigned short MinNumEntries_
Definition: SiStripHotStripAlgorithmFromClusterOccupancy.h:93
StripGeomDetUnit
Definition: StripGeomDetUnit.h:15
TrackerTopology::tibLayer
unsigned int tibLayer(const DetId &id) const
Definition: TrackerTopology.h:150