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 36 of file AlignmentPayloadInspectorHelper.h.

Enumerator
BPix 
FPix 
TIB 
TID 
TOB 
TEC 

Definition at line 45 of file AlignmentPayloadInspectorHelper.h.

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

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

Function Documentation

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

Definition at line 677 of file AlignmentPayloadInspectorHelper.h.

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

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

Definition at line 573 of file AlignmentPayloadInspectorHelper.h.

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

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

Definition at line 528 of file AlignmentPayloadInspectorHelper.h.

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

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

Definition at line 543 of file AlignmentPayloadInspectorHelper.h.

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

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

Definition at line 558 of file AlignmentPayloadInspectorHelper.h.

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

Referenced by makeNiceStats().

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

Definition at line 130 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.

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

Definition at line 648 of file AlignmentPayloadInspectorHelper.h.

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

650  {
651  float sum = std::accumulate(std::begin(values),
652  std::end(values),
653  0.0,
654  [] (float value, const std::map<uint32_t,float>::value_type& p)
655  { return value + p.second; }
656  );
657 
658  float m = sum / values.size();
659 
660  float accum = 0.0;
661  std::for_each (std::begin(values),
662  std::end(values),
664  {accum += (p.second - m) * (p.second - m);}
665  );
666 
667  float stdev = sqrt(accum / (values.size()-1));
668 
669  if(stdev!=0.){
670  return std::make_pair(m-nsigma*stdev,m+nsigma*stdev);
671  } else {
672  return std::make_pair(m>0.? 0.95*m : 1.05*m, m>0? 1.05*m : 0.95*m);
673  }
674  }
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:68
bool AlignmentPI::isBPixOuterLadder ( const DetId detid,
const TrackerTopology tTopo,
bool  isPhase0 
)

Definition at line 212 of file AlignmentPayloadInspectorHelper.h.

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

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

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

Definition at line 588 of file AlignmentPayloadInspectorHelper.h.

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

Definition at line 615 of file AlignmentPayloadInspectorHelper.h.

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

617  {
618  char buffer[255];
619  TPaveText* stat = new TPaveText(0.60,0.75,0.95,0.95,"NDC");
620  sprintf(buffer,"%s \n",AlignmentPI::getStringFromPart(part).c_str());
621  stat->AddText(buffer);
622 
623  sprintf(buffer,"Entries : %i\n",(int)hist->GetEntries());
624  stat->AddText(buffer);
625 
626  if(std::abs(hist->GetMean())>0.01){
627  sprintf(buffer,"Mean : %6.2f\n",hist->GetMean());
628  } else {
629  sprintf(buffer,"Mean : %6.2f e-2\n",100*hist->GetMean());
630  }
631  stat->AddText(buffer);
632 
633  if(std::abs(hist->GetRMS())>0.01){
634  sprintf(buffer,"RMS : %6.2f\n",hist->GetRMS());
635  } else {
636  sprintf(buffer,"RMS : %6.2f e-2\n",100*hist->GetRMS());
637  }
638  stat->AddText(buffer);
639 
640  stat->SetLineColor(color);
641  stat->SetTextColor(color);
642  stat->SetFillColor(10);
643  stat->SetShadowColor(10);
644  stat->Draw();
645  }
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 20 of file AlignmentPayloadInspectorHelper.h.