CMS 3D CMS Logo

Classes | Enumerations | Functions | Variables
AlignmentPI Namespace Reference

Classes

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  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)
 

Variables

static const float cmToUm = 10000
 
static const unsigned int phase0size =19876
 

Enumeration Type Documentation

Enumerator
XX 
XY 
XZ 
YZ 
YY 
ZZ 

Definition at line 33 of file AlignmentPayloadInspectorHelper.h.

Enumerator
BPix 
FPix 
TIB 
TID 
TOB 
TEC 

Definition at line 42 of file AlignmentPayloadInspectorHelper.h.

42  {
43  BPix=1, // Barrel Pixel
44  FPix=2, // Forward Pixel
45  TIB=3, // Tracker Inner Barrel
46  TID=4, // Tracker Inner Disks
47  TOB=5, // Tracker Outer Barrel
48  TEC=6 // Tracker Endcaps
49  };
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 51 of file AlignmentPayloadInspectorHelper.h.

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

Function Documentation

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

Definition at line 674 of file AlignmentPayloadInspectorHelper.h.

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

676  {
677 
678  int ix1;
679  int ix2;
680  int iw = myPad->GetWw();
681  int ih = myPad->GetWh();
682  double x1p,y1p,x2p,y2p;
683  myPad->GetPadPar(x1p,y1p,x2p,y2p);
684  ix1 = (int)(iw*x1p);
685  ix2 = (int)(iw*x2p);
686  double wndc = std::min(1.,(double)iw/(double)ih);
687  double rw = wndc/(double)iw;
688  double x1ndc = (double)ix1*rw;
689  double x2ndc = (double)ix2*rw;
690  double rx1,ry1,rx2,ry2;
691  myPad->GetRange(rx1,ry1,rx2,ry2);
692  double rx = (x2ndc-x1ndc)/(rx2-rx1);
693  double _sx;
694  _sx = rx*(boundary-rx1)+x1ndc;
695  double _dx = _sx+0.05;
696 
697  return std::make_pair(_sx,_dx);
698  }
T min(T a, T b)
Definition: MathUtil.h:58
std::pair<int,int> AlignmentPI::getIndices ( AlignmentPI::index  i)

Definition at line 570 of file AlignmentPayloadInspectorHelper.h.

References XX, XY, XZ, YY, YZ, and ZZ.

572  {
573  switch(i){
574  case XX : return std::make_pair(0,0);
575  case XY : return std::make_pair(0,1);
576  case XZ : return std::make_pair(0,2);
577  case YZ : return std::make_pair(1,0);
578  case YY : return std::make_pair(1,1);
579  case ZZ : return std::make_pair(2,2);
580  default : return std::make_pair(-1,-1);
581  }
582  }
double XX[2]
Definition: herwig.h:152
std::string AlignmentPI::getStringFromCoordinate ( AlignmentPI::coordinate  coord)

Definition at line 525 of file AlignmentPayloadInspectorHelper.h.

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

527  {
528  switch(coord){
529  case t_x : return "x-translation";
530  case t_y : return "y-translation";
531  case t_z : return "z-translation";
532  case rot_alpha : return "#alpha angle rotation";
533  case rot_beta : return "#beta angle rotation";
534  case rot_gamma : return "#gamma angle rotation";
535  default : return "should never be here!";
536  }
537  }
std::string AlignmentPI::getStringFromIndex ( AlignmentPI::index  i)

Definition at line 540 of file AlignmentPayloadInspectorHelper.h.

References XX, XY, XZ, YY, YZ, and ZZ.

542  {
543  switch(i){
544  case XX : return "XX";
545  case XY : return "XY";
546  case XZ : return "XZ";
547  case YZ : return "YX";
548  case YY : return "YY";
549  case ZZ : return "ZZ";
550  default : return "should never be here!";
551  }
552  }
double XX[2]
Definition: herwig.h:152
std::string AlignmentPI::getStringFromPart ( AlignmentPI::partitions  i)

Definition at line 555 of file AlignmentPayloadInspectorHelper.h.

References BPix, FPix, TEC, TIB, TID, and TOB.

Referenced by makeNiceStats().

557  {
558  switch(i){
559  case BPix : return "BPix";
560  case FPix : return "FPix";
561  case TIB : return "TIB";
562  case TID : return "TID";
563  case TOB : return "TOB";
564  case TEC : return "TEC";
565  default : return "should never be here!";
566  }
567  }
std::string AlignmentPI::getStringFromRegionEnum ( AlignmentPI::regions  e)

Definition at line 127 of file AlignmentPayloadInspectorHelper.h.

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.

129  {
130  switch(e)
131  {
132  case AlignmentPI::BPixL1o : return "BPixL1o";
133  case AlignmentPI::BPixL1i : return "BPixL1i";
134  case AlignmentPI::BPixL2o : return "BPixL2o";
135  case AlignmentPI::BPixL2i : return "BPixL2i";
136  case AlignmentPI::BPixL3o : return "BPixL3o";
137  case AlignmentPI::BPixL3i : return "BPixL3i";
138  case AlignmentPI::BPixL4o : return "BPixL4o";
139  case AlignmentPI::BPixL4i : return "BPixL4i";
140  case AlignmentPI::FPixmL1 : return "FPixmL1";
141  case AlignmentPI::FPixmL2 : return "FPixmL2";
142  case AlignmentPI::FPixmL3 : return "FPixmL3";
143  case AlignmentPI::FPixpL1 : return "FPixpL1";
144  case AlignmentPI::FPixpL2 : return "FPixpL2";
145  case AlignmentPI::FPixpL3 : return "FPixpL3";
146  case AlignmentPI::TIBL1Ro : return "TIBL1Ro";
147  case AlignmentPI::TIBL1Ri : return "TIBL1Ri";
148  case AlignmentPI::TIBL1So : return "TIBL1So";
149  case AlignmentPI::TIBL1Si : return "TIBL1Si";
150  case AlignmentPI::TIBL2Ro : return "TIBL2Ro";
151  case AlignmentPI::TIBL2Ri : return "TIBL2Ri";
152  case AlignmentPI::TIBL2So : return "TIBL2So";
153  case AlignmentPI::TIBL2Si : return "TIBL2Si";
154  case AlignmentPI::TIBL3o : return "TIBL3o";
155  case AlignmentPI::TIBL3i : return "TIBL3i";
156  case AlignmentPI::TIBL4o : return "TIBL4o";
157  case AlignmentPI::TIBL4i : return "TIBL4i";
158  case AlignmentPI::TOBL1Ro : return "TOBL1Ro";
159  case AlignmentPI::TOBL1Ri : return "TOBL1Ri";
160  case AlignmentPI::TOBL1So : return "TOBL1So";
161  case AlignmentPI::TOBL1Si : return "TOBL1Si";
162  case AlignmentPI::TOBL2Ro : return "TOBL2Ro";
163  case AlignmentPI::TOBL2Ri : return "TOBL2Ri";
164  case AlignmentPI::TOBL2So : return "TOBL2So";
165  case AlignmentPI::TOBL2Si : return "TOBL2Si";
166  case AlignmentPI::TOBL3o : return "TOBL3o";
167  case AlignmentPI::TOBL3i : return "TOBL3i";
168  case AlignmentPI::TOBL4o : return "TOBL4o";
169  case AlignmentPI::TOBL4i : return "TOBL4i";
170  case AlignmentPI::TOBL5o : return "TOBL5o";
171  case AlignmentPI::TOBL5i : return "TOBL5i";
172  case AlignmentPI::TOBL6o : return "TOBL6o";
173  case AlignmentPI::TOBL6i : return "TOBL6i";
174  case AlignmentPI::TIDmR1R : return "TIDmR1R";
175  case AlignmentPI::TIDmR1S : return "TIDmR1S";
176  case AlignmentPI::TIDmR2R : return "TIDmR2R";
177  case AlignmentPI::TIDmR2S : return "TIDmR2S";
178  case AlignmentPI::TIDmR3 : return "TIDmR3";
179  case AlignmentPI::TIDpR1R : return "TIDpR1R";
180  case AlignmentPI::TIDpR1S : return "TIDpR1S";
181  case AlignmentPI::TIDpR2R : return "TIDpR2R";
182  case AlignmentPI::TIDpR2S : return "TIDpR2S";
183  case AlignmentPI::TIDpR3 : return "TIDpR3";
184  case AlignmentPI::TECmR1R : return "TECmR1R";
185  case AlignmentPI::TECmR1S : return "TECmR1S";
186  case AlignmentPI::TECmR2R : return "TECmR2R";
187  case AlignmentPI::TECmR2S : return "TECmR2S";
188  case AlignmentPI::TECmR3 : return "TECmR3";
189  case AlignmentPI::TECmR4 : return "TECmR4";
190  case AlignmentPI::TECmR5 : return "TECmR5";
191  case AlignmentPI::TECmR6 : return "TECmR6";
192  case AlignmentPI::TECmR7 : return "TECmR7";
193  case AlignmentPI::TECpR1R : return "TECpR1R";
194  case AlignmentPI::TECpR1S : return "TECpR1S";
195  case AlignmentPI::TECpR2R : return "TECpR2R";
196  case AlignmentPI::TECpR2S : return "TECpR2S";
197  case AlignmentPI::TECpR3 : return "TECpR3";
198  case AlignmentPI::TECpR4 : return "TECpR4";
199  case AlignmentPI::TECpR5 : return "TECpR5";
200  case AlignmentPI::TECpR6 : return "TECpR6";
201  case AlignmentPI::TECpR7 : return "TECpR7";
202  default:
203  edm::LogWarning("LogicError") << "Unknown partition: " << e;
204  return "";
205  }
206  }
std::pair<float,float> AlignmentPI::getTheRange ( std::map< uint32_t, float >  values,
const float  nsigma 
)

Definition at line 645 of file AlignmentPayloadInspectorHelper.h.

References begin, end, funct::m, AlCaHLTBitMon_ParallelJobs::p, mathSSE::sqrt(), and plotscripts::stdev().

647  {
648  float sum = std::accumulate(std::begin(values),
649  std::end(values),
650  0.0,
651  [] (float value, const std::map<uint32_t,float>::value_type& p)
652  { return value + p.second; }
653  );
654 
655  float m = sum / values.size();
656 
657  float accum = 0.0;
658  std::for_each (std::begin(values),
659  std::end(values),
661  {accum += (p.second - m) * (p.second - m);}
662  );
663 
664  float stdev = sqrt(accum / (values.size()-1));
665 
666  if(stdev!=0.){
667  return std::make_pair(m-nsigma*stdev,m+nsigma*stdev);
668  } else {
669  return std::make_pair(m>0.? 0.95*m : 1.05*m, m>0? 1.05*m : 0.95*m);
670  }
671  }
T sqrt(T t)
Definition: SSEVec.h:18
#define end
Definition: vmac.h:39
Definition: value.py:1
#define begin
Definition: vmac.h:32
def stdev(xlist)
Definition: plotscripts.py:67
bool AlignmentPI::isBPixOuterLadder ( const DetId detid,
const TrackerTopology tTopo,
bool  isPhase0 
)

Definition at line 209 of file AlignmentPayloadInspectorHelper.h.

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

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

211  {
212  bool isOuter=false;
213  int layer = tTopo.pxbLayer(detid.rawId());
214  bool odd_ladder = tTopo.pxbLadder(detid.rawId())%2;
215  if (isPhase0) {
216  if (layer==2) isOuter = !odd_ladder;
217  else isOuter = odd_ladder;
218  } else {
219  if (layer==4) isOuter = odd_ladder;
220  else isOuter = !odd_ladder;
221  }
222  return isOuter;
223  }
unsigned int pxbLadder(const DetId &id) const
uint32_t rawId() const
get the raw id
Definition: DetId.h:44
unsigned int pxbLayer(const DetId &id) const
void AlignmentPI::makeNicePlotStyle ( TH1 *  hist,
int  color 
)

Definition at line 585 of file AlignmentPayloadInspectorHelper.h.

587  {
588 
589  hist->SetStats(kFALSE);
590 
591  hist->GetXaxis()->SetTitleColor(color);
592  hist->SetLineColor(color);
593  hist->SetTitleSize(0.08);
594  hist->SetLineWidth(2);
595  hist->GetXaxis()->CenterTitle(true);
596  hist->GetYaxis()->CenterTitle(true);
597  hist->GetXaxis()->SetTitleFont(42);
598  hist->GetYaxis()->SetTitleFont(42);
599  hist->GetXaxis()->SetNdivisions(505);
600  hist->GetXaxis()->SetTitleSize(0.06);
601  hist->GetYaxis()->SetTitleSize(0.06);
602  hist->GetXaxis()->SetTitleOffset(1.0);
603  hist->GetYaxis()->SetTitleOffset(1.3);
604  hist->GetXaxis()->SetLabelFont(42);
605  hist->GetYaxis()->SetLabelFont(42);
606  hist->GetYaxis()->SetLabelSize(.05);
607  hist->GetXaxis()->SetLabelSize(.05);
608 
609  }
void AlignmentPI::makeNiceStats ( TH1F *  hist,
AlignmentPI::partitions  part,
int  color 
)

Definition at line 612 of file AlignmentPayloadInspectorHelper.h.

References funct::abs(), edmScanValgrind::buffer, and getStringFromPart().

614  {
615  char buffer[255];
616  TPaveText* stat = new TPaveText(0.60,0.75,0.95,0.95,"NDC");
617  sprintf(buffer,"%s \n",AlignmentPI::getStringFromPart(part).c_str());
618  stat->AddText(buffer);
619 
620  sprintf(buffer,"Entries : %i\n",(int)hist->GetEntries());
621  stat->AddText(buffer);
622 
623  if(std::abs(hist->GetMean())>0.01){
624  sprintf(buffer,"Mean : %6.2f\n",hist->GetMean());
625  } else {
626  sprintf(buffer,"Mean : %6.2f e-2\n",100*hist->GetMean());
627  }
628  stat->AddText(buffer);
629 
630  if(std::abs(hist->GetRMS())>0.01){
631  sprintf(buffer,"RMS : %6.2f\n",hist->GetRMS());
632  } else {
633  sprintf(buffer,"RMS : %6.2f e-2\n",100*hist->GetRMS());
634  }
635  stat->AddText(buffer);
636 
637  stat->SetLineColor(color);
638  stat->SetTextColor(color);
639  stat->SetFillColor(10);
640  stat->SetShadowColor(10);
641  stat->Draw();
642  }
std::string getStringFromPart(AlignmentPI::partitions i)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
part
Definition: HCALResponse.h:20

Variable Documentation

const float AlignmentPI::cmToUm = 10000
static
const unsigned int AlignmentPI::phase0size =19876
static

Definition at line 17 of file AlignmentPayloadInspectorHelper.h.