CMS 3D CMS Logo

Classes | Enumerations | Functions | Variables
AlignmentPI Namespace Reference

Classes

struct  TkAlBarycenters
 
struct  topolInfo
 

Enumerations

enum  coordinate {
  t_x = 1, t_y = 2, t_z = 3, rot_alpha = 4,
  rot_beta = 5, rot_gamma = 6
}
 
enum  index {
  XX = 1, XY = 2, XZ = 3, YZ = 4,
  YY = 5, ZZ = 6
}
 
enum  PARTITION {
  PARTITION::BPIX, PARTITION::FPIXp, PARTITION::FPIXm, PARTITION::TIB,
  PARTITION::TIDp, PARTITION::TIDm, PARTITION::TOB, PARTITION::TECp,
  PARTITION::TECm, PARTITION::LAST = TECm
}
 
enum  partitions {
  BPix = 1, FPix = 2, TIB = 3, TID = 4,
  TOB = 5, TEC = 6
}
 
enum  regions {
  BPixL1o, BPixL1i, BPixL2o, BPixL2i,
  BPixL3o, BPixL3i, BPixL4o, BPixL4i,
  FPixmL1, FPixmL2, FPixmL3, FPixpL1,
  FPixpL2, FPixpL3, TIBL1Ro, TIBL1Ri,
  TIBL1So, TIBL1Si, TIBL2Ro, TIBL2Ri,
  TIBL2So, TIBL2Si, TIBL3o, TIBL3i,
  TIBL4o, TIBL4i, TOBL1Ro, TOBL1Ri,
  TOBL1So, TOBL1Si, TOBL2Ro, TOBL2Ri,
  TOBL2So, TOBL2Si, TOBL3o, TOBL3i,
  TOBL4o, TOBL4i, TOBL5o, TOBL5i,
  TOBL6o, TOBL6i, TIDmR1R, TIDmR1S,
  TIDmR2R, TIDmR2S, TIDmR3, TIDpR1R,
  TIDpR1S, TIDpR2R, TIDpR2S, TIDpR3,
  TECmR1R, TECmR1S, TECmR2R, TECmR2S,
  TECmR3, TECmR4, TECmR5, TECmR6,
  TECmR7, TECpR1R, TECpR1S, TECpR2R,
  TECpR2S, TECpR3, TECpR4, TECpR5,
  TECpR6, TECpR7, StripDoubleSide, NUM_OF_REGIONS
}
 

Functions

std::pair< double, double > calculatePosition (TVirtualPad *myPad, int boundary)
 
std::pair< int, int > getIndices (AlignmentPI::index i)
 
std::string getStringFromCoordinate (AlignmentPI::coordinate coord)
 
std::string getStringFromIndex (AlignmentPI::index i)
 
std::string getStringFromPart (AlignmentPI::partitions i)
 
std::string getStringFromRegionEnum (AlignmentPI::regions e)
 
std::pair< float, float > getTheRange (std::map< uint32_t, float > values, const float nsigma)
 
bool isBPixOuterLadder (const DetId &detid, const TrackerTopology &tTopo, bool isPhase0)
 
void makeNicePlotStyle (TH1 *hist, int color)
 
void makeNiceStats (TH1F *hist, AlignmentPI::partitions part, int color)
 
std::ostream & operator<< (std::ostream &o, PARTITION x)
 

Variables

static const float cmToUm = 10000
 
const PARTITION PARTITIONS [(int) PARTITION::LAST+1]
 
static const unsigned int phase0size = 19876
 

Enumeration Type Documentation

◆ coordinate

Enumerator
t_x 
t_y 
t_z 
rot_alpha 
rot_beta 
rot_gamma 

Definition at line 33 of file AlignmentPayloadInspectorHelper.h.

33  {
34  t_x = 1,
35  t_y = 2,
36  t_z = 3,
37  rot_alpha = 4,
38  rot_beta = 5,
39  rot_gamma = 6,
40  };

◆ index

Enumerator
XX 
XY 
XZ 
YZ 
YY 
ZZ 

Definition at line 46 of file AlignmentPayloadInspectorHelper.h.

46 { XX = 1, XY = 2, XZ = 3, YZ = 4, YY = 5, ZZ = 6 };

◆ PARTITION

Enumerator
BPIX 
FPIXp 
FPIXm 
TIB 
TIDp 
TIDm 
TOB 
TECp 
TECm 
LAST 

Definition at line 50 of file AlignmentPayloadInspectorHelper.h.

50  {
51  BPIX, // 0 Barrel Pixel
52  FPIXp, // 1 Forward Pixel Plus
53  FPIXm, // 2 Forward Pixel Minus
54  TIB, // 3 Tracker Inner Barrel
55  TIDp, // 4 Tracker Inner Disks Plus
56  TIDm, // 5 Tracker Inner Disks Minus
57  TOB, // 6 Tracker Outer Barrel
58  TECp, // 7 Tracker Endcaps Plus
59  TECm, // 8 Tracker Endcaps Minus
60  LAST = TECm
61  };

◆ partitions

Enumerator
BPix 
FPix 
TIB 
TID 
TOB 
TEC 

Definition at line 48 of file AlignmentPayloadInspectorHelper.h.

48 { BPix = 1, FPix = 2, TIB = 3, TID = 4, TOB = 5, TEC = 6 };

◆ regions

Enumerator
BPixL1o 
BPixL1i 
BPixL2o 
BPixL2i 
BPixL3o 
BPixL3i 
BPixL4o 
BPixL4i 
FPixmL1 
FPixmL2 
FPixmL3 
FPixpL1 
FPixpL2 
FPixpL3 
TIBL1Ro 
TIBL1Ri 
TIBL1So 
TIBL1Si 
TIBL2Ro 
TIBL2Ri 
TIBL2So 
TIBL2Si 
TIBL3o 
TIBL3i 
TIBL4o 
TIBL4i 
TOBL1Ro 
TOBL1Ri 
TOBL1So 
TOBL1Si 
TOBL2Ro 
TOBL2Ri 
TOBL2So 
TOBL2Si 
TOBL3o 
TOBL3i 
TOBL4o 
TOBL4i 
TOBL5o 
TOBL5i 
TOBL6o 
TOBL6i 
TIDmR1R 
TIDmR1S 
TIDmR2R 
TIDmR2S 
TIDmR3 
TIDpR1R 
TIDpR1S 
TIDpR2R 
TIDpR2S 
TIDpR3 
TECmR1R 
TECmR1S 
TECmR2R 
TECmR2S 
TECmR3 
TECmR4 
TECmR5 
TECmR6 
TECmR7 
TECpR1R 
TECpR1S 
TECpR2R 
TECpR2S 
TECpR3 
TECpR4 
TECpR5 
TECpR6 
TECpR7 
StripDoubleSide 
NUM_OF_REGIONS 

Definition at line 76 of file AlignmentPayloadInspectorHelper.h.

76  {
77  BPixL1o, //0 Barrel Pixel Layer 1 outer
78  BPixL1i, //1 Barrel Pixel Layer 1 inner
79  BPixL2o, //2 Barrel Pixel Layer 2 outer
80  BPixL2i, //3 Barrel Pixel Layer 2 inner
81  BPixL3o, //4 Barrel Pixel Layer 3 outer
82  BPixL3i, //5 Barrel Pixel Layer 3 inner
83  BPixL4o, //6 Barrel Pixel Layer 4 outer
84  BPixL4i, //7 Barrel Pixel Layer 4 inner
85  FPixmL1, //8 Forward Pixel Minus side Disk 1
86  FPixmL2, //9 Forward Pixel Minus side Disk 2
87  FPixmL3, //10 Forward Pixel Minus side Disk 3
88  FPixpL1, //11 Forward Pixel Plus side Disk 1
89  FPixpL2, //12 Forward Pixel Plus side Disk 2
90  FPixpL3, //13 Forward Pixel Plus side Disk 3
91  TIBL1Ro, //14 Inner Barrel Layer 1 Rphi outer
92  TIBL1Ri, //15 Inner Barrel Layer 1 Rphi inner
93  TIBL1So, //16 Inner Barrel Layer 1 Stereo outer
94  TIBL1Si, //17 Inner Barrel Layer 1 Stereo inner
95  TIBL2Ro, //18 Inner Barrel Layer 2 Rphi outer
96  TIBL2Ri, //19 Inner Barrel Layer 2 Rphi inner
97  TIBL2So, //20 Inner Barrel Layer 2 Stereo outer
98  TIBL2Si, //21 Inner Barrel Layer 2 Stereo inner
99  TIBL3o, //22 Inner Barrel Layer 3 outer
100  TIBL3i, //23 Inner Barrel Layer 3 inner
101  TIBL4o, //24 Inner Barrel Layer 4 outer
102  TIBL4i, //25 Inner Barrel Layer 4 inner
103  TOBL1Ro, //26 Outer Barrel Layer 1 Rphi outer
104  TOBL1Ri, //27 Outer Barrel Layer 1 Rphi inner
105  TOBL1So, //28 Outer Barrel Layer 1 Stereo outer
106  TOBL1Si, //29 Outer Barrel Layer 1 Stereo inner
107  TOBL2Ro, //30 Outer Barrel Layer 2 Rphi outer
108  TOBL2Ri, //31 Outer Barrel Layer 2 Rphi inner
109  TOBL2So, //32 Outer Barrel Layer 2 Stereo outer
110  TOBL2Si, //33 Outer Barrel Layer 2 Stereo inner
111  TOBL3o, //34 Outer Barrel Layer 3 outer
112  TOBL3i, //35 Outer Barrel Layer 3 inner
113  TOBL4o, //36 Outer Barrel Layer 4 outer
114  TOBL4i, //37 Outer Barrel Layer 4 inner
115  TOBL5o, //38 Outer Barrel Layer 5 outer
116  TOBL5i, //39 Outer Barrel Layer 5 inner
117  TOBL6o, //40 Outer Barrel Layer 6 outer
118  TOBL6i, //41 Outer Barrel Layer 6 inner
119  TIDmR1R, //42 Inner Disk Minus side Ring 1 Rphi
120  TIDmR1S, //43 Inner Disk Minus side Ring 1 Stereo
121  TIDmR2R, //44 Inner Disk Minus side Ring 2 Rphi
122  TIDmR2S, //45 Inner Disk Minus side Ring 2 Stereo
123  TIDmR3, //46 Inner Disk Minus side Ring 3
124  TIDpR1R, //47 Inner Disk Plus side Ring 1 Rphi
125  TIDpR1S, //48 Inner Disk Plus side Ring 1 Stereo
126  TIDpR2R, //49 Inner Disk Plus side Ring 2 Rphi
127  TIDpR2S, //50 Inner Disk Plus side Ring 2 Stereo
128  TIDpR3, //51 Inner Disk Plus side Ring 3
129  TECmR1R, //52 Endcaps Minus side Ring 1 Rphi
130  TECmR1S, //53 Endcaps Minus side Ring 1 Stereo
131  TECmR2R, //54 Encdaps Minus side Ring 2 Rphi
132  TECmR2S, //55 Endcaps Minus side Ring 2 Stereo
133  TECmR3, //56 Endcaps Minus side Ring 3
134  TECmR4, //57 Endcaps Minus side Ring 4
135  TECmR5, //58 Endcaps Minus side Ring 5
136  TECmR6, //59 Endcaps Minus side Ring 6
137  TECmR7, //60 Endcaps Minus side Ring 7
138  TECpR1R, //61 Endcaps Plus side Ring 1 Rphi
139  TECpR1S, //62 Endcaps Plus side Ring 1 Stereo
140  TECpR2R, //63 Encdaps Plus side Ring 2 Rphi
141  TECpR2S, //64 Endcaps Plus side Ring 2 Stereo
142  TECpR3, //65 Endcaps Plus side Ring 3
143  TECpR4, //66 Endcaps Plus side Ring 4
144  TECpR5, //67 Endcaps Plus side Ring 5
145  TECpR6, //68 Endcaps Plus side Ring 6
146  TECpR7, //67 Endcaps Plus side Ring 7
147  StripDoubleSide, // 70 -- not to be considered
148  NUM_OF_REGIONS // 71 -- default
149  };

Function Documentation

◆ calculatePosition()

std::pair<double, double> AlignmentPI::calculatePosition ( TVirtualPad *  myPad,
int  boundary 
)

Definition at line 768 of file AlignmentPayloadInspectorHelper.h.

770  {
771  int ix1;
772  int ix2;
773  int iw = myPad->GetWw();
774  int ih = myPad->GetWh();
775  double x1p, y1p, x2p, y2p;
776  myPad->GetPadPar(x1p, y1p, x2p, y2p);
777  ix1 = (int)(iw * x1p);
778  ix2 = (int)(iw * x2p);
779  double wndc = std::min(1., (double)iw / (double)ih);
780  double rw = wndc / (double)iw;
781  double x1ndc = (double)ix1 * rw;
782  double x2ndc = (double)ix2 * rw;
783  double rx1, ry1, rx2, ry2;
784  myPad->GetRange(rx1, ry1, rx2, ry2);
785  double rx = (x2ndc - x1ndc) / (rx2 - rx1);
786  double _sx;
787  _sx = rx * (boundary - rx1) + x1ndc;
788  double _dx = _sx + 0.05;
789 
790  return std::make_pair(_sx, _dx);
791  }

References createfilelist::int, min(), and corrVsCorr::rx.

Referenced by HGCalImagingAlgo::getClusters(), and HGCalCLUEAlgoT< TILE >::getClusters().

◆ getIndices()

std::pair<int, int> AlignmentPI::getIndices ( AlignmentPI::index  i)

Definition at line 663 of file AlignmentPayloadInspectorHelper.h.

665  {
666  switch (i) {
667  case XX:
668  return std::make_pair(0, 0);
669  case XY:
670  return std::make_pair(0, 1);
671  case XZ:
672  return std::make_pair(0, 2);
673  case YZ:
674  return std::make_pair(1, 0);
675  case YY:
676  return std::make_pair(1, 1);
677  case ZZ:
678  return std::make_pair(2, 2);
679  default:
680  return std::make_pair(-1, -1);
681  }
682  }

References mps_fire::i, XX, XY, XZ, YY, YZ, and ZZ.

◆ getStringFromCoordinate()

std::string AlignmentPI::getStringFromCoordinate ( AlignmentPI::coordinate  coord)

Definition at line 597 of file AlignmentPayloadInspectorHelper.h.

599  {
600  switch (coord) {
601  case t_x:
602  return "x-translation";
603  case t_y:
604  return "y-translation";
605  case t_z:
606  return "z-translation";
607  case rot_alpha:
608  return "#alpha angle rotation";
609  case rot_beta:
610  return "#beta angle rotation";
611  case rot_gamma:
612  return "#gamma angle rotation";
613  default:
614  return "should never be here!";
615  }
616  }

References rot_alpha, rot_beta, rot_gamma, t_x, t_y, and t_z.

◆ getStringFromIndex()

std::string AlignmentPI::getStringFromIndex ( AlignmentPI::index  i)

Definition at line 619 of file AlignmentPayloadInspectorHelper.h.

621  {
622  switch (i) {
623  case XX:
624  return "XX";
625  case XY:
626  return "XY";
627  case XZ:
628  return "XZ";
629  case YZ:
630  return "YX";
631  case YY:
632  return "YY";
633  case ZZ:
634  return "ZZ";
635  default:
636  return "should never be here!";
637  }
638  }

References mps_fire::i, XX, XY, XZ, YY, YZ, and ZZ.

◆ getStringFromPart()

std::string AlignmentPI::getStringFromPart ( AlignmentPI::partitions  i)

Definition at line 641 of file AlignmentPayloadInspectorHelper.h.

643  {
644  switch (i) {
645  case BPix:
646  return "BPix";
647  case FPix:
648  return "FPix";
649  case TIB:
650  return "TIB";
651  case TID:
652  return "TID";
653  case TOB:
654  return "TOB";
655  case TEC:
656  return "TEC";
657  default:
658  return "should never be here!";
659  }
660  }

References BPix, FPix, mps_fire::i, TEC, TIB, TID, and TOB.

Referenced by makeNiceStats().

◆ getStringFromRegionEnum()

std::string AlignmentPI::getStringFromRegionEnum ( AlignmentPI::regions  e)

Definition at line 152 of file AlignmentPayloadInspectorHelper.h.

154  {
155  switch (e) {
157  return "BPixL1o";
159  return "BPixL1i";
161  return "BPixL2o";
163  return "BPixL2i";
165  return "BPixL3o";
167  return "BPixL3i";
169  return "BPixL4o";
171  return "BPixL4i";
173  return "FPixmL1";
175  return "FPixmL2";
177  return "FPixmL3";
179  return "FPixpL1";
181  return "FPixpL2";
183  return "FPixpL3";
185  return "TIBL1Ro";
187  return "TIBL1Ri";
189  return "TIBL1So";
191  return "TIBL1Si";
193  return "TIBL2Ro";
195  return "TIBL2Ri";
197  return "TIBL2So";
199  return "TIBL2Si";
200  case AlignmentPI::TIBL3o:
201  return "TIBL3o";
202  case AlignmentPI::TIBL3i:
203  return "TIBL3i";
204  case AlignmentPI::TIBL4o:
205  return "TIBL4o";
206  case AlignmentPI::TIBL4i:
207  return "TIBL4i";
209  return "TOBL1Ro";
211  return "TOBL1Ri";
213  return "TOBL1So";
215  return "TOBL1Si";
217  return "TOBL2Ro";
219  return "TOBL2Ri";
221  return "TOBL2So";
223  return "TOBL2Si";
224  case AlignmentPI::TOBL3o:
225  return "TOBL3o";
226  case AlignmentPI::TOBL3i:
227  return "TOBL3i";
228  case AlignmentPI::TOBL4o:
229  return "TOBL4o";
230  case AlignmentPI::TOBL4i:
231  return "TOBL4i";
232  case AlignmentPI::TOBL5o:
233  return "TOBL5o";
234  case AlignmentPI::TOBL5i:
235  return "TOBL5i";
236  case AlignmentPI::TOBL6o:
237  return "TOBL6o";
238  case AlignmentPI::TOBL6i:
239  return "TOBL6i";
241  return "TIDmR1R";
243  return "TIDmR1S";
245  return "TIDmR2R";
247  return "TIDmR2S";
248  case AlignmentPI::TIDmR3:
249  return "TIDmR3";
251  return "TIDpR1R";
253  return "TIDpR1S";
255  return "TIDpR2R";
257  return "TIDpR2S";
258  case AlignmentPI::TIDpR3:
259  return "TIDpR3";
261  return "TECmR1R";
263  return "TECmR1S";
265  return "TECmR2R";
267  return "TECmR2S";
268  case AlignmentPI::TECmR3:
269  return "TECmR3";
270  case AlignmentPI::TECmR4:
271  return "TECmR4";
272  case AlignmentPI::TECmR5:
273  return "TECmR5";
274  case AlignmentPI::TECmR6:
275  return "TECmR6";
276  case AlignmentPI::TECmR7:
277  return "TECmR7";
279  return "TECpR1R";
281  return "TECpR1S";
283  return "TECpR2R";
285  return "TECpR2S";
286  case AlignmentPI::TECpR3:
287  return "TECpR3";
288  case AlignmentPI::TECpR4:
289  return "TECpR4";
290  case AlignmentPI::TECpR5:
291  return "TECpR5";
292  case AlignmentPI::TECpR6:
293  return "TECpR6";
294  case AlignmentPI::TECpR7:
295  return "TECpR7";
296  default:
297  edm::LogWarning("LogicError") << "Unknown partition: " << e;
298  return "";
299  }
300  }

References BPixL1i, BPixL1o, BPixL2i, BPixL2o, BPixL3i, BPixL3o, BPixL4i, BPixL4o, MillePedeFileConverter_cfg::e, FPixmL1, FPixmL2, FPixmL3, FPixpL1, FPixpL2, FPixpL3, TECmR1R, TECmR1S, TECmR2R, TECmR2S, TECmR3, TECmR4, TECmR5, TECmR6, TECmR7, TECpR1R, TECpR1S, TECpR2R, TECpR2S, TECpR3, TECpR4, TECpR5, TECpR6, TECpR7, TIBL1Ri, TIBL1Ro, TIBL1Si, TIBL1So, TIBL2Ri, TIBL2Ro, TIBL2Si, TIBL2So, TIBL3i, TIBL3o, TIBL4i, TIBL4o, TIDmR1R, TIDmR1S, TIDmR2R, TIDmR2S, TIDmR3, TIDpR1R, TIDpR1S, TIDpR2R, TIDpR2S, TIDpR3, TOBL1Ri, TOBL1Ro, TOBL1Si, TOBL1So, TOBL2Ri, TOBL2Ro, TOBL2Si, TOBL2So, TOBL3i, TOBL3o, TOBL4i, TOBL4o, TOBL5i, TOBL5o, TOBL6i, and TOBL6o.

◆ getTheRange()

std::pair<float, float> AlignmentPI::getTheRange ( std::map< uint32_t, float >  values,
const float  nsigma 
)

Definition at line 743 of file AlignmentPayloadInspectorHelper.h.

745  {
746  float sum = std::accumulate(
747  std::begin(values), std::end(values), 0.0, [](float value, const std::map<uint32_t, float>::value_type& p) {
748  return value + p.second;
749  });
750 
751  float m = sum / values.size();
752 
753  float accum = 0.0;
754  std::for_each(std::begin(values), std::end(values), [&](const std::map<uint32_t, float>::value_type& p) {
755  accum += (p.second - m) * (p.second - m);
756  });
757 
758  float stdev = sqrt(accum / (values.size() - 1));
759 
760  if (stdev != 0.) {
761  return std::make_pair(m - nsigma * stdev, m + nsigma * stdev);
762  } else {
763  return std::make_pair(m > 0. ? 0.95 * m : 1.05 * m, m > 0 ? 1.05 * m : 0.95 * m);
764  }
765  }

References mps_fire::end, visualization-live-secondInstance_cfg::m, AlCaHLTBitMon_ParallelJobs::p, mathSSE::sqrt(), plotscripts::stdev(), and contentValuesCheck::values.

◆ isBPixOuterLadder()

bool AlignmentPI::isBPixOuterLadder ( const DetId detid,
const TrackerTopology tTopo,
bool  isPhase0 
)

Definition at line 303 of file AlignmentPayloadInspectorHelper.h.

305  {
306  bool isOuter = false;
307  int layer = tTopo.pxbLayer(detid.rawId());
308  bool odd_ladder = tTopo.pxbLadder(detid.rawId()) % 2;
309  if (isPhase0) {
310  if (layer == 2)
311  isOuter = !odd_ladder;
312  else
313  isOuter = odd_ladder;
314  } else {
315  if (layer == 4)
316  isOuter = odd_ladder;
317  else
318  isOuter = !odd_ladder;
319  }
320  return isOuter;
321  }

References TrackerTopology::pxbLadder(), TrackerTopology::pxbLayer(), and DetId::rawId().

Referenced by AlignmentPI::topolInfo::fillGeometryInfo().

◆ makeNicePlotStyle()

void AlignmentPI::makeNicePlotStyle ( TH1 *  hist,
int  color 
)

Definition at line 685 of file AlignmentPayloadInspectorHelper.h.

687  {
688  hist->SetStats(kFALSE);
689 
690  hist->GetXaxis()->SetTitleColor(color);
691  hist->SetLineColor(color);
692  hist->SetTitleSize(0.08);
693  hist->SetLineWidth(2);
694  hist->GetXaxis()->CenterTitle(true);
695  hist->GetYaxis()->CenterTitle(true);
696  hist->GetXaxis()->SetTitleFont(42);
697  hist->GetYaxis()->SetTitleFont(42);
698  hist->GetXaxis()->SetNdivisions(505);
699  hist->GetXaxis()->SetTitleSize(0.06);
700  hist->GetYaxis()->SetTitleSize(0.06);
701  hist->GetXaxis()->SetTitleOffset(1.0);
702  hist->GetYaxis()->SetTitleOffset(1.3);
703  hist->GetXaxis()->SetLabelFont(42);
704  hist->GetYaxis()->SetLabelFont(42);
705  hist->GetYaxis()->SetLabelSize(.05);
706  hist->GetXaxis()->SetLabelSize(.05);
707  }

References compare::hist.

◆ makeNiceStats()

void AlignmentPI::makeNiceStats ( TH1F *  hist,
AlignmentPI::partitions  part,
int  color 
)

Definition at line 710 of file AlignmentPayloadInspectorHelper.h.

712  {
713  char buffer[255];
714  TPaveText* stat = new TPaveText(0.60, 0.75, 0.95, 0.95, "NDC");
715  sprintf(buffer, "%s \n", AlignmentPI::getStringFromPart(part).c_str());
716  stat->AddText(buffer);
717 
718  sprintf(buffer, "Entries : %i\n", (int)hist->GetEntries());
719  stat->AddText(buffer);
720 
721  if (std::abs(hist->GetMean()) > 0.01) {
722  sprintf(buffer, "Mean : %6.2f\n", hist->GetMean());
723  } else {
724  sprintf(buffer, "Mean : %6.2f e-2\n", 100 * hist->GetMean());
725  }
726  stat->AddText(buffer);
727 
728  if (std::abs(hist->GetRMS()) > 0.01) {
729  sprintf(buffer, "RMS : %6.2f\n", hist->GetRMS());
730  } else {
731  sprintf(buffer, "RMS : %6.2f e-2\n", 100 * hist->GetRMS());
732  }
733  stat->AddText(buffer);
734 
735  stat->SetLineColor(color);
736  stat->SetTextColor(color);
737  stat->SetFillColor(10);
738  stat->SetShadowColor(10);
739  stat->Draw();
740  }

References funct::abs(), edmScanValgrind::buffer, getStringFromPart(), compare::hist, and hgcalPlots::stat.

◆ operator<<()

std::ostream& AlignmentPI::operator<< ( std::ostream &  o,
PARTITION  x 
)

Variable Documentation

◆ cmToUm

const float AlignmentPI::cmToUm = 10000
static

Definition at line 31 of file AlignmentPayloadInspectorHelper.h.

◆ PARTITIONS

const PARTITION AlignmentPI::PARTITIONS
Initial value:
PARTITION::FPIXp,
PARTITION::FPIXm,
PARTITION::TIDp,
PARTITION::TIDm,
PARTITION::TECp,
PARTITION::TECm}

Definition at line 64 of file AlignmentPayloadInspectorHelper.h.

Referenced by AlignmentPI::TkAlBarycenters::computeBarycenters().

◆ phase0size

const unsigned int AlignmentPI::phase0size = 19876
static

Definition at line 30 of file AlignmentPayloadInspectorHelper.h.

AlignmentPI::TECpR2R
Definition: AlignmentPayloadInspectorHelper.h:140
AlignmentPI::PARTITION::LAST
AlignmentPI::BPixL3i
Definition: AlignmentPayloadInspectorHelper.h:82
AlignmentPI::TOBL5o
Definition: AlignmentPayloadInspectorHelper.h:115
AlignmentPI::TOBL3o
Definition: AlignmentPayloadInspectorHelper.h:111
AlignmentPI::TIBL1Ro
Definition: AlignmentPayloadInspectorHelper.h:91
mps_fire.i
i
Definition: mps_fire.py:428
AlignmentPI::TECpR2S
Definition: AlignmentPayloadInspectorHelper.h:141
AlignmentPI::TOBL4i
Definition: AlignmentPayloadInspectorHelper.h:114
AlignmentPI::BPixL3o
Definition: AlignmentPayloadInspectorHelper.h:81
AlignmentPI::TIBL2Ro
Definition: AlignmentPayloadInspectorHelper.h:95
AlignmentPI::TIBL3o
Definition: AlignmentPayloadInspectorHelper.h:99
AlignmentPI::TIDmR2R
Definition: AlignmentPayloadInspectorHelper.h:121
min
T min(T a, T b)
Definition: MathUtil.h:58
AlignmentPI::NUM_OF_REGIONS
Definition: AlignmentPayloadInspectorHelper.h:148
AlignmentPI::TOB
Definition: AlignmentPayloadInspectorHelper.h:48
AlignmentPI::TIBL4o
Definition: AlignmentPayloadInspectorHelper.h:101
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
AlignmentPI::TIBL3i
Definition: AlignmentPayloadInspectorHelper.h:100
TrackerTopology::pxbLadder
unsigned int pxbLadder(const DetId &id) const
Definition: TrackerTopology.h:155
AlignmentPI::FPix
Definition: AlignmentPayloadInspectorHelper.h:48
AlignmentPI::TECmR2R
Definition: AlignmentPayloadInspectorHelper.h:131
AlignmentPI::TIDpR2R
Definition: AlignmentPayloadInspectorHelper.h:126
AlignmentPI::t_z
Definition: AlignmentPayloadInspectorHelper.h:36
AlignmentPI::TOBL2Ri
Definition: AlignmentPayloadInspectorHelper.h:108
AlignmentPI::TOBL1Ro
Definition: AlignmentPayloadInspectorHelper.h:103
AlignmentPI::FPixmL3
Definition: AlignmentPayloadInspectorHelper.h:87
AlignmentPI::rot_gamma
Definition: AlignmentPayloadInspectorHelper.h:39
AlignmentPI::TOBL2Si
Definition: AlignmentPayloadInspectorHelper.h:110
AlignmentPI::rot_alpha
Definition: AlignmentPayloadInspectorHelper.h:37
AlignmentPI::TECmR5
Definition: AlignmentPayloadInspectorHelper.h:135
AlignmentPI::PARTITION::FPIXm
AlignmentPI::BPixL4i
Definition: AlignmentPayloadInspectorHelper.h:84
AlignmentPI::BPixL2o
Definition: AlignmentPayloadInspectorHelper.h:79
AlignmentPI::TIDpR1S
Definition: AlignmentPayloadInspectorHelper.h:125
AlignmentPI::PARTITION::TIDm
AlignmentPI::YY
Definition: AlignmentPayloadInspectorHelper.h:46
AlignmentPI::PARTITION::TIDp
AlignmentPI::t_y
Definition: AlignmentPayloadInspectorHelper.h:35
AlignmentPI::TECmR2S
Definition: AlignmentPayloadInspectorHelper.h:132
AlignmentPI::getStringFromPart
std::string getStringFromPart(AlignmentPI::partitions i)
Definition: AlignmentPayloadInspectorHelper.h:641
AlignmentPI::TIBL1Ri
Definition: AlignmentPayloadInspectorHelper.h:92
AlignmentPI::TIBL1Si
Definition: AlignmentPayloadInspectorHelper.h:94
AlignmentPI::TIB
Definition: AlignmentPayloadInspectorHelper.h:48
AlignmentPI::TECmR4
Definition: AlignmentPayloadInspectorHelper.h:134
AlignmentPI::XY
Definition: AlignmentPayloadInspectorHelper.h:46
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
AlignmentPI::TIBL2So
Definition: AlignmentPayloadInspectorHelper.h:97
AlignmentPI::XZ
Definition: AlignmentPayloadInspectorHelper.h:46
AlignmentPI::TECpR6
Definition: AlignmentPayloadInspectorHelper.h:145
AlignmentPI::PARTITION::TECp
AlignmentPI::TECpR1R
Definition: AlignmentPayloadInspectorHelper.h:138
TrackerTopology::pxbLayer
unsigned int pxbLayer(const DetId &id) const
Definition: TrackerTopology.h:144
edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
AlignmentPI::TIDmR1R
Definition: AlignmentPayloadInspectorHelper.h:119
AlignmentPI::FPixpL2
Definition: AlignmentPayloadInspectorHelper.h:89
AlignmentPI::TECpR1S
Definition: AlignmentPayloadInspectorHelper.h:139
AlignmentPI::TEC
Definition: AlignmentPayloadInspectorHelper.h:48
AlignmentPI::BPixL4o
Definition: AlignmentPayloadInspectorHelper.h:83
part
part
Definition: HCALResponse.h:20
AlignmentPI::TIDpR1R
Definition: AlignmentPayloadInspectorHelper.h:124
hgcalPlots.stat
stat
Definition: hgcalPlots.py:1119
AlignmentPI::TECmR1S
Definition: AlignmentPayloadInspectorHelper.h:130
compare.hist
hist
Definition: compare.py:376
AlignmentPI::TECmR1R
Definition: AlignmentPayloadInspectorHelper.h:129
AlignmentPI::FPixmL1
Definition: AlignmentPayloadInspectorHelper.h:85
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
mps_fire.end
end
Definition: mps_fire.py:242
BPIX
#define BPIX
Definition: PixelCalibConfiguration.cc:22
AlignmentPI::TOBL4o
Definition: AlignmentPayloadInspectorHelper.h:113
AlignmentPI::TID
Definition: AlignmentPayloadInspectorHelper.h:48
AlignmentPI::TIBL4i
Definition: AlignmentPayloadInspectorHelper.h:102
AlignmentPI::TOBL6i
Definition: AlignmentPayloadInspectorHelper.h:118
AlignmentPI::YZ
Definition: AlignmentPayloadInspectorHelper.h:46
AlignmentPI::t_x
Definition: AlignmentPayloadInspectorHelper.h:34
AlignmentPI::TOBL1Ri
Definition: AlignmentPayloadInspectorHelper.h:104
AlignmentPI::TECpR5
Definition: AlignmentPayloadInspectorHelper.h:144
AlignmentPI::TECpR7
Definition: AlignmentPayloadInspectorHelper.h:146
AlignmentPI::TOBL5i
Definition: AlignmentPayloadInspectorHelper.h:116
AlignmentPI::TOBL2So
Definition: AlignmentPayloadInspectorHelper.h:109
AlignmentPI::TOBL2Ro
Definition: AlignmentPayloadInspectorHelper.h:107
AlignmentPI::TECmR6
Definition: AlignmentPayloadInspectorHelper.h:136
AlignmentPI::TIDmR3
Definition: AlignmentPayloadInspectorHelper.h:123
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
AlignmentPI::TIBL1So
Definition: AlignmentPayloadInspectorHelper.h:93
createfilelist.int
int
Definition: createfilelist.py:10
AlignmentPI::TECpR4
Definition: AlignmentPayloadInspectorHelper.h:143
value
Definition: value.py:1
AlignmentPI::rot_beta
Definition: AlignmentPayloadInspectorHelper.h:38
AlignmentPI::FPixmL2
Definition: AlignmentPayloadInspectorHelper.h:86
corrVsCorr.rx
rx
Definition: corrVsCorr.py:103
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
AlignmentPI::BPix
Definition: AlignmentPayloadInspectorHelper.h:48
AlignmentPI::TOBL3i
Definition: AlignmentPayloadInspectorHelper.h:112
AlignmentPI::FPixpL3
Definition: AlignmentPayloadInspectorHelper.h:90
AlignmentPI::TECmR3
Definition: AlignmentPayloadInspectorHelper.h:133
plotscripts.stdev
def stdev(xlist)
Definition: plotscripts.py:69
AlignmentPI::TIBL2Ri
Definition: AlignmentPayloadInspectorHelper.h:96
AlignmentPI::PARTITION::FPIXp
AlignmentPI::TOBL1Si
Definition: AlignmentPayloadInspectorHelper.h:106
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
AlignmentPI::TIDmR2S
Definition: AlignmentPayloadInspectorHelper.h:122
AlignmentPI::TIBL2Si
Definition: AlignmentPayloadInspectorHelper.h:98
AlignmentPI::ZZ
Definition: AlignmentPayloadInspectorHelper.h:46
AlignmentPI::TIDpR2S
Definition: AlignmentPayloadInspectorHelper.h:127
genVertex_cff.x
x
Definition: genVertex_cff.py:12
AlignmentPI::StripDoubleSide
Definition: AlignmentPayloadInspectorHelper.h:147
AlignmentPI::BPixL1i
Definition: AlignmentPayloadInspectorHelper.h:78
AlignmentPI::FPixpL1
Definition: AlignmentPayloadInspectorHelper.h:88
AlignmentPI::TECpR3
Definition: AlignmentPayloadInspectorHelper.h:142
AlignmentPI::BPixL2i
Definition: AlignmentPayloadInspectorHelper.h:80
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
AlignmentPI::BPixL1o
Definition: AlignmentPayloadInspectorHelper.h:77
AlignmentPI::TIDpR3
Definition: AlignmentPayloadInspectorHelper.h:128
AlignmentPI::PARTITION::TECm
AlignmentPI::TOBL6o
Definition: AlignmentPayloadInspectorHelper.h:117
XX
double XX[2]
Definition: herwig.h:145
AlignmentPI::TOBL1So
Definition: AlignmentPayloadInspectorHelper.h:105
AlignmentPI::TECmR7
Definition: AlignmentPayloadInspectorHelper.h:137
AlignmentPI::TIDmR1S
Definition: AlignmentPayloadInspectorHelper.h:120
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37