CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TEcnaParHistos.h
Go to the documentation of this file.
1 #ifndef ZTR_TEcnaParHistos
2 #define ZTR_TEcnaParHistos
3 
4 #include <Riostream.h>
5 
6 #include "TObject.h"
7 #include "TSystem.h"
8 #include "Riostream.h"
9 
10 #include "TCanvas.h"
11 #include "TRootCanvas.h"
12 #include "TH1.h"
13 #include "TStyle.h"
14 #include "TGraph.h"
15 #include "TString.h"
16 #include "TColor.h"
17 #include "TPaveText.h"
18 #include "TVectorD.h"
19 #include "TMatrixD.h"
20 
23 
24 //------------------------ TEcnaParHistos.h -----------------
25 //
26 // For questions or comments, please send e-mail to:
27 //
28 // Bernard Fabbro
29 // fabbro@hep.saclay.cea.fr
30 //--------------------------------------------------------
31 
32 class TEcnaParHistos : public TObject {
33 
34  private:
35 
36  //..... Attributes
37 
38  // static const Int_t fgMaxCar = 512; // <=== HYPER DANGEREUX !!!
39 
40  Int_t fgMaxCar; // Max nb of caracters for char*
41 
42  Int_t fCnew, fCdelete;
44 
45  TString fTTBELL;
46 
48 
51 
52  TString fFlagSubDet;
53 
54  //...............................................................
55 
60 
61  public:
62 
63  //..... Methods
64 
66  TEcnaParHistos(const TString, const TEcnaParEcal*, const TEcnaNumbering*);
67  virtual ~TEcnaParHistos();
68 
69  void Init();
70  void SetEcalSubDetector(const TString, const TEcnaParEcal*, const TEcnaNumbering*);
71 
72  //...................................................... PLOT methods
73  UInt_t SetCanvasWidth(const TString, const TString);
74  UInt_t SetCanvasHeight(const TString, const TString);
75  UInt_t CanvasFormatW(const TString);
76  UInt_t CanvasFormatH(const TString);
77 
78  Double_t BoxLeftX(const TString);
79  Double_t BoxRightX(const TString);
80  Double_t BoxBottomY(const TString);
81  Double_t BoxTopY(const TString);
82 
83  void SetColorPalette(const TString);
84  Color_t ColorTab(const Int_t&);
85  Color_t ColorDefinition(const TString);
86  Int_t GetMaxNbOfColors();
87 
88  Int_t GetNbOfRunsDisplayed();
89  Double_t GetMarginAutoMinMax();
90 
91  void SetViewHistoStyle(const TString);
92  // void SetViewHistoPadMargins(const TString);
93  void SetViewHistoPadMargins(const TString, const TString);
94  void SetViewHistoStats(TH1D*, const TString);
95  void SetViewHistoOffsets(TH1D*, const TString, const TString);
96  void SetViewGraphOffsets(TGraph*, const TString);
97 
98  Float_t AxisTitleOffset();
99  Float_t AxisTitleOffset(const TString);
100  Float_t AxisTitleSize();
101  Float_t AxisTitleSize(const TString);
102  Float_t AxisLabelOffset();
103  Float_t AxisLabelOffset(const TString);
104  Float_t AxisLabelSize();
105  Float_t AxisLabelSize(const TString);
106  Float_t AxisTickSize();
107  Float_t AxisTickSize(const TString);
108 
109  Float_t DeeOffsetX(const TString, const Int_t&);
110  Float_t DeeNameOffsetX(const Int_t&);
111  Float_t DeeNumberOffsetX(const TString, const Int_t&);
112 
113  TPaveText* SetPaveGeneralComment(const TString);
114  TPaveText* SetPaveAnalysisRun(const TString, const Int_t&, const Int_t&, const TString,
115  const Int_t&, const Int_t&, const TString);
116  TPaveText* SetPaveNbOfEvts(const Int_t&, const TString, const TString, const TString);
117  TPaveText* SetPaveEvolNbOfEvtsAna(const TString, const Int_t&, const Int_t&,
118  const Int_t&, const TString);
119  TPaveText* SetPaveEvolRuns(const Int_t&, const TString, const Int_t&,
120  const TString, const TString, const TString);
121 
122  TPaveText* SetOptionSamePaveBorder(const TString, const TString);
123 
124  TPaveText* SetPaveStas();
125  TPaveText* SetPaveSM(const TString, const Int_t&, const TString);
126  TPaveText* SetPaveTower(const Int_t&);
127  TPaveText* SetPaveTowersXY(const Int_t&, const Int_t&);
128  TPaveText* SetPaveLVRB(const Int_t&, const Int_t&);
129  Color_t SetColorsForNumbers(const TString);
130 
131  TPaveText* SetPaveDee(const TString, const Int_t&, const TString);
132  TPaveText* SetPaveSC(const Int_t&, const Int_t&);
133  TPaveText* SetPaveSCsXY(const Int_t&, const Int_t&);
134  TPaveText* SetPaveCxyz(const Int_t&);
135 
136  TPaveText* SetPaveStex(const TString, const Int_t&);
137  TPaveText* SetPaveStin(const Int_t&, const Int_t&);
138  TPaveText* SetPaveStinsXY(const Int_t&, const Int_t&);
139  TPaveText* SetPaveCrystal(const Int_t&, const Int_t&, const Int_t&);
140  TPaveText* SetPaveCrystalSample(const Int_t&, const Int_t&, const Int_t&, const Int_t&);
141 
142  TString GetHistoType(const TString);
143  TString GetXVarHisto(const TString, const TString, const Int_t&);
144  TString GetYVarHisto(const TString, const TString, const Int_t&);
145  TString GetQuantityName(const TString);
146 
147  Double_t GetYminDefaultValue(const TString);
148  Double_t GetYmaxDefaultValue(const TString);
149 
150  Int_t MaxNbOfRunsInLists();
151 
152 ClassDef(TEcnaParHistos,1)// Parameter management for CNA (Correlated Noises Analysis)
153 
154 };
155 
156 #endif // ZTR_TEcnaParameter
TPaveText * SetPaveTowersXY(const Int_t &, const Int_t &)
TPaveText * SetPaveSCsXY(const Int_t &, const Int_t &)
UInt_t SetCanvasHeight(const TString, const TString)
Int_t fNbOfRunsDisplayed
TPaveText * SetPaveStinsXY(const Int_t &, const Int_t &)
Float_t AxisTitleOffset()
Double_t fMarginAutoMinMax
void SetViewHistoPadMargins(const TString, const TString)
UInt_t CanvasFormatW(const TString)
Color_t ColorDefinition(const TString)
Float_t DeeNameOffsetX(const Int_t &)
Int_t fMaxNbOfRunsInLists
Float_t DeeNumberOffsetX(const TString, const Int_t &)
virtual ~TEcnaParHistos()
TPaveText * SetPaveLVRB(const Int_t &, const Int_t &)
TPaveText * SetPaveDee(const TString, const Int_t &, const TString)
Double_t GetYmaxDefaultValue(const TString)
Float_t AxisTitleSize()
TPaveText * SetPaveAnalysisRun(const TString, const Int_t &, const Int_t &, const TString, const Int_t &, const Int_t &, const TString)
Float_t AxisLabelOffset()
void SetEcalSubDetector(const TString, const TEcnaParEcal *, const TEcnaNumbering *)
Int_t MaxNbOfRunsInLists()
Color_t ColorTab(const Int_t &)
TPaveText * SetPaveEvolRuns(const Int_t &, const TString, const Int_t &, const TString, const TString, const TString)
TString GetYVarHisto(const TString, const TString, const Int_t &)
void SetColorPalette(const TString)
TPaveText * SetPaveCxyz(const Int_t &)
TPaveText * SetOptionSamePaveBorder(const TString, const TString)
Float_t AxisTickSize()
TPaveText * SetPaveNbOfEvts(const Int_t &, const TString, const TString, const TString)
TPaveText * SetPaveTower(const Int_t &)
Double_t BoxRightX(const TString)
TEcnaParEcal * fEcal
TPaveText * SetPaveCrystal(const Int_t &, const Int_t &, const Int_t &)
TString fFlagSubDet
UInt_t SetCanvasWidth(const TString, const TString)
unsigned int UInt_t
Definition: FUTypes.h:12
Float_t DeeOffsetX(const TString, const Int_t &)
Double_t BoxBottomY(const TString)
TPaveText * SetPaveStin(const Int_t &, const Int_t &)
TString GetQuantityName(const TString)
TPaveText * SetPaveSM(const TString, const Int_t &, const TString)
TString GetXVarHisto(const TString, const TString, const Int_t &)
TPaveText * SetPaveStex(const TString, const Int_t &)
Int_t GetNbOfRunsDisplayed()
TPaveText * SetPaveCrystalSample(const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void SetViewHistoStyle(const TString)
void SetViewHistoOffsets(TH1D *, const TString, const TString)
Double_t BoxLeftX(const TString)
TPaveText * SetPaveEvolNbOfEvtsAna(const TString, const Int_t &, const Int_t &, const Int_t &, const TString)
void SetViewHistoStats(TH1D *, const TString)
TPaveText * SetPaveGeneralComment(const TString)
Double_t GetMarginAutoMinMax()
TString GetHistoType(const TString)
Double_t GetYminDefaultValue(const TString)
void SetViewGraphOffsets(TGraph *, const TString)
Int_t GetMaxNbOfColors()
TEcnaNumbering * fEcalNumbering
TPaveText * SetPaveSC(const Int_t &, const Int_t &)
Float_t AxisLabelSize()
TPaveText * SetPaveStas()
Double_t BoxTopY(const TString)
Color_t SetColorsForNumbers(const TString)
UInt_t CanvasFormatH(const TString)