]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/CaloTrackCorrBase/AliHistogramRanges.h
AliPIDCombined not transient + AddTaskSpectraAllChAOD modification
[u/mrichter/AliRoot.git] / PWG / CaloTrackCorrBase / AliHistogramRanges.h
1 #ifndef ALIHISTOGRAMRANGES_H
2 #define ALIHISTOGRAMRANGES_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice     */
6
7 //_________________________________________________________________________
8 // Class containing histogram settings:
9 //    - Number of bins
10 //    - Min and max of range
11 //
12 //-- Author: Gustavo Conesa (LPSC-Grenoble)
13 //
14
15 //ROOT
16 #include <TObject.h>
17
18 class AliHistogramRanges : public TObject {
19         
20 public:   
21   
22   AliHistogramRanges() ;              // default ctor
23   virtual ~AliHistogramRanges() { ; } // dtor
24   
25   void InitParameters() ;
26   
27   void Print(const Option_t * ) const ;
28   
29   //Pt, Energy 
30   
31   Int_t   GetHistoPtBins()              const { return fHistoPtBins          ; }
32   Float_t GetHistoPtMin()               const { return fHistoPtMin           ; }
33   Float_t GetHistoPtMax()               const { return fHistoPtMax           ; }
34   
35   void    SetHistoPtRangeAndNBins(Float_t min, Float_t max, Int_t n) {
36     fHistoPtBins         = n ; fHistoPtMax         = max ; fHistoPtMin         = min ; }
37   
38   Int_t   GetHistoEnergyBins()          const { return fHistoPtBins          ; }
39   Float_t GetHistoEnergyMin()           const { return fHistoPtMin           ; }
40   Float_t GetHistoEnergyMax()           const { return fHistoPtMax           ; }
41   
42   void    SetHistoEnergyRangeAndNBins(Float_t min, Float_t max, Int_t n) {
43     SetHistoPtRangeAndNBins(min, max, n) ; }
44   
45   Int_t   GetHistoFinePtBins()          const { return fHistoFinePtBins      ; }
46   Float_t GetHistoFinePtMin()           const { return fHistoFinePtMin       ; }
47   Float_t GetHistoFinePtMax()           const { return fHistoFinePtMax       ; }        
48   
49   void SetHistoFinePtRangeAndNBins      (Float_t min, Float_t max, Int_t n) {
50     fHistoFinePtBins     = n ; fHistoFinePtMax     = max ; fHistoFinePtMin     = min ; }
51   
52   //Azimuthal angle
53   
54   Int_t   GetHistoPhiBins()             const { return fHistoPhiBins         ; }
55   Float_t GetHistoPhiMin()              const { return fHistoPhiMin          ; }
56   Float_t GetHistoPhiMax()              const { return fHistoPhiMax          ; }
57   
58   void    SetHistoPhiRangeAndNBins(Float_t min, Float_t max, Int_t n) {
59     fHistoPhiBins        = n ; fHistoPhiMax        = max ; fHistoPhiMin        = min ; }
60   
61  // Delta azymuthal angle
62   Int_t   GetHistoDeltaPhiBins()        const { return fHistoDeltaPhiBins    ; }
63   Float_t GetHistoDeltaPhiMin()         const { return fHistoDeltaPhiMin     ; }
64   Float_t GetHistoDeltaPhiMax()         const { return fHistoDeltaPhiMax     ; }
65   
66   void    SetHistoDeltaPhiRangeAndNBins(Float_t min, Float_t max, Int_t n) {
67     fHistoDeltaPhiBins   = n ; fHistoDeltaPhiMax   = max ; fHistoDeltaPhiMin   = min ; }
68
69
70 // Delta eta angle
71
72   Int_t   GetHistoDeltaEtaBins()        const { return fHistoDeltaEtaBins     ; }
73   Float_t GetHistoDeltaEtaMin()         const { return fHistoDeltaEtaMin      ; }
74   Float_t GetHistoDeltaEtaMax()         const { return fHistoDeltaEtaMax      ; }
75  
76   void    SetHistoDeltaEtaRangeAndNBins(Float_t min, Float_t max, Int_t n) {
77     fHistoDeltaEtaBins  = n ; fHistoDeltaEtaMax   = max ; fHistoDeltaEtaMin   = min ; }
78
79
80   //Pseudorapidity-rapidity
81   
82   Int_t   GetHistoEtaBins()             const { return fHistoEtaBins         ; }
83   Float_t GetHistoEtaMin()              const { return fHistoEtaMin          ; }
84   Float_t GetHistoEtaMax()              const { return fHistoEtaMax          ; }
85   
86   void    SetHistoEtaRangeAndNBins(Float_t min, Float_t max, Int_t n) {
87     fHistoEtaBins        = n ; fHistoEtaMax         = max ; fHistoEtaMin       = min ; }
88   
89   //Mass
90         
91   Int_t   GetHistoMassBins()            const { return fHistoMassBins        ; }
92   Float_t GetHistoMassMin()             const { return fHistoMassMin         ; }
93   Float_t GetHistoMassMax()             const { return fHistoMassMax         ; }
94         
95   void    SetHistoMassRangeAndNBins(Float_t min, Float_t max, Int_t n) {
96     fHistoMassBins       = n ; fHistoMassMax       = max ; fHistoMassMin       = min ; }
97   
98   //Asymetry
99         
100   Int_t   GetHistoAsymmetryBins()        const { return fHistoAsymBins       ; }
101   Float_t GetHistoAsymmetryMin()         const { return fHistoAsymMin        ; }
102   Float_t GetHistoAsymmetryMax()         const { return fHistoAsymMax        ; }        
103   
104   void    SetHistoAsymmetryRangeAndNBins(Float_t min, Float_t max, Int_t n) {
105     fHistoAsymBins       = n ; fHistoAsymMax       = max ; fHistoAsymMin       = min ; }
106   
107   //VZero
108   
109   Int_t   GetHistoV0SignalBins()         const { return fHistoV0SBins        ; }
110   Int_t   GetHistoV0SignalMin()          const { return fHistoV0SMin         ; }
111   Int_t   GetHistoV0SignalMax()          const { return fHistoV0SMax         ; }
112         
113   void    SetHistoV0SignalRangeAndNBins(Int_t min, Int_t max, Int_t n) {
114     fHistoV0SBins        = n ; fHistoV0SMax        = max ; fHistoV0SMin        = min ; }
115   
116   Int_t   GetHistoV0MultiplicityBins()   const { return fHistoV0MBins        ; }
117   Int_t   GetHistoV0MultiplicityMin()    const { return fHistoV0MMin         ; }
118   Int_t   GetHistoV0MultiplicityMax()    const { return fHistoV0MMax         ; }
119   
120   void    SetHistoV0MultiplicityRangeAndNBins(Int_t min, Int_t max, Int_t n) {
121     fHistoV0MBins        = n ; fHistoV0MMax        = max ; fHistoV0MMin        = min ; }
122   
123   // Track multiplicity
124   
125   Int_t   GetHistoTrackMultiplicityBins() const { return fHistoTrMBins      ; }
126   Int_t   GetHistoTrackMultiplicityMin()  const { return fHistoTrMMin       ; }
127   Int_t   GetHistoTrackMultiplicityMax()  const { return fHistoTrMMax       ; }
128   
129   void    SetHistoTrackMultiplicityRangeAndNBins(Int_t min, Int_t max, Int_t n) {
130     fHistoTrMBins        = n ; fHistoTrMMax        = max ; fHistoTrMMin        = min ; }
131   
132   // dEdx
133   
134   Int_t   GetHistodEdxBins()             const { return fHistodEdxBins       ; }
135   Float_t GetHistodEdxMin()              const { return fHistodEdxMin        ; }
136   Float_t GetHistodEdxMax()              const { return fHistodEdxMax        ; }        
137   
138   void    SetHistodEdxRangeAndNBins        (Float_t min, Float_t max, Int_t n) {
139     fHistodEdxBins       = n ; fHistodEdxMax       = max ; fHistodEdxMin       = min ; }
140   
141   // E over p
142   
143   Int_t   GetHistoPOverEBins()           const { return fHistoPOverEBins     ; }
144   Float_t GetHistoPOverEMin()            const { return fHistoPOverEMin      ; }
145   Float_t GetHistoPOverEMax()            const { return fHistoPOverEMax      ; }
146         
147   void    SetHistoPOverERangeAndNBins      (Float_t min, Float_t max, Int_t n) {
148     fHistoPOverEBins     = n ; fHistoPOverEMax     = max ; fHistoPOverEMin     = min ; }
149   
150   // Number of cells per clusters
151   
152   Int_t   GetHistoNClusterCellBins()     const { return fHistoNClusCellBins  ; }
153   Int_t   GetHistoNClusterCellMin()      const { return fHistoNClusCellMin   ; }
154   Int_t   GetHistoNClusterCellMax()      const { return fHistoNClusCellMax   ; }        
155  
156   void    SetHistoNClusterCellRangeAndNBins(Int_t   min, Int_t   max, Int_t n) {
157     fHistoNClusCellBins  = n ; fHistoNClusCellMax  = max ; fHistoNClusCellMin  = min ; }
158   
159   // Number of clusters
160   
161   Int_t   GetHistoNClustersBins()        const { return fHistoNClustersBins  ; }
162   Int_t   GetHistoNClustersMin()         const { return fHistoNClustersMin   ; }
163   Int_t   GetHistoNClustersMax()         const { return fHistoNClustersMax   ; }        
164   
165   void    SetHistoNClustersRangeAndNBins   (Int_t   min, Int_t   max, Int_t n) {
166     fHistoNClustersBins  = n ; fHistoNClustersMax  = max ; fHistoNClustersMin  = min ; }
167
168   // Number of cells 
169   
170   Int_t   GetHistoNCellsBins()           const { return fHistoNCellsBins     ; }
171   Int_t   GetHistoNCellsMin()            const { return fHistoNCellsMin      ; }
172   Int_t   GetHistoNCellsMax()            const { return fHistoNCellsMax      ; }        
173   
174   void    SetHistoNCellsRangeAndNBins      (Int_t   min, Int_t   max, Int_t n) {
175     fHistoNCellsBins     = n ; fHistoNCellsMax     = max ; fHistoNCellsMin     = min ; }
176
177   // dR
178   
179   Int_t   GetHistodRBins()               const { return fHistodRBins         ; }
180   Float_t GetHistodRMin()                const { return fHistodRMin          ; }
181   Float_t GetHistodRMax()                const { return fHistodRMax          ; }        
182   
183   void    SetHistodRRangeAndNBins          (Float_t min, Float_t max, Int_t n) {
184     fHistodRBins         = n ; fHistodRMax         = max ; fHistodRMin         = min ; }
185
186   // Ratio
187   
188   Int_t   GetHistoRatioBins()            const { return fHistoRatioBins      ; }
189   Float_t GetHistoRatioMin()             const { return fHistoRatioMin       ; }
190   Float_t GetHistoRatioMax()             const { return fHistoRatioMax       ; }        
191   
192   void    SetHistoRatioRangeAndNBins       (Float_t min, Float_t max, Int_t n) {
193     fHistoRatioBins      = n ; fHistoRatioMax      = max ; fHistoRatioMin      = min ; }
194
195   // Vertex
196   
197   Int_t   GetHistoVertexDistBins()       const { return fHistoVertexDistBins ; }
198   Float_t GetHistoVertexDistMin()        const { return fHistoVertexDistMin  ; }
199   Float_t GetHistoVertexDistMax()        const { return fHistoVertexDistMax  ; }        
200   
201   void    SetHistoVertexDistRangeAndNBins  (Float_t min, Float_t max, Int_t n) { 
202     fHistoVertexDistBins = n ; fHistoVertexDistMax = max ; fHistoVertexDistMin = min ; }
203
204   
205   // R =sqrt(x^2+y^2+z^2) (cm)
206   
207   Int_t   GetHistoRBins()                const { return fHistoRBins          ; }
208   Float_t GetHistoRMin()                 const { return fHistoRMin           ; }
209   Float_t GetHistoRMax()                 const { return fHistoRMax           ; }          
210   
211   void    SetHistoRRangeAndNBins           (Float_t min, Float_t max, Int_t n) {
212     fHistoRBins         = n ; fHistoRMax           = max ; fHistoRMin          = min ; }
213   
214   // X position
215   
216   Int_t   GetHistoXBins()                const { return fHistoXBins          ; }
217   Float_t GetHistoXMin()                 const { return fHistoXMin           ; }
218   Float_t GetHistoXMax()                 const { return fHistoXMax           ; }
219   
220   void    SetHistoXRangeAndNBins           (Float_t min, Float_t max, Int_t n) {
221     fHistoXBins          = n ; fHistoXMax          = max ; fHistoXMin          = min ; }
222
223   // Y position
224   
225   Int_t   GetHistoYBins()                const { return fHistoYBins          ; }
226   Float_t GetHistoYMin()                 const { return fHistoYMin           ; }
227   Float_t GetHistoYMax()                 const { return fHistoYMax           ; }        
228   
229   void    SetHistoYRangeAndNBins           (Float_t min, Float_t max, Int_t n) {
230     fHistoYBins          = n ; fHistoYMax          = max ; fHistoYMin          = min ; }
231   
232   // Z position
233   
234   Int_t   GetHistoZBins()                const { return fHistoZBins          ; }
235   Float_t GetHistoZMin()                 const { return fHistoZMin           ; }
236   Float_t GetHistoZMax()                 const { return fHistoZMax           ; }        
237         
238   void    SetHistoZRangeAndNBins           (Float_t min, Float_t max, Int_t n) {
239     fHistoZBins         = n ; fHistoZMax           = max ; fHistoZMin          = min ; }
240
241   // Shower shape parameters
242   
243   Int_t   GetHistoShowerShapeBins()      const { return fHistoSSBins         ; }
244   Float_t GetHistoShowerShapeMin()       const { return fHistoSSMin          ; }
245   Float_t GetHistoShowerShapeMax()       const { return fHistoSSMax          ; }        
246   
247   void    SetHistoShowerShapeRangeAndNBins (Float_t min, Float_t max, Int_t n) {
248     fHistoSSBins        = n ; fHistoSSMax          = max ; fHistoSSMin        = min ; }
249
250   // Time
251   
252   Int_t   GetHistoTimeBins()             const { return fHistoTimeBins       ; }
253   Float_t GetHistoTimeMin()              const { return fHistoTimeMin        ; }
254   Float_t GetHistoTimeMax()              const { return fHistoTimeMax        ; }        
255   
256   void    SetHistoTimeRangeAndNBins        (Float_t min, Float_t max, Int_t n) {
257     fHistoTimeBins       = n ; fHistoTimeMax       = max ; fHistoTimeMin       = min ; }          
258   
259   // Cluster time difference
260   
261   Int_t   GetHistoDiffTimeBins()         const { return fHistoDiffTimeBins   ; }
262         Float_t GetHistoDiffTimeMin()          const { return fHistoDiffTimeMin    ; }
263         Float_t GetHistoDiffTimeMax()          const { return fHistoDiffTimeMax    ; }  
264    
265   void    SetHistoDiffTimeRangeAndNBins(Float_t min, Float_t max, Int_t n) {
266     fHistoDiffTimeBins   = n ; fHistoDiffTimeMax   = max ; fHistoDiffTimeMin   = min   ; }
267   
268   //    Track matching histogrammes setters and getters
269   
270   Int_t   GetHistoTrackResidualEtaBins() const { return fHistoTrackResidualEtaBins ; }
271         Float_t GetHistoTrackResidualEtaMin()  const { return fHistoTrackResidualEtaMin  ; }
272         Float_t GetHistoTrackResidualEtaMax()  const { return fHistoTrackResidualEtaMax  ; }      
273   
274   void    SetHistoTrackResidualEtaRangeAndNBins(Float_t min, Float_t max, Int_t n) {
275     fHistoTrackResidualEtaBins = n ; fHistoTrackResidualEtaMax = max ; fHistoTrackResidualEtaMin = min           ; }
276   
277   Int_t   GetHistoTrackResidualPhiBins() const { return fHistoTrackResidualPhiBins ; }
278         Float_t GetHistoTrackResidualPhiMin()  const { return fHistoTrackResidualPhiMin  ; }
279         Float_t GetHistoTrackResidualPhiMax()  const { return fHistoTrackResidualPhiMax  ; }    
280   
281   void    SetHistoTrackResidualPhiRangeAndNBins(Float_t min, Float_t max, Int_t n) {
282     fHistoTrackResidualPhiBins = n ; fHistoTrackResidualPhiMax = max ; fHistoTrackResidualPhiMin = min           ; }
283   
284 private:    
285   
286   Int_t    fHistoPtBins   ;                   // Number of bins in pt axis
287   Float_t  fHistoPtMax    ;                   // Maximum value of pt histogram range
288   Float_t  fHistoPtMin    ;                   // Minimum value of pt histogram range
289   Int_t    fHistoPhiBins  ;                   // Number of bins in phi axis
290   Float_t  fHistoPhiMax   ;                   // Maximum value of phi histogram range
291   Float_t  fHistoPhiMin   ;                   // Minimum value of phi histogram range
292   Int_t    fHistoEtaBins  ;                   // Number of bins in eta axis
293   Float_t  fHistoEtaMax   ;                   // Maximum value of eta histogram range
294   Float_t  fHistoEtaMin   ;                   // Minimum value of eta histogram range
295   Int_t    fHistoDeltaPhiBins  ;              // Number of bins in delta phi axis
296   Float_t  fHistoDeltaPhiMax   ;              // Maximum value of delta phi histogram range
297   Float_t  fHistoDeltaPhiMin   ;              // Minimum value of delta phi histogram range
298   Int_t    fHistoDeltaEtaBins  ;              // Number of bins in delta eta axis
299   Float_t  fHistoDeltaEtaMax   ;              // Maximum value of delta eta histogram range
300   Float_t  fHistoDeltaEtaMin   ;              // Minimum value of delta eta histogram range
301
302   Int_t    fHistoMassBins ;                   // Number of bins in mass axis
303   Float_t  fHistoMassMax  ;                   // Maximum value of mass histogram range
304   Float_t  fHistoMassMin  ;                   // Minimum value of mass histogram range
305   Int_t    fHistoAsymBins ;                   // Number of bins in asymmetry axis
306   Float_t  fHistoAsymMax  ;                   // Maximum value of asymmetry histogram range
307   Float_t  fHistoAsymMin  ;                   // Minimum value of asymmetry histogram range
308   Int_t    fHistoV0SBins  ;                   // Number of bins in V0 signal axis
309   Int_t    fHistoV0SMax   ;                   // Maximum value of V0 signal histogram range
310   Int_t    fHistoV0SMin   ;                   // Minimum value of V0 signal histogram range
311   Int_t    fHistoV0MBins  ;                   // Number of bins in V0 multiplicity axis
312   Int_t    fHistoV0MMax   ;                   // Maximum value of V0 multiplicity histogram range
313   Int_t    fHistoV0MMin   ;                   // Minimum value of V0 multiplicity histogram range
314   Int_t    fHistoTrMBins  ;                   // Number of bins in V0 multiplicity axis
315   Int_t    fHistoTrMMax   ;                   // Maximum value of track multiplicity histogram range
316   Int_t    fHistoTrMMin   ;                   // Minimum value of track multiplicity histogram range
317   Int_t    fHistoFinePtBins;                  // fine binning for fhAmpId histogram
318   Float_t  fHistoFinePtMax;                   // maximum pt value for fhAmpId histogram
319   Float_t  fHistoFinePtMin;                   // minimum pt value for fhAmpId histogram
320   Int_t    fHistoPOverEBins;                  // p/E histogram number of bins
321   Float_t  fHistoPOverEMax;                   // p/E maximum value
322   Float_t  fHistoPOverEMin;                   // p/E minimum value
323   Int_t    fHistodEdxBins;                    // dEdx histogram number of bins
324   Float_t  fHistodEdxMax;                     // dEdx maximum value
325   Float_t  fHistodEdxMin;                     // dEdx minimum value
326   Int_t    fHistodRBins;                      // dR histogram number of bins
327   Float_t  fHistodRMax;                       // dR maximum value
328   Float_t  fHistodRMin;                       // dR minimum value
329   Int_t    fHistoTimeBins;                    // cell time histogram number of bins
330   Float_t  fHistoTimeMax;                     // cell time maximum value
331   Float_t  fHistoTimeMin;                     // cell time minimum value
332   Int_t    fHistoNClusCellBins;               // number of cells per cluster histogram number of bins
333   Int_t    fHistoNClusCellMax;                // number of cells per cluster maximum value
334   Int_t    fHistoNClusCellMin;                // number of cells per cluster minimum value
335   Int_t    fHistoNCellsBins;                  // number of cells histogram number of bins
336   Int_t    fHistoNCellsMax;                   // number of cells maximum value
337   Int_t    fHistoNCellsMin;                   // number of cells minimum value
338   Int_t    fHistoNClustersBins;               // number of clusters histogram number of bins
339   Int_t    fHistoNClustersMax;                // number of clusters maximum value
340   Int_t    fHistoNClustersMin;                // number of clusters minimum value  
341   Int_t    fHistoRatioBins;                   // ratio histogram number of bins
342   Float_t  fHistoRatioMax;                    // ratio maximum value
343   Float_t  fHistoRatioMin;                    // ratio minimum value
344   Int_t    fHistoVertexDistBins;              // vertex distance histogram number of bins
345   Float_t  fHistoVertexDistMax;               // vertex distance maximum value
346   Float_t  fHistoVertexDistMin;               // vertex distance minimum value  
347   Int_t    fHistoRBins;                       // r =sqrt(x^2+y^2+z^2) (cm) position histogram number of bins
348   Float_t  fHistoRMax;                        // r =sqrt(x^2+y^2+z^2) (cm)  maximum value
349   Float_t  fHistoRMin;                        // r =sqrt(x^2+y^2+z^2) (cm)  minimum value       
350   Int_t    fHistoXBins;                       // x (cm) position histogram number of bins
351   Float_t  fHistoXMax;                        // x (cm) position maximum value
352   Float_t  fHistoXMin;                        // x (cm) position minimum value
353   Int_t    fHistoYBins;                       // y (cm) position histogram number of bins
354   Float_t  fHistoYMax;                        // y (cm) position maximum value
355   Float_t  fHistoYMin;                        // y (cm) position minimum value
356   Int_t    fHistoZBins;                       // z (cm) position histogram number of bins
357   Float_t  fHistoZMax;                        // z (cm) position maximum value
358   Float_t  fHistoZMin;                        // z (cm) position minimum value
359   Int_t    fHistoSSBins;                      // Shower Shape parameter histogram number of bins
360   Float_t  fHistoSSMax;                       // Shower Shape parameter position maximum value
361   Float_t  fHistoSSMin;                       // Shower Shape parameter position minimum value
362   Int_t    fHistoDiffTimeBins;                // Difference cluster pair time parameter histogram number of bins
363   Float_t  fHistoDiffTimeMax;                 // Difference cluster pair time parameter position maximum value
364   Float_t  fHistoDiffTimeMin;                 // Difference cluster pair time parameter position minimum value  
365   Int_t    fHistoTrackResidualEtaBins ;       // Number of bins in dEta (cluster-track) axis
366   Float_t  fHistoTrackResidualEtaMax  ;       // Maximum value of dEta (cluster-track) histogram range
367   Float_t  fHistoTrackResidualEtaMin  ;       // Minimum value of dEta (cluster-track) histogram range          
368   Int_t    fHistoTrackResidualPhiBins ;       // Number of bins in dPhi axis
369   Float_t  fHistoTrackResidualPhiMax  ;       // Maximum value of dPhi (cluster-track) histogram range
370   Float_t  fHistoTrackResidualPhiMin  ;       // Minimum value of dPhi (cluster-track) histogram range
371   
372   AliHistogramRanges(              const AliHistogramRanges & h) ; // cpy ctor
373   AliHistogramRanges & operator = (const AliHistogramRanges & h) ; // cpy assignment
374   
375   ClassDef(AliHistogramRanges,3)
376 } ;
377
378
379 #endif //ALIHISTOGRAMRANGES_H
380
381
382