CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CompareMillePede.h
Go to the documentation of this file.
1 // Original Author: Gero Flucke
2 // last change : $Date: 2012/02/24 13:41:10 $
3 // by : $Author: flucke $
4 #ifndef COMPAREMILLEPEDE_H
5 #define COMPAREMILLEPEDE_H
6 
7 class PlotMillePede;
8 
9 class GFHistManager;
11 
12 {
13  public:
14  CompareMillePede(const char *fileName1, const char *fileName2, Int_t iov1 = 1, Int_t iov2 = 1,
15  Int_t hieraLevel = 0);// iter=1/2: singlerun/merged; heiraLev: -1 ignore, 0 lowest level, etc.
16  virtual ~CompareMillePede();
17 
18  void DrawPedeParam(Option_t *option = "", unsigned int nNonRigidParam = 12);//"add": keep old canvas, "free1/2": if free param in file 1/2
19  void DrawPedeParamVsLocation(Option_t *option = "", unsigned int nNonRigidParam = 12);//"add": keep old canvas, "free1/2": if free param in file 1/2
20 
21  void DrawParam(Option_t *option="");//"add": keep old canvas, "free1/2": if free param in file 1/2
22  void DrawParamVsLocation(Option_t *option="");//"add": keep old canvas, "free1/2": if free param in file 1/2
23  void DrawParamDeltaMis(Option_t *option="");//"add": keep old canvas, "free1/2": if free param in file 1/2
24  void DrawParamDeltaMisVsLoc(Option_t *option="");//"add": keep old canvas, "free1/2": if free param in file 1/2
25  void DrawNumHits(Option_t *opt="");//"add": keep old canvas
26 
27  void DrawAbsPos(Option_t *opt="");//"start": at start (else end), "add": keep old canvas
28  void DrawSurfaceDeformations(Option_t *option, const TString &whichOne,// = "result",
29  unsigned int firstPar = 0, unsigned int lastPar = 11
30  ); //"add": keep old canvases; "result"||"start"||"diff"
31 
32  bool IsConsistent(); // check correct order of alignables, if false draw some hists
33  TString DeltaPar(UInt_t iPar) const; // par_2 - par_1
34  TString DeltaParBySigma(UInt_t iPar, const PlotMillePede *sigmaSource) const;
35  TString DeltaMisPar(UInt_t iPar) const; // abs(misalignment_2)-abs(misalignment_1)
36  TString DeltaMisParBySigma(UInt_t iPar, const PlotMillePede *sigmaSource) const;
37  TString DeltaPos(UInt_t iPos) const;
38 
39  void AddIsFreeSel(TString &sel, const TString &option, UInt_t iPar) const;
40 
41  void SetSubDetId(Int_t subDetId); // 1-6 are TPB, TPE, TIB, TID, TOB, TEC, -1 means: take all
42  void AddSubDetId(Int_t subDetId); // 1-6 are TPB, TPE, TIB, TID, TOB, TEC
43  void SetAlignableTypeId(Int_t alignableTypeId);//detunit=1,det=2,rod=3,etc. from AlignableObjectIdType (-1: all)
44  void SetHieraLevel(Int_t hieraLevel); // select hierarchical level (-1: all)
45  void AddAdditionalSel(const char *selection);// special select; StripDoubleOr1D,StripRphi,StripStereo
46  void AddAdditionalSel(const TString &xyzrPhiNhit, Float_t min, Float_t max); // x,y,z,r,phi,Nhit
47  // const TString GetAdditionalSel () const { return fAdditionalSel;}
48  void ClearAdditionalSel ();
49 
50 
51  TString TitleAdd() const;
52 
56 
57  static const unsigned int kNpar; // number of parameters we have...
58 
59  private:
61 
62  Int_t PrepareAdd(bool addPlots);
63 
66 
68 };
69 
70 #endif
void DrawPedeParam(Option_t *option="", unsigned int nNonRigidParam=12)
void DrawSurfaceDeformations(Option_t *option, const TString &whichOne, unsigned int firstPar=0, unsigned int lastPar=11)
void SetHieraLevel(Int_t hieraLevel)
TString DeltaPar(UInt_t iPar) const
PlotMillePede * GetPlotMillePede2()
GFHistManager * GetHistManager()
selection
main part
Definition: corrVsCorr.py:98
PlotMillePede * fPlotMp1
#define min(a, b)
Definition: mlp_lapack.h:161
TString DeltaMisPar(UInt_t iPar) const
constexpr unsigned int subDetId[11]
TString DeltaPos(UInt_t iPos) const
void AddIsFreeSel(TString &sel, const TString &option, UInt_t iPar) const
const T & max(const T &a, const T &b)
GFHistManager * fHistManager
void DrawNumHits(Option_t *opt="")
TString DeltaMisParBySigma(UInt_t iPar, const PlotMillePede *sigmaSource) const
void AddAdditionalSel(const char *selection)
Int_t PrepareAdd(bool addPlots)
PlotMillePede * fPlotMp2
unsigned int UInt_t
Definition: FUTypes.h:12
void DrawAbsPos(Option_t *opt="")
void DrawParamDeltaMis(Option_t *option="")
TString TitleAdd() const
static const unsigned int kNpar
void DrawParamVsLocation(Option_t *option="")
PlotMillePede * GetPlotMillePede1()
void SetAlignableTypeId(Int_t alignableTypeId)
TString DeltaParBySigma(UInt_t iPar, const PlotMillePede *sigmaSource) const
void AddSubDetId(Int_t subDetId)
void DrawPedeParamVsLocation(Option_t *option="", unsigned int nNonRigidParam=12)
void DrawParam(Option_t *option="")
void SetSubDetId(Int_t subDetId)
virtual ~CompareMillePede()
void DrawParamDeltaMisVsLoc(Option_t *option="")
void ClearAdditionalSel()