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 
24 
43 
44 class TEcnaParHistos : public TObject {
45 
46  private:
47 
48  //..... Attributes
49 
50  // static const Int_t fgMaxCar = 512; // <=== HYPER DANGEREUX !!!
51 
52  Int_t fgMaxCar; // Max nb of caracters for char*
53 
54  Int_t fCnew, fCdelete;
56 
57  TString fTTBELL;
58 
60 
63 
64  TString fFlagSubDet;
65 
66  //...............................................................
67 
72 
73  TString fOnlyOnePlot;
74  TString fSeveralPlot;
75  TString fSameOnePlot;
78 
79  public:
80 
81  //..... Methods
82 
84  TEcnaParHistos(TEcnaObject*, const TString);
85  TEcnaParHistos(const TString, const TEcnaParEcal*, const TEcnaNumbering*);
86  virtual ~TEcnaParHistos();
87 
88  void Init();
89  void SetEcalSubDetector(const TString);
90  void SetEcalSubDetector(const TString, const TEcnaParEcal*, const TEcnaNumbering*);
91 
92  //...................................................... PLOT methods
93  UInt_t SetCanvasWidth(const TString, const TString);
94  UInt_t SetCanvasHeight(const TString, const TString);
95  UInt_t CanvasFormatW(const TString);
96  UInt_t CanvasFormatH(const TString);
97 
98  Double_t BoxLeftX(const TString);
99  Double_t BoxRightX(const TString);
100  Double_t BoxBottomY(const TString);
101  Double_t BoxTopY(const TString);
102 
103  void SetColorPalette(const TString);
104  Color_t ColorTab(const Int_t&);
105  Color_t ColorDefinition(const TString);
106  Int_t GetMaxNbOfColors();
107 
108  Int_t GetNbOfRunsDisplayed();
109  Double_t GetMarginAutoMinMax();
110 
111  void SetViewHistoStyle(const TString);
112  void SetViewHistoPadMargins(const TString, const TString);
113  void SetViewHistoStats(TH1D*, const TString);
114  void SetViewHistoOffsets(TH1D*, const TString, const TString);
115  void SetViewGraphOffsets(TGraph*, const TString);
116 
117  Float_t AxisTitleOffset();
118  Float_t AxisTitleOffset(const TString);
119  Float_t AxisTitleSize();
120  Float_t AxisTitleSize(const TString);
121  Float_t AxisLabelOffset();
122  Float_t AxisLabelOffset(const TString);
123  Float_t AxisLabelSize();
124  Float_t AxisLabelSize(const TString);
125  Float_t AxisTickSize();
126  Float_t AxisTickSize(const TString);
127 
128  Float_t DeeOffsetX(const TString, const Int_t&);
129  Float_t DeeNameOffsetX(const Int_t&);
130  Float_t DeeNumberOffsetX(const TString, const Int_t&);
131 
132  TPaveText* SetPaveGeneralComment(const TString);
133  TPaveText* SetPaveAnalysisRun(const TString, const Int_t&, const Int_t&, const TString,
134  const Int_t&, const Int_t&, const TString);
135  TPaveText* SetPaveNbOfEvts(const Int_t&, const TString, const TString, const TString);
136  TPaveText* SetPaveEvolNbOfEvtsAna(const TString, const Int_t&, const Int_t&,
137  const Int_t&, const TString);
138  TPaveText* SetPaveEvolRuns(const Int_t&, const TString, const Int_t&,
139  const TString, const TString, const TString);
140 
141  TPaveText* SetOptionSamePaveBorder(const TString, const TString);
142 
143  TPaveText* SetPaveStas();
144  TPaveText* SetPaveSM(const TString, const Int_t&, const TString);
145  TPaveText* SetPaveTower(const Int_t&);
146  TPaveText* SetPaveTowersXY(const Int_t&, const Int_t&);
147  TPaveText* SetPaveLVRB(const Int_t&, const Int_t&);
148  Color_t SetColorsForNumbers(const TString);
149 
150  TPaveText* SetPaveDee(const TString, const Int_t&, const TString);
151  TPaveText* SetPaveSC(const Int_t&, const Int_t&);
152  TPaveText* SetPaveSCsXY(const Int_t&, const Int_t&);
153  TPaveText* SetPaveCxyz(const Int_t&);
154 
155  TPaveText* SetPaveStex(const TString, const Int_t&);
156  TPaveText* SetPaveStin(const Int_t&, const Int_t&);
157  TPaveText* SetPaveStinsXY(const Int_t&, const Int_t&);
158  TPaveText* SetPaveCrystal(const Int_t&, const Int_t&, const Int_t&);
159  TPaveText* SetPaveCrystal(const Int_t&, const Int_t&, const Int_t&, const Int_t&, const Int_t&);
160  TPaveText* SetPaveCrystalSample(const Int_t&, const Int_t&, const Int_t&, const Int_t&);
161 
162  TString GetHistoType(const TString);
163  TString GetXVarHisto(const TString, const TString, const Int_t&);
164  TString GetYVarHisto(const TString, const TString, const Int_t&);
165  TString GetQuantityName(const TString);
166 
167  Double_t GetYminDefaultValue(const TString);
168  Double_t GetYmaxDefaultValue(const TString);
169 
170  Int_t MaxNbOfRunsInLists();
171 
172  //...............................................................
173  TString BuildStandardDetectorCode(const TString);
174  TString BuildStandardPlotOption(const TString, const TString);
175  TString BuildStandard1DHistoCodeX(const TString, const TString);
176  TString BuildStandard1DHistoCodeY(const TString, const TString);
177  TString BuildStandard1DHistoCodeXY(const TString);
178  TString BuildStandardCovOrCorCode(const TString, const TString);
179  TString BuildStandardBetweenWhatCode(const TString, const TString);
180 
181  void ListOfStandardCodes(const TString);
182 
183  TString GetTechHistoCode(const TString);
184  TString GetTechHistoCode(const TString, const TString);
185 
186  TString GetCodeOnlyOnePlot();
187  TString GetCodeSeveralPlot();
188  TString GetCodeSameOnePlot();
189  TString GetCodeAllXtalsInStinPlot();
191 
192 ClassDef(TEcnaParHistos,1)// Parameter management for CNA (Correlated Noises Analysis)
193 
194 };
195 
196 #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()
Int_t GetCodePlotAllXtalsInStin()
TString GetCodeSameOnePlot()
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 &)
TString fAllXtalsInStinPlot
TString fOnlyOnePlot
TString BuildStandardPlotOption(const TString, const TString)
Int_t fMaxNbOfRunsInLists
void SetEcalSubDetector(const TString)
Float_t DeeNumberOffsetX(const TString, const Int_t &)
TString BuildStandardDetectorCode(const TString)
virtual ~TEcnaParHistos()
TPaveText * SetPaveLVRB(const Int_t &, const Int_t &)
TPaveText * SetPaveDee(const TString, const Int_t &, const TString)
Double_t GetYmaxDefaultValue(const TString)
TString GetTechHistoCode(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)
TString BuildStandard1DHistoCodeX(const TString, const TString)
Float_t AxisLabelOffset()
TString GetCodeSeveralPlot()
Int_t MaxNbOfRunsInLists()
TString GetCodeAllXtalsInStinPlot()
Color_t ColorTab(const Int_t &)
TPaveText * SetPaveEvolRuns(const Int_t &, const TString, const Int_t &, const TString, const TString, const TString)
TString BuildStandardCovOrCorCode(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)
TString BuildStandard1DHistoCodeXY(const TString)
TEcnaParEcal * fEcal
Int_t fPlotAllXtalsInStin
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
TString BuildStandard1DHistoCodeY(const TString, const TString)
TString fSameOnePlot
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 ListOfStandardCodes(const TString)
void SetViewHistoStyle(const TString)
void SetViewHistoOffsets(TH1D *, const TString, const TString)
TString BuildStandardBetweenWhatCode(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)
TString GetCodeOnlyOnePlot()
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)
TString fSeveralPlot
Color_t SetColorsForNumbers(const TString)
UInt_t CanvasFormatH(const TString)