CMS 3D CMS Logo

SiPixelPayloadInspectorHelper.h
Go to the documentation of this file.
1 #ifndef CONDCORE_SIPIXELPLUGINS_SIPIXELPAYLOADINSPECTORHELPER_H
2 #define CONDCORE_SIPIXELPLUGINS_SIPIXELPAYLOADINSPECTORHELPER_H
3 
4 #include <vector>
5 #include <numeric>
6 #include <fstream> // std::ifstream
7 #include <string>
8 #include <bitset>
9 
10 #include "TGraph.h"
11 #include "TH1.h"
12 #include "TH2.h"
13 #include "TLatex.h"
14 #include "TLine.h"
15 #include "TPave.h"
16 #include "TPaveStats.h"
17 #include "TPaveText.h"
18 #include "TStyle.h"
19 #include "TCanvas.h"
20 
28 
29 //#define MMDEBUG
30 #ifdef MMDEBUG
31 #include <iostream>
32 #define COUT std::cout << "MM "
33 #else
34 #define COUT edm::LogVerbatim("")
35 #endif
36 
37 namespace SiPixelPI {
38 
39  enum phase { zero = 0, one = 1, two = 2 };
40 
41  // size of the phase-0 pixel detID list
42  static const unsigned int phase0size = 1440;
43  static const unsigned int phase1size = 1856;
44  static const unsigned int phase2size = 3892;
45 
46  //============================================================================
47  // struct to store info useful to construct topology based on the detid list
48  struct PhaseInfo {
49  // construct with det size
50  PhaseInfo(unsigned int size) : m_detsize(size) {}
51  // construct passing the phase
52  PhaseInfo(const phase& thePhase) {
53  switch (thePhase) {
54  case phase::zero:
56  break;
57  case phase::one:
59  break;
60  case phase::two:
62  break;
63  default:
64  m_detsize = 99999;
65  edm::LogError("PhaseInfo") << "undefined phase: " << thePhase;
66  }
67  }
68  virtual ~PhaseInfo() { edm::LogInfo("PhaseInfo") << "PhaseInfo::~PhaseInfo()\n"; }
69  const SiPixelPI::phase phase() const {
70  if (m_detsize == phase0size)
71  return phase::zero;
72  else if (m_detsize == phase1size)
73  return phase::one;
74  else if (m_detsize > phase1size)
75  return phase::two;
76  else {
77  throw cms::Exception("LogicError") << "this detId list size: " << m_detsize << "should not exist!";
78  }
79  }
80 
81  const char* pathToTopoXML() {
82  if (m_detsize == phase0size)
83  return "Geometry/TrackerCommonData/data/trackerParameters.xml";
84  else if (m_detsize == phase1size)
85  return "Geometry/TrackerCommonData/data/PhaseI/trackerParameters.xml";
86  else if (m_detsize > phase1size)
87  return "Geometry/TrackerCommonData/data/PhaseII/trackerParameters.xml";
88  else {
89  throw cms::Exception("LogicError") << "this detId list size: " << m_detsize << "should not exist!";
90  }
91  }
92 
93  const bool isPhase1Comparison(const PhaseInfo& theOtherPhase) const {
94  if (phase() == phase::one || theOtherPhase.phase() == phase::one)
95  return true;
96  else
97  return false;
98  }
99 
100  const bool isComparedWithPhase2(const PhaseInfo& theOtherPhase) const {
101  if ((phase() == phase::two && theOtherPhase.phase() != phase::two) ||
102  (phase() != phase::two && theOtherPhase.phase() == phase::two)) {
103  return true;
104  } else {
105  return false;
106  }
107  }
108 
109  private:
110  size_t m_detsize;
111  };
112 
113  //============================================================================
114  std::pair<unsigned int, unsigned int> unpack(cond::Time_t since) {
115  auto kLowMask = 0XFFFFFFFF;
116  auto run = (since >> 32);
117  auto lumi = (since & kLowMask);
118  return std::make_pair(run, lumi);
119  }
120 
121  //============================================================================
122  // Taken from pixel naming classes
123  // BmO (-z-x) = 1, BmI (-z+x) = 2 , BpO (+z-x) = 3 , BpI (+z+x) = 4
124  int quadrant(const DetId& detid, const TrackerTopology* tTopo_, bool phase_) {
125  if (detid.subdetId() == PixelSubdetector::PixelBarrel) {
126  return PixelBarrelName(detid, tTopo_, phase_).shell();
127  } else {
128  return PixelEndcapName(detid, tTopo_, phase_).halfCylinder();
129  }
130  }
131 
132  //============================================================================
133  // Online ladder convention taken from pixel naming class for barrel
134  // Apply sign convention (- sign for BmO and BpO)
135  int signed_ladder(const DetId& detid, const TrackerTopology& tTopo_, bool phase_) {
137  return -9999;
138  int signed_ladder = PixelBarrelName(detid, &tTopo_, phase_).ladderName();
139  if (quadrant(detid, &tTopo_, phase_) % 2)
140  signed_ladder *= -1;
141  return signed_ladder;
142  }
143 
144  //============================================================================
145  // Online mdoule convention taken from pixel naming class for barrel
146  // Apply sign convention (- sign for BmO and BmI)
147  int signed_module(const DetId& detid, const TrackerTopology& tTopo_, bool phase_) {
149  return -9999;
150  int signed_module = PixelBarrelName(detid, &tTopo_, phase_).moduleName();
151  if (quadrant(detid, &tTopo_, phase_) < 3)
152  signed_module *= -1;
153  return signed_module;
154  }
155 
156  //============================================================================
157  // Phase 0: Ring was not an existing convention
158  // but the 7 plaquettes were split by HV group
159  // --> Derive Ring 1/2 for them
160  // Panel 1 plq 1-2, Panel 2, plq 1 = Ring 1
161  // Panel 1 plq 3-4, Panel 2, plq 2-3 = Ring 2
162  // Phase 1: Using pixel naming class for endcap
163  int ring(const DetId& detid, const TrackerTopology& tTopo_, bool phase_) {
165  return -9999;
166  int ring = -9999;
167  if (phase_ == 0) {
168  ring = 1 + (tTopo_.pxfPanel(detid) + tTopo_.pxfModule(detid) > 3);
169  } else if (phase_ == 1) {
170  ring = PixelEndcapName(detid, &tTopo_, phase_).ringName();
171  }
172  return ring;
173  }
174 
175  //============================================================================
176  // Online blade convention taken from pixel naming class for endcap
177  // Apply sign convention (- sign for BmO and BpO)
178  int signed_blade(const DetId& detid, const TrackerTopology& tTopo_, bool phase_) {
180  return -9999;
181  int signed_blade = PixelEndcapName(detid, &tTopo_, phase_).bladeName();
182  if (quadrant(detid, &tTopo_, phase_) % 2)
183  signed_blade *= -1;
184  return signed_blade;
185  }
186 
187  //============================================================================
188  int signed_blade_panel(const DetId& detid, const TrackerTopology& tTopo_, bool phase_) {
190  return -9999;
191  int signed_blade_panel = signed_blade(detid, tTopo_, phase_) + (tTopo_.pxfPanel(detid) - 1);
192  return signed_blade_panel;
193  }
194 
195  //============================================================================
196  // Online disk convention
197  // Apply sign convention (- sign for BmO and BmI)
198  int signed_disk(const DetId& detid, const TrackerTopology& tTopo_, bool phase_) {
200  return -9999;
201  int signed_disk = tTopo_.pxfDisk(DetId(detid));
202  if (quadrant(detid, &tTopo_, phase_) < 3)
203  signed_disk *= -1;
204  return signed_disk;
205  }
206 
207  //============================================================================
208  void draw_line(double x1, double x2, double y1, double y2, int width = 2, int style = 1, int color = 1) {
209  TLine* l = new TLine(x1, y1, x2, y2);
210  l->SetBit(kCanDelete);
211  l->SetLineWidth(width);
212  l->SetLineStyle(style);
213  l->SetLineColor(color);
214  l->Draw();
215  }
216 
217  //============================================================================
218  void dress_occup_plot(TCanvas& canv,
219  TH2* h,
220  int lay,
221  int ring = 0,
222  int phase = 0,
223  bool half_shift = true,
224  bool mark_zero = true,
225  bool standard_palette = true) {
226  std::string s_title;
227 
228  if (lay > 0) {
229  canv.cd(lay);
230  s_title = "Barrel Pixel Layer " + std::to_string(lay);
231  } else {
232  canv.cd(ring);
233  if (ring > 4) {
234  ring = ring - 4;
235  }
236  s_title = "Forward Pixel Ring " + std::to_string(ring);
237  }
238 
239  gStyle->SetPadRightMargin(0.125);
240 
241  if (standard_palette) {
242  gStyle->SetPalette(1);
243  } else {
244  // this is the fine gradient palette
245  const Int_t NRGBs = 5;
246  const Int_t NCont = 255;
247 
248  Double_t stops[NRGBs] = {0.00, 0.34, 0.61, 0.84, 1.00};
249  Double_t red[NRGBs] = {0.00, 0.00, 0.87, 1.00, 0.51};
250  Double_t green[NRGBs] = {0.00, 0.81, 1.00, 0.20, 0.00};
251  Double_t blue[NRGBs] = {0.51, 1.00, 0.12, 0.00, 0.00};
252  TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
253  gStyle->SetNumberContours(NCont);
254  }
255 
256  h->SetMarkerSize(0.7);
257  h->Draw("colz1");
258 
259  auto ltx = TLatex();
260  ltx.SetTextFont(62);
261  ltx.SetTextColor(1);
262  ltx.SetTextSize(0.06);
263  ltx.SetTextAlign(31);
264  ltx.DrawLatexNDC(1 - gPad->GetRightMargin(), 1 - gPad->GetTopMargin() + 0.01, (s_title).c_str());
265 
266  // Draw Lines around modules
267  if (lay > 0) {
268  std::vector<std::vector<int>> nladder = {{10, 16, 22}, {6, 14, 22, 32}};
269  int nlad = nladder[phase][lay - 1];
270  for (int xsign = -1; xsign <= 1; xsign += 2)
271  for (int ysign = -1; ysign <= 1; ysign += 2) {
272  float xlow = xsign * (half_shift * 0.5);
273  float xhigh = xsign * (half_shift * 0.5 + 4);
274  float ylow = ysign * (half_shift * 0.5 + (phase == 0) * 0.5);
275  float yhigh = ysign * (half_shift * 0.5 - (phase == 0) * 0.5 + nlad);
276  // Outside box
277  draw_line(xlow, xhigh, ylow, ylow, 1); // bottom
278  draw_line(xlow, xhigh, yhigh, yhigh, 1); // top
279  draw_line(xlow, xlow, ylow, yhigh, 1); // left
280  draw_line(xhigh, xhigh, ylow, yhigh, 1); // right
281  // Inner Horizontal lines
282  for (int lad = 1; lad < nlad; ++lad) {
283  float y = ysign * (lad + half_shift * 0.5);
284  draw_line(xlow, xhigh, y, y, 1);
285  }
286  for (int lad = 1; lad <= nlad; ++lad)
287  if (!(phase == 0 && (lad == 1 || lad == nlad))) {
288  float y = ysign * (lad + half_shift * 0.5 - 0.5);
289  draw_line(xlow, xhigh, y, y, 1, 3);
290  }
291  // Inner Vertical lines
292  for (int mod = 1; mod < 4; ++mod) {
293  float x = xsign * (mod + half_shift * 0.5);
294  draw_line(x, x, ylow, yhigh, 1);
295  }
296  // Make a BOX around ROC 0
297  // Phase 0 - ladder +1 is always non-flipped
298  // Phase 1 - ladder +1 is always flipped
299  if (mark_zero) {
300  for (int mod = 1; mod <= 4; ++mod)
301  for (int lad = 1; lad <= nlad; ++lad) {
302  bool flipped = ysign == 1 ? lad % 2 == 0 : lad % 2 == 1;
303  if (phase == 1)
304  flipped = !flipped;
305  int roc0_orientation = flipped ? -1 : 1;
306  if (xsign == -1)
307  roc0_orientation *= -1;
308  if (ysign == -1)
309  roc0_orientation *= -1;
310  float x1 = xsign * (mod + half_shift * 0.5);
311  float x2 = xsign * (mod + half_shift * 0.5 - 1. / 8);
312  float y1 = ysign * (lad + half_shift * 0.5 - 0.5);
313  float y2 = ysign * (lad + half_shift * 0.5 - 0.5 + roc0_orientation * 1. / 2);
314  if (!(phase == 0 && (lad == 1 || lad == nlad) && xsign == -1)) {
315  if (lay == 1 && xsign <= -1) {
316  float x1 = xsign * ((mod - 1) + half_shift * 0.5);
317  float x2 = xsign * ((mod - 1) + half_shift * 0.5 + 1. / 8);
318  float y1 = ysign * (lad + half_shift * 0.5 - 0.5 + roc0_orientation);
319  float y2 = ysign * (lad + half_shift * 0.5 - 0.5 + roc0_orientation * 3. / 2);
320  draw_line(x1, x2, y1, y1, 1);
321  draw_line(x2, x2, y1, y2, 1);
322  } else {
323  draw_line(x1, x2, y1, y1, 1);
324  //draw_line(x1, x2, y2, y2, 1);
325  //draw_line(x1, x1, y1, y2, 1);
326  draw_line(x2, x2, y1, y2, 1);
327  }
328  }
329  }
330  }
331  }
332  } else {
333  // FPIX
334  for (int dsk = 1, ndsk = 2 + (phase == 1); dsk <= ndsk; ++dsk) {
335  for (int xsign = -1; xsign <= 1; xsign += 2)
336  for (int ysign = -1; ysign <= 1; ysign += 2) {
337  if (phase == 0) {
338  int first_roc = 3, nbin = 16;
339  for (int bld = 1, nbld = 12; bld <= nbld; ++bld) {
340  // Horizontal lines
341  for (int plq = 1, nplq = 7; plq <= nplq; ++plq) {
342  float xlow =
343  xsign * (half_shift * 0.5 + dsk - 1 + (first_roc - 3 + 2 * plq + (plq == 1)) / (float)nbin);
344  float xhigh =
345  xsign * (half_shift * 0.5 + dsk - 1 + (first_roc - 3 + 2 * (plq + 1) - (plq == 7)) / (float)nbin);
346  float ylow = ysign * (half_shift * 0.5 + (bld - 0.5) - (2 + plq / 2) * 0.1);
347  float yhigh = ysign * (half_shift * 0.5 + (bld - 0.5) + (2 + plq / 2) * 0.1);
348  draw_line(xlow, xhigh, ylow, ylow, 1); // bottom
349  draw_line(xlow, xhigh, yhigh, yhigh, 1); // top
350  }
351  // Vertical lines
352  for (int plq = 1, nplq = 7 + 1; plq <= nplq; ++plq) {
353  float x = xsign * (half_shift * 0.5 + dsk - 1 +
354  (first_roc - 3 + 2 * plq + (plq == 1) - (plq == 8)) / (float)nbin);
355  float ylow = ysign * (half_shift * 0.5 + (bld - 0.5) - (2 + (plq - (plq == 8)) / 2) * 0.1);
356  float yhigh = ysign * (half_shift * 0.5 + (bld - 0.5) + (2 + (plq - (plq == 8)) / 2) * 0.1);
357  draw_line(x, x, ylow, yhigh, 1);
358  }
359  // Panel 2 has dashed mid-plane
360  for (int plq = 2, nplq = 6; plq <= nplq; ++plq)
361  if (plq % 2 == 0) {
362  float x = xsign * (half_shift * 0.5 + dsk - 1 +
363  (first_roc - 3 + 2 * plq + (plq == 1) - (plq == 8) + 1) / (float)nbin);
364  float ylow = ysign * (half_shift * 0.5 + (bld - 0.5) - (2 + (plq - (plq == 8)) / 2) * 0.1);
365  float yhigh = ysign * (half_shift * 0.5 + (bld - 0.5) + (2 + (plq - (plq == 8)) / 2) * 0.1);
366  draw_line(x, x, ylow, yhigh, 1, 2);
367  }
368  // Make a BOX around ROC 0
369  for (int plq = 1, nplq = 7; plq <= nplq; ++plq) {
370  float x1 =
371  xsign * (half_shift * 0.5 + dsk - 1 + (first_roc - 3 + 2 * plq + (plq == 1)) / (float)nbin);
372  float x2 =
373  xsign * (half_shift * 0.5 + dsk - 1 + (first_roc - 3 + 2 * plq + (plq == 1) + 1) / (float)nbin);
374  int sign = xsign * ysign * ((plq % 2) ? 1 : -1);
375  float y1 = ysign * (half_shift * 0.5 + (bld - 0.5) + sign * (2 + plq / 2) * 0.1);
376  float y2 = ysign * (half_shift * 0.5 + (bld - 0.5) + sign * (plq / 2) * 0.1);
377  //draw_line(x1, x2, y1, y1, 1);
378  draw_line(x1, x2, y2, y2, 1);
379  //draw_line(x1, x1, y1, y2, 1);
380  draw_line(x2, x2, y1, y2, 1);
381  }
382  }
383  } else if (phase == 1) {
384  if (ring == 0) { // both
385  for (int ring = 1; ring <= 2; ++ring)
386  for (int bld = 1, nbld = 5 + ring * 6; bld <= nbld; ++bld) {
387  float scale = (ring == 1) ? 1.5 : 1;
388  Color_t p1_color = 1, p2_color = 1;
389  // Horizontal lines
390  // Panel 2 has dashed mid-plane
391  float x1 = xsign * (half_shift * 0.5 + dsk - 1 + (ring - 1) * 0.5);
392  float x2 = xsign * (half_shift * 0.5 + dsk - 1 + ring * 0.5);
393  int sign = ysign;
394  float y1 = ysign * (half_shift * 0.5 - 0.5 + scale * bld + sign * 0.5);
395  //float yp1_mid = ysign * (half_shift*0.5 - 0.5 + scale*bld + sign*0.25);
396  float y2 = ysign * (half_shift * 0.5 - 0.5 + scale * bld);
397  float yp2_mid = ysign * (half_shift * 0.5 - 0.5 + scale * bld - sign * 0.25);
398  float y3 = ysign * (half_shift * 0.5 - 0.5 + scale * bld - sign * 0.5);
399  draw_line(x1, x2, y1, y1, 1, 1, p1_color);
400  //draw_line(x1, x2, yp1_mid, yp1_mid, 1, 3);
401  draw_line(x1, x2, y2, y2, 1, 1, p1_color);
402  draw_line(x1, x2, yp2_mid, yp2_mid, 1, 2);
403  draw_line(x1, x2, y3, y3, 1, 1, p2_color);
404  // Vertical lines
405  float x = xsign * (half_shift * 0.5 + dsk - 1 + (ring - 1) * 0.5);
406  draw_line(x, x, y1, y2, 1, 1, p1_color);
407  draw_line(x, x, y2, y3, 1, 1, p2_color);
408  if (ring == 2) {
409  //draw_line(x, x, y2, y3, 1, 1, p1_color);
410  x = xsign * (half_shift * 0.5 + dsk);
411  draw_line(x, x, y1, y2, 1, 1, p1_color);
412  draw_line(x, x, y2, y3, 1, 1, p2_color);
413  }
414  // Make a BOX around ROC 0
415  x1 = xsign * (half_shift * 0.5 + dsk - 1 + ring * 0.5 - 1 / 16.);
416  x2 = xsign * (half_shift * 0.5 + dsk - 1 + ring * 0.5);
417  float y1_p1 = ysign * (half_shift * 0.5 - 0.5 + scale * bld + sign * 0.25);
418  float y2_p1 = ysign * (half_shift * 0.5 - 0.5 + scale * bld + sign * 0.25 + xsign * ysign * 0.25);
419  draw_line(x1, x2, y1_p1, y1_p1, 1);
420  //draw_line(x1, x2, y2_p1, y2_p1, 1);
421  draw_line(x1, x1, y1_p1, y2_p1, 1);
422  //draw_line(x2, x2, y1_p1, y2_p1, 1);
423  float y1_p2 = ysign * (half_shift * 0.5 - 0.5 + scale * bld - sign * 0.25);
424  float y2_p2 = ysign * (half_shift * 0.5 - 0.5 + scale * bld - sign * 0.25 - xsign * ysign * 0.25);
425  draw_line(x1, x2, y1_p2, y1_p2, 1);
426  //draw_line(x1, x2, y2_p2, y2_p2, 1);
427  draw_line(x1, x1, y1_p2, y2_p2, 1);
428  //draw_line(x2, x2, y1_p2, y2_p2, 1);
429  }
430  } else { // only one ring, 1 or 2
431  for (int bld = 1, nbld = 5 + ring * 6; bld <= nbld; ++bld) {
432  Color_t p1_color = 1, p2_color = 1;
433  // Horizontal lines
434  // Panel 2 has dashed mid-plane
435  float x1 = xsign * (half_shift * 0.5 + dsk - 1);
436  float x2 = xsign * (half_shift * 0.5 + dsk);
437  int sign = ysign;
438  float y1 = ysign * (half_shift * 0.5 - 0.5 + bld + sign * 0.5);
439  //float yp1_mid = ysign * (half_shift*0.5 - 0.5 + bld + sign*0.25);
440  float y2 = ysign * (half_shift * 0.5 - 0.5 + bld);
441  float yp2_mid = ysign * (half_shift * 0.5 - 0.5 + bld - sign * 0.25);
442  float y3 = ysign * (half_shift * 0.5 - 0.5 + bld - sign * 0.5);
443  draw_line(x1, x2, y1, y1, 1, 1, p1_color);
444  //draw_line(x1, x2, yp1_mid, yp1_mid, 1, 3);
445  draw_line(x1, x2, y2, y2, 1, 1, p1_color);
446  draw_line(x1, x2, yp2_mid, yp2_mid, 1, 2);
447  draw_line(x1, x2, y3, y3, 1, 1, p2_color);
448  // Vertical lines
449  float x = xsign * (half_shift * 0.5 + dsk - 1);
450  draw_line(x, x, y1, y2, 1, 1, p1_color);
451  draw_line(x, x, y2, y3, 1, 1, p2_color);
452  if (ring == 2) {
453  //draw_line(x, x, y2, y3, 1, 1, p1_color);
454  x = xsign * (half_shift * 0.5 + dsk);
455  draw_line(x, x, y1, y2, 1, 1, p1_color);
456  draw_line(x, x, y2, y3, 1, 1, p2_color);
457  }
458  // Make a BOX around ROC 0
459  x1 = xsign * (half_shift * 0.5 + dsk - 1 / 8.);
460  x2 = xsign * (half_shift * 0.5 + dsk);
461  float y1_p1 = ysign * (half_shift * 0.5 - 0.5 + bld + sign * 0.25);
462  float y2_p1 = ysign * (half_shift * 0.5 - 0.5 + bld + sign * 0.25 + xsign * ysign * 0.25);
463  draw_line(x1, x2, y1_p1, y1_p1, 1);
464  //draw_line(x1, x2, y2_p1, y2_p1, 1);
465  draw_line(x1, x1, y1_p1, y2_p1, 1);
466  //draw_line(x2, x2, y1_p1, y2_p1, 1);
467  float y1_p2 = ysign * (half_shift * 0.5 - 0.5 + bld - sign * 0.25);
468  float y2_p2 = ysign * (half_shift * 0.5 - 0.5 + bld - sign * 0.25 - xsign * ysign * 0.25);
469  draw_line(x1, x2, y1_p2, y1_p2, 1);
470  //draw_line(x1, x2, y2_p2, y2_p2, 1);
471  draw_line(x1, x1, y1_p2, y2_p2, 1);
472  //draw_line(x2, x2, y1_p2, y2_p2, 1);
473  }
474  }
475  }
476  }
477  }
478  // Special shifted "rebin" for Phase 0
479  // Y axis should always have at least half-roc granularity because
480  // there are half-ROC size shifts implemented in the coordinates
481  // To remove this and show full ROC granularity
482  // We merge bin contents in each pair of bins corresponding to one ROC
483  // TODO: make sure this works for Profiles
484  if (phase == 0 && h->GetNbinsY() == 250 && h->GetNbinsX() == 80) {
485  int nentries = h->GetEntries();
486  for (int binx = 1; binx <= 80; ++binx) {
487  double sum = 0;
488  for (int biny = 1; biny <= 250; ++biny) {
489  bool odd_nrocy = (binx - 1 < 40) != (((binx - 1) / 4) % 2);
490  if (biny % 2 == odd_nrocy)
491  sum += h->GetBinContent(binx, biny);
492  else {
493  sum += h->GetBinContent(binx, biny);
494  if (sum) {
495  h->SetBinContent(binx, biny, sum);
496  h->SetBinContent(binx, biny - 1, sum);
497  }
498  sum = 0;
499  }
500  }
501  }
502  h->SetEntries(nentries);
503  }
504  }
505  }
506 
507  /*--------------------------------------------------------------------*/
508  void adjustCanvasMargins(TVirtualPad* pad, float top, float bottom, float left, float right)
509  /*--------------------------------------------------------------------*/
510  {
511  if (top > 0)
512  pad->SetTopMargin(top);
513  if (bottom > 0)
514  pad->SetBottomMargin(bottom);
515  if (left > 0)
516  pad->SetLeftMargin(left);
517  if (right > 0)
518  pad->SetRightMargin(right);
519  }
520 
521  /*--------------------------------------------------------------------*/
522  void adjustStats(TPaveStats* stats, float X1, float Y1, float X2, float Y2)
523  /*--------------------------------------------------------------------*/
524  {
525  stats->SetX1NDC(X1); //new x start position
526  stats->SetY1NDC(Y1); //new y start position
527  stats->SetX2NDC(X2); //new x end position
528  stats->SetY2NDC(Y2); //new y end position
529  }
530 
531  /*--------------------------------------------------------------------*/
532  std::pair<float, float> getExtrema(TH1* h1, TH1* h2)
533  /*--------------------------------------------------------------------*/
534  {
535  float theMax(-9999.);
536  float theMin(9999.);
537  theMax = h1->GetMaximum() > h2->GetMaximum() ? h1->GetMaximum() : h2->GetMaximum();
538  theMin = h1->GetMinimum() < h2->GetMaximum() ? h1->GetMinimum() : h2->GetMinimum();
539 
540  float add_min = theMin > 0. ? -0.05 : 0.05;
541  float add_max = theMax > 0. ? 0.05 : -0.05;
542 
543  auto result = std::make_pair(theMin * (1 + add_min), theMax * (1 + add_max));
544  return result;
545  }
546 
547  /*--------------------------------------------------------------------*/
549  /*--------------------------------------------------------------------*/
550  {
551  hist->SetStats(kFALSE);
552  hist->SetLineWidth(2);
553  hist->GetXaxis()->CenterTitle(true);
554  hist->GetYaxis()->CenterTitle(true);
555  hist->GetXaxis()->SetTitleFont(42);
556  hist->GetYaxis()->SetTitleFont(42);
557  hist->GetXaxis()->SetTitleSize(0.05);
558  hist->GetYaxis()->SetTitleSize(0.05);
559  hist->GetXaxis()->SetTitleOffset(1.1);
560  hist->GetYaxis()->SetTitleOffset(1.3);
561  hist->GetXaxis()->SetLabelFont(42);
562  hist->GetYaxis()->SetLabelFont(42);
563  hist->GetYaxis()->SetLabelSize(.05);
564  hist->GetXaxis()->SetLabelSize(.05);
565 
566  if (hist->InheritsFrom(TH2::Class())) {
567  hist->GetZaxis()->SetLabelFont(42);
568  hist->GetZaxis()->SetLabelFont(42);
569  hist->GetZaxis()->SetLabelSize(.05);
570  hist->GetZaxis()->SetLabelSize(.05);
571  }
572  }
573 
574  enum DetType { t_barrel = 0, t_forward = 1, t_all = 2 };
575 
576  enum regions {
577  BPixL1o, //0 Barrel Pixel Layer 1 outer
578  BPixL1i, //1 Barrel Pixel Layer 1 inner
579  BPixL2o, //2 Barrel Pixel Layer 2 outer
580  BPixL2i, //3 Barrel Pixel Layer 2 inner
581  BPixL3o, //4 Barrel Pixel Layer 3 outer
582  BPixL3i, //5 Barrel Pixel Layer 3 inner
583  BPixL4o, //6 Barrel Pixel Layer 4 outer
584  BPixL4i, //7 Barrel Pixel Layer 4 inner
585  FPixmL1, //8 Forward Pixel Minus side Disk 1
586  FPixmL2, //9 Forward Pixel Minus side Disk 2
587  FPixmL3, //10 Forward Pixel Minus side Disk 3
588  FPixpL1, //11 Forward Pixel Plus side Disk 1
589  FPixpL2, //12 Forward Pixel Plus side Disk 2
590  FPixpL3, //13 Forward Pixel Plus side Disk 3
591  NUM_OF_REGIONS //14 -- default
592  };
593 
594  /*--------------------------------------------------------------------*/
596  /*--------------------------------------------------------------------*/
597  {
598  switch (e) {
599  case SiPixelPI::BPixL1o:
600  return "BPix L1/o";
601  case SiPixelPI::BPixL1i:
602  return "BPix L1/i";
603  case SiPixelPI::BPixL2o:
604  return "BPix L2/o";
605  case SiPixelPI::BPixL2i:
606  return "BPix L2/i";
607  case SiPixelPI::BPixL3o:
608  return "BPix L3/o";
609  case SiPixelPI::BPixL3i:
610  return "BPix L3/i";
611  case SiPixelPI::BPixL4o:
612  return "BPix L4/o";
613  case SiPixelPI::BPixL4i:
614  return "BPix L4/i";
615  case SiPixelPI::FPixmL1:
616  return "FPix- D1";
617  case SiPixelPI::FPixmL2:
618  return "FPix- D2";
619  case SiPixelPI::FPixmL3:
620  return "FPix- D3";
621  case SiPixelPI::FPixpL1:
622  return "FPix+ D1";
623  case SiPixelPI::FPixpL2:
624  return "FPix+ D2";
625  case SiPixelPI::FPixpL3:
626  return "FPix+ D3";
627  default:
628  edm::LogWarning("LogicError") << "Unknown partition: " << e;
629  return "";
630  }
631  }
632 
633  /*--------------------------------------------------------------------*/
634  bool isBPixOuterLadder(const DetId& detid, const TrackerTopology& tTopo, bool isPhase0)
635  /*--------------------------------------------------------------------*/
636  {
637  bool isOuter = false;
638  int layer = tTopo.pxbLayer(detid.rawId());
639  bool odd_ladder = tTopo.pxbLadder(detid.rawId()) % 2;
640  if (isPhase0) {
641  if (layer == 2)
642  isOuter = !odd_ladder;
643  else
644  isOuter = odd_ladder;
645  } else {
646  if (layer == 4)
647  isOuter = odd_ladder;
648  else
649  isOuter = !odd_ladder;
650  }
651  return isOuter;
652  }
653 
654  // ancillary struct to manage the topology
655  // info in a more compact way
656 
657  struct topolInfo {
658  private:
659  uint32_t m_rawid;
661  int m_layer;
662  int m_side;
663  int m_ring;
666 
667  public:
668  void init();
669  void fillGeometryInfo(const DetId& detId, const TrackerTopology& tTopo, const SiPixelPI::phase& ph);
671  bool sanityCheck();
672  void printAll();
673  virtual ~topolInfo() {}
674  };
675 
676  /*--------------------------------------------------------------------*/
678  /*--------------------------------------------------------------------*/
679  {
680  std::cout << " detId:" << m_rawid << " subdetid: " << m_subdetid << " layer: " << m_layer << " side: " << m_side
681  << " ring: " << m_ring << " isInternal:" << m_isInternal << std::endl;
682  }
683 
684  /*--------------------------------------------------------------------*/
686  /*--------------------------------------------------------------------*/
687  {
688  m_rawid = 0;
689  m_subdetid = -1;
690  m_layer = -1;
691  m_side = -1;
692  m_ring = -1;
693  m_isInternal = false;
694  };
695 
696  /*--------------------------------------------------------------------*/
698  /*--------------------------------------------------------------------*/
699  {
700  if (m_layer == 0 || (m_subdetid == 1 && m_layer > 4) || (m_subdetid == 2 && m_layer > 3)) {
701  return false;
702  } else {
703  return true;
704  }
705  }
706  /*--------------------------------------------------------------------*/
707  void topolInfo::fillGeometryInfo(const DetId& detId, const TrackerTopology& tTopo, const SiPixelPI::phase& ph)
708  /*--------------------------------------------------------------------*/
709  {
710  // set the phase
711  m_Phase = const_cast<SiPixelPI::phase*>(&ph);
712  unsigned int subdetId = static_cast<unsigned int>(detId.subdetId());
713 
714  m_rawid = detId.rawId();
715  m_subdetid = subdetId;
716  if (subdetId == PixelSubdetector::PixelBarrel) {
717  m_layer = tTopo.pxbLayer(detId.rawId());
719  } else if (subdetId == PixelSubdetector::PixelEndcap) {
720  m_layer = tTopo.pxfDisk(detId.rawId());
721  m_side = tTopo.pxfSide(detId.rawId());
722  } else
723  edm::LogWarning("LogicError") << "Unknown subdetid: " << subdetId;
724  }
725 
726  // ------------ method to assign a partition based on the topology struct info ---------------
727 
728  /*--------------------------------------------------------------------*/
730  /*--------------------------------------------------------------------*/
731  {
733 
734  if (m_Phase == nullptr) {
735  throw cms::Exception("LogicError") << "Cannot call filterThePartition BEFORE filling the geometry info!";
736  }
737 
738  // BPix
739  if (m_subdetid == 1) {
740  switch (m_layer) {
741  case 1:
743  break;
744  case 2:
746  break;
747  case 3:
749  break;
750  case 4:
752  break;
753  default:
754  edm::LogWarning("LogicError") << "Unknow BPix layer: " << m_layer;
755  break;
756  }
757  // FPix
758  } else if (m_subdetid == 2) {
759  switch (m_layer) {
760  case 1:
762  break;
763  case 2:
765  break;
766  case 3:
768  break;
769  default:
771  // warning message only if the phase2 is < 2
772  edm::LogWarning("LogicError") << "Unknow FPix disk: " << m_layer;
773  }
774  break;
775  }
776  }
777  return ret;
778  }
779 
780  /*--------------------------------------------------------------------*/
781  void displayNotSupported(TCanvas& canv, const unsigned int size)
782  /*--------------------------------------------------------------------*/
783  {
784  std::string phase = (size < SiPixelPI::phase1size) ? "Phase-0" : "Phase-2";
785  canv.cd();
786  TLatex t2;
787  t2.SetTextAlign(21);
788  t2.SetTextSize(0.1);
789  t2.SetTextAngle(45);
790  t2.SetTextColor(kRed);
791  t2.DrawLatexNDC(0.6, 0.50, Form("%s NOT SUPPORTED!", phase.c_str()));
792  }
793 
794  /*--------------------------------------------------------------------*/
795  template <typename T>
796  std::pair<T, T> findMinMaxInMap(const std::map<unsigned int, T>& theMap)
797  /*--------------------------------------------------------------------*/
798  {
799  using pairtype = std::pair<unsigned int, T>;
800  auto max = *std::max_element(
801  theMap.begin(), theMap.end(), [](const pairtype& p1, const pairtype& p2) { return p1.second < p2.second; });
802  auto min = *std::min_element(
803  theMap.begin(), theMap.end(), [](const pairtype& p1, const pairtype& p2) { return p1.second < p2.second; });
804  return std::make_pair(min.second, max.second);
805  }
806 
807  /*--------------------------------------------------------------------*/
809  /*--------------------------------------------------------------------*/
810  {
811  std::transform(answer.begin(), answer.end(), answer.begin(), [](unsigned char x) { return ::tolower(x); });
812 
813  bool answer_valid = (answer == "y") || (answer == "n") || (answer == "yes") || (answer == "no") ||
814  (answer == "true") || (answer == "false") || (answer == "1") || (answer == "0");
815 
816  result = answer_valid && (answer[0] == 'y' || answer[0] == 't' || answer[0] == '1');
817  return answer_valid;
818  }
819 }; // namespace SiPixelPI
820 #endif
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:542
SiPixelPI::unpack
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
Definition: SiPixelPayloadInspectorHelper.h:114
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
SiPixelPI::topolInfo::m_subdetid
int m_subdetid
Definition: SiPixelPayloadInspectorHelper.h:660
SiPixelPI::PhaseInfo::pathToTopoXML
const char * pathToTopoXML()
Definition: SiPixelPayloadInspectorHelper.h:81
SiPixelPI::one
Definition: SiPixelPayloadInspectorHelper.h:39
SiPixelPI::t_barrel
Definition: SiPixelPayloadInspectorHelper.h:574
PixelSubdetector.h
PixelBarrelName.h
SiPixelPI::signed_disk
int signed_disk(const DetId &detid, const TrackerTopology &tTopo_, bool phase_)
Definition: SiPixelPayloadInspectorHelper.h:198
MessageLogger.h
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
SiPixelPI::PhaseInfo::isPhase1Comparison
const bool isPhase1Comparison(const PhaseInfo &theOtherPhase) const
Definition: SiPixelPayloadInspectorHelper.h:93
PixelSubdetector::PixelEndcap
Definition: PixelSubdetector.h:11
HLT_FULL_cff.Class
Class
Definition: HLT_FULL_cff.py:8427
SiPixelPI::PhaseInfo::~PhaseInfo
virtual ~PhaseInfo()
Definition: SiPixelPayloadInspectorHelper.h:68
PixelSubdetector::PixelBarrel
Definition: PixelSubdetector.h:11
L1EGammaCrystalsEmulatorProducer_cfi.scale
scale
Definition: L1EGammaCrystalsEmulatorProducer_cfi.py:10
SiPixelPI::BPixL4i
Definition: SiPixelPayloadInspectorHelper.h:584
TrackerTopology::pxfSide
unsigned int pxfSide(const DetId &id) const
Definition: TrackerTopology.h:192
SiPixelPI::topolInfo::m_layer
int m_layer
Definition: SiPixelPayloadInspectorHelper.h:661
SiPixelPI::ring
int ring(const DetId &detid, const TrackerTopology &tTopo_, bool phase_)
Definition: SiPixelPayloadInspectorHelper.h:163
SiPixelPI
Definition: SiPixelPayloadInspectorHelper.h:37
min
T min(T a, T b)
Definition: MathUtil.h:58
SiPixelPI::topolInfo::m_isInternal
bool m_isInternal
Definition: SiPixelPayloadInspectorHelper.h:664
testProducerWithPsetDescEmpty_cfi.x2
x2
Definition: testProducerWithPsetDescEmpty_cfi.py:28
TrackerTopology
Definition: TrackerTopology.h:16
SiPixelPI::topolInfo::m_Phase
SiPixelPI::phase * m_Phase
Definition: SiPixelPayloadInspectorHelper.h:665
TrackerTopology::pxbLadder
unsigned int pxbLadder(const DetId &id) const
Definition: TrackerTopology.h:155
mod
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
gather_cfg.cout
cout
Definition: gather_cfg.py:144
SiPixelPI::getStringFromRegionEnum
std::string getStringFromRegionEnum(SiPixelPI::regions e)
Definition: SiPixelPayloadInspectorHelper.h:595
SiPixelPI::topolInfo::fillGeometryInfo
void fillGeometryInfo(const DetId &detId, const TrackerTopology &tTopo, const SiPixelPI::phase &ph)
Definition: SiPixelPayloadInspectorHelper.h:707
SiPixelPI::FPixpL3
Definition: SiPixelPayloadInspectorHelper.h:590
SiPixelPI::t_all
Definition: SiPixelPayloadInspectorHelper.h:574
SiPixelPI::topolInfo::~topolInfo
virtual ~topolInfo()
Definition: SiPixelPayloadInspectorHelper.h:673
PixelBarrelName
Definition: PixelBarrelName.h:16
SiPixelPI::BPixL1i
Definition: SiPixelPayloadInspectorHelper.h:578
Validation_hcalonly_cfi.sign
sign
Definition: Validation_hcalonly_cfi.py:32
SiPixelPI::draw_line
void draw_line(double x1, double x2, double y1, double y2, int width=2, int style=1, int color=1)
Definition: SiPixelPayloadInspectorHelper.h:208
PixelEndcapName::halfCylinder
HalfCylinder halfCylinder() const
Definition: PixelEndcapName.h:42
SiPixelPI::zero
Definition: SiPixelPayloadInspectorHelper.h:39
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
SiPixelPI::displayNotSupported
void displayNotSupported(TCanvas &canv, const unsigned int size)
Definition: SiPixelPayloadInspectorHelper.h:781
SiPixelPI::topolInfo::printAll
void printAll()
Definition: SiPixelPayloadInspectorHelper.h:677
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
SiPixelPI::phase0size
static const unsigned int phase0size
Definition: SiPixelPayloadInspectorHelper.h:42
PixelEndcapName::bladeName
int bladeName() const
blade id
Definition: PixelEndcapName.h:48
DivergingColor.red
list red
Definition: DivergingColor.py:172
SiPixelPI::checkAnswerOK
bool checkAnswerOK(std::string &answer, bool &result)
Definition: SiPixelPayloadInspectorHelper.h:808
FileInPath.h
TrackerTopology::pxbLayer
unsigned int pxbLayer(const DetId &id) const
Definition: TrackerTopology.h:144
TrackerTopology::pxfPanel
unsigned int pxfPanel(const DetId &id) const
Definition: TrackerTopology.h:450
SiPixelPI::BPixL3i
Definition: SiPixelPayloadInspectorHelper.h:582
SiPixelPI::PhaseInfo::m_detsize
size_t m_detsize
Definition: SiPixelPayloadInspectorHelper.h:110
SiPixelPI::PhaseInfo::phase
const SiPixelPI::phase phase() const
Definition: SiPixelPayloadInspectorHelper.h:69
DetId
Definition: DetId.h:17
TrackerTopology.h
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
SiPixelPI::BPixL3o
Definition: SiPixelPayloadInspectorHelper.h:581
testProducerWithPsetDescEmpty_cfi.y1
y1
Definition: testProducerWithPsetDescEmpty_cfi.py:29
SiPixelPI::isBPixOuterLadder
bool isBPixOuterLadder(const DetId &detid, const TrackerTopology &tTopo, bool isPhase0)
Definition: SiPixelPayloadInspectorHelper.h:634
PixelEndcapName
Definition: PixelEndcapName.h:16
SiPixelPI::quadrant
int quadrant(const DetId &detid, const TrackerTopology *tTopo_, bool phase_)
Definition: SiPixelPayloadInspectorHelper.h:124
SiPixelPI::signed_blade
int signed_blade(const DetId &detid, const TrackerTopology &tTopo_, bool phase_)
Definition: SiPixelPayloadInspectorHelper.h:178
SiPixelPI::topolInfo::m_rawid
uint32_t m_rawid
Definition: SiPixelPayloadInspectorHelper.h:659
SiPixelPI::phase2size
static const unsigned int phase2size
Definition: SiPixelPayloadInspectorHelper.h:44
p2
double p2[4]
Definition: TauolaWrapper.h:90
SiPixelPI::BPixL1o
Definition: SiPixelPayloadInspectorHelper.h:577
writeEcalDQMStatus.since
since
Definition: writeEcalDQMStatus.py:53
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
h
SiPixelPI::FPixmL1
Definition: SiPixelPayloadInspectorHelper.h:585
SiPixelPI::topolInfo::filterThePartition
SiPixelPI::regions filterThePartition()
Definition: SiPixelPayloadInspectorHelper.h:729
PixelBarrelName::ladderName
int ladderName() const
ladder id (index in phi)
Definition: PixelBarrelName.h:49
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
style
Definition: style.py:1
SiPixelPI::FPixpL1
Definition: SiPixelPayloadInspectorHelper.h:588
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
submit.answer
answer
Definition: submit.py:45
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelPI::phase
phase
Definition: SiPixelPayloadInspectorHelper.h:39
testProducerWithPsetDescEmpty_cfi.y2
y2
Definition: testProducerWithPsetDescEmpty_cfi.py:30
SiPixelPI::FPixpL2
Definition: SiPixelPayloadInspectorHelper.h:589
Time.h
SiPixelPI::FPixmL2
Definition: SiPixelPayloadInspectorHelper.h:586
PixelBarrelName::shell
Shell shell() const
Definition: PixelBarrelName.h:40
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
SiPixelPI::phase1size
static const unsigned int phase1size
Definition: SiPixelPayloadInspectorHelper.h:43
gpuVertexFinder::hist
__shared__ Hist hist
Definition: gpuClusterTracksDBSCAN.h:48
cond::time::kLowMask
const Time_t kLowMask(0xFFFFFFFF)
cond::Time_t
unsigned long long Time_t
Definition: Time.h:14
SiPixelPI::BPixL4o
Definition: SiPixelPayloadInspectorHelper.h:583
TrackerTopology::pxfModule
unsigned int pxfModule(const DetId &id) const
Definition: TrackerTopology.h:163
DivergingColor.blue
list blue
Definition: DivergingColor.py:173
TrackerTopology::pxfDisk
unsigned int pxfDisk(const DetId &id) const
Definition: TrackerTopology.h:446
SiPixelPI::PhaseInfo
Definition: SiPixelPayloadInspectorHelper.h:48
p1
double p1[4]
Definition: TauolaWrapper.h:89
SiPixelPI::signed_blade_panel
int signed_blade_panel(const DetId &detid, const TrackerTopology &tTopo_, bool phase_)
Definition: SiPixelPayloadInspectorHelper.h:188
SiPixelPI::regions
regions
Definition: SiPixelPayloadInspectorHelper.h:576
dqmMemoryStats.stats
stats
Definition: dqmMemoryStats.py:134
SiPixelPI::topolInfo::sanityCheck
bool sanityCheck()
Definition: SiPixelPayloadInspectorHelper.h:697
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
PixelBarrelName::moduleName
int moduleName() const
module id (index in z)
Definition: PixelBarrelName.h:46
SiPixelPI::adjustStats
void adjustStats(TPaveStats *stats, float X1, float Y1, float X2, float Y2)
Definition: SiPixelPayloadInspectorHelper.h:522
SiPixelPI::PhaseInfo::PhaseInfo
PhaseInfo(unsigned int size)
Definition: SiPixelPayloadInspectorHelper.h:50
SiPixelPI::NUM_OF_REGIONS
Definition: SiPixelPayloadInspectorHelper.h:591
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
SiPixelPI::signed_module
int signed_module(const DetId &detid, const TrackerTopology &tTopo_, bool phase_)
Definition: SiPixelPayloadInspectorHelper.h:147
SiPixelPI::t_forward
Definition: SiPixelPayloadInspectorHelper.h:574
SiPixelPI::two
Definition: SiPixelPayloadInspectorHelper.h:39
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SiPixelPI::topolInfo
Definition: SiPixelPayloadInspectorHelper.h:657
SiPixelPI::PhaseInfo::isComparedWithPhase2
const bool isComparedWithPhase2(const PhaseInfo &theOtherPhase) const
Definition: SiPixelPayloadInspectorHelper.h:100
Exception
Definition: hltDiff.cc:245
SiPixelPI::makeNicePlotStyle
void makeNicePlotStyle(TH1 *hist)
Definition: SiPixelPayloadInspectorHelper.h:548
SiPixelPI::FPixmL3
Definition: SiPixelPayloadInspectorHelper.h:587
SiPixelPI::getExtrema
std::pair< float, float > getExtrema(TH1 *h1, TH1 *h2)
Definition: SiPixelPayloadInspectorHelper.h:532
SiPixelPI::dress_occup_plot
void dress_occup_plot(TCanvas &canv, TH2 *h, int lay, int ring=0, int phase=0, bool half_shift=true, bool mark_zero=true, bool standard_palette=true)
Definition: SiPixelPayloadInspectorHelper.h:218
SiPixelPI::topolInfo::m_side
int m_side
Definition: SiPixelPayloadInspectorHelper.h:662
SiPixelPI::DetType
DetType
Definition: SiPixelPayloadInspectorHelper.h:574
mps_fire.result
result
Definition: mps_fire.py:311
SiPixelPI::BPixL2i
Definition: SiPixelPayloadInspectorHelper.h:580
SiPixelPI::topolInfo::init
void init()
Definition: SiPixelPayloadInspectorHelper.h:685
lumi
Definition: LumiSectionData.h:20
SiPixelPI::topolInfo::m_ring
int m_ring
Definition: SiPixelPayloadInspectorHelper.h:663
SiPixelPI::signed_ladder
int signed_ladder(const DetId &detid, const TrackerTopology &tTopo_, bool phase_)
Definition: SiPixelPayloadInspectorHelper.h:135
SiPixelPI::PhaseInfo::PhaseInfo
PhaseInfo(const phase &thePhase)
Definition: SiPixelPayloadInspectorHelper.h:52
SiPixelPI::adjustCanvasMargins
void adjustCanvasMargins(TVirtualPad *pad, float top, float bottom, float left, float right)
Definition: SiPixelPayloadInspectorHelper.h:508
PixelEndcapName::ringName
int ringName() const
ring Id
Definition: PixelEndcapName.h:57
SiPixelPI::BPixL2o
Definition: SiPixelPayloadInspectorHelper.h:579
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
PixelEndcapName.h
SiPixelPI::findMinMaxInMap
std::pair< T, T > findMinMaxInMap(const std::map< unsigned int, T > &theMap)
Definition: SiPixelPayloadInspectorHelper.h:796