]>
Commit | Line | Data |
---|---|---|
745913ae | 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 | //Pseudorapidity-rapidity | |
62 | ||
63 | Int_t GetHistoEtaBins() const { return fHistoEtaBins ; } | |
64 | Float_t GetHistoEtaMin() const { return fHistoEtaMin ; } | |
65 | Float_t GetHistoEtaMax() const { return fHistoEtaMax ; } | |
66 | ||
67 | void SetHistoEtaRangeAndNBins(Float_t min, Float_t max, Int_t n) { | |
68 | fHistoEtaBins = n ; fHistoEtaMax = max ; fHistoEtaMin = min ; } | |
69 | ||
70 | //Mass | |
71 | ||
72 | Int_t GetHistoMassBins() const { return fHistoMassBins ; } | |
73 | Float_t GetHistoMassMin() const { return fHistoMassMin ; } | |
74 | Float_t GetHistoMassMax() const { return fHistoMassMax ; } | |
75 | ||
76 | void SetHistoMassRangeAndNBins(Float_t min, Float_t max, Int_t n) { | |
77 | fHistoMassBins = n ; fHistoMassMax = max ; fHistoMassMin = min ; } | |
78 | ||
79 | //Asymetry | |
80 | ||
81 | Int_t GetHistoAsymmetryBins() const { return fHistoAsymBins ; } | |
82 | Float_t GetHistoAsymmetryMin() const { return fHistoAsymMin ; } | |
83 | Float_t GetHistoAsymmetryMax() const { return fHistoAsymMax ; } | |
84 | ||
85 | void SetHistoAsymmetryRangeAndNBins(Float_t min, Float_t max, Int_t n) { | |
86 | fHistoAsymBins = n ; fHistoAsymMax = max ; fHistoAsymMin = min ; } | |
87 | ||
88 | //VZero | |
89 | ||
90 | Int_t GetHistoV0SignalBins() const { return fHistoV0SBins ; } | |
91 | Int_t GetHistoV0SignalMin() const { return fHistoV0SMin ; } | |
92 | Int_t GetHistoV0SignalMax() const { return fHistoV0SMax ; } | |
93 | ||
94 | void SetHistoV0SignalRangeAndNBins(Int_t min, Int_t max, Int_t n) { | |
95 | fHistoV0SBins = n ; fHistoV0SMax = max ; fHistoV0SMin = min ; } | |
96 | ||
97 | Int_t GetHistoV0MultiplicityBins() const { return fHistoV0MBins ; } | |
98 | Int_t GetHistoV0MultiplicityMin() const { return fHistoV0MMin ; } | |
99 | Int_t GetHistoV0MultiplicityMax() const { return fHistoV0MMax ; } | |
100 | ||
101 | void SetHistoV0MultiplicityRangeAndNBins(Int_t min, Int_t max, Int_t n) { | |
102 | fHistoV0MBins = n ; fHistoV0MMax = max ; fHistoV0MMin = min ; } | |
103 | ||
104 | // Track multiplicity | |
105 | ||
106 | Int_t GetHistoTrackMultiplicityBins() const { return fHistoTrMBins ; } | |
107 | Int_t GetHistoTrackMultiplicityMin() const { return fHistoTrMMin ; } | |
108 | Int_t GetHistoTrackMultiplicityMax() const { return fHistoTrMMax ; } | |
109 | ||
110 | void SetHistoTrackMultiplicityRangeAndNBins(Int_t min, Int_t max, Int_t n) { | |
111 | fHistoTrMBins = n ; fHistoTrMMax = max ; fHistoTrMMin = min ; } | |
112 | ||
113 | // dEdx | |
114 | ||
115 | Int_t GetHistodEdxBins() const { return fHistodEdxBins ; } | |
116 | Float_t GetHistodEdxMin() const { return fHistodEdxMin ; } | |
117 | Float_t GetHistodEdxMax() const { return fHistodEdxMax ; } | |
118 | ||
119 | void SetHistodEdxRangeAndNBins (Float_t min, Float_t max, Int_t n) { | |
120 | fHistodEdxBins = n ; fHistodEdxMax = max ; fHistodEdxMin = min ; } | |
121 | ||
122 | // E over p | |
123 | ||
124 | Int_t GetHistoPOverEBins() const { return fHistoPOverEBins ; } | |
125 | Float_t GetHistoPOverEMin() const { return fHistoPOverEMin ; } | |
126 | Float_t GetHistoPOverEMax() const { return fHistoPOverEMax ; } | |
127 | ||
128 | void SetHistoPOverERangeAndNBins (Float_t min, Float_t max, Int_t n) { | |
129 | fHistoPOverEBins = n ; fHistoPOverEMax = max ; fHistoPOverEMin = min ; } | |
130 | ||
131 | // Number of cells per clusters | |
132 | ||
133 | Int_t GetHistoNClusterCellBins() const { return fHistoNClusCellBins ; } | |
134 | Int_t GetHistoNClusterCellMin() const { return fHistoNClusCellMin ; } | |
135 | Int_t GetHistoNClusterCellMax() const { return fHistoNClusCellMax ; } | |
136 | ||
137 | void SetHistoNClusterCellRangeAndNBins(Int_t min, Int_t max, Int_t n) { | |
138 | fHistoNClusCellBins = n ; fHistoNClusCellMax = max ; fHistoNClusCellMin = min ; } | |
139 | ||
140 | // Number of clusters | |
141 | ||
142 | Int_t GetHistoNClustersBins() const { return fHistoNClustersBins ; } | |
143 | Int_t GetHistoNClustersMin() const { return fHistoNClustersMin ; } | |
144 | Int_t GetHistoNClustersMax() const { return fHistoNClustersMax ; } | |
145 | ||
146 | void SetHistoNClustersRangeAndNBins (Int_t min, Int_t max, Int_t n) { | |
147 | fHistoNClustersBins = n ; fHistoNClustersMax = max ; fHistoNClustersMin = min ; } | |
148 | ||
149 | // Number of cells | |
150 | ||
151 | Int_t GetHistoNCellsBins() const { return fHistoNCellsBins ; } | |
152 | Int_t GetHistoNCellsMin() const { return fHistoNCellsMin ; } | |
153 | Int_t GetHistoNCellsMax() const { return fHistoNCellsMax ; } | |
154 | ||
155 | void SetHistoNCellsRangeAndNBins (Int_t min, Int_t max, Int_t n) { | |
156 | fHistoNCellsBins = n ; fHistoNCellsMax = max ; fHistoNCellsMin = min ; } | |
157 | ||
158 | // dR | |
159 | ||
160 | Int_t GetHistodRBins() const { return fHistodRBins ; } | |
161 | Float_t GetHistodRMin() const { return fHistodRMin ; } | |
162 | Float_t GetHistodRMax() const { return fHistodRMax ; } | |
163 | ||
09273901 | 164 | void SetHistodRRangeAndNBins (Float_t min, Float_t max, Int_t n) { |
745913ae | 165 | fHistodRBins = n ; fHistodRMax = max ; fHistodRMin = min ; } |
166 | ||
167 | // Ratio | |
168 | ||
169 | Int_t GetHistoRatioBins() const { return fHistoRatioBins ; } | |
170 | Float_t GetHistoRatioMin() const { return fHistoRatioMin ; } | |
171 | Float_t GetHistoRatioMax() const { return fHistoRatioMax ; } | |
172 | ||
173 | void SetHistoRatioRangeAndNBins (Float_t min, Float_t max, Int_t n) { | |
174 | fHistoRatioBins = n ; fHistoRatioMax = max ; fHistoRatioMin = min ; } | |
175 | ||
176 | // Vertex | |
177 | ||
178 | Int_t GetHistoVertexDistBins() const { return fHistoVertexDistBins ; } | |
179 | Float_t GetHistoVertexDistMin() const { return fHistoVertexDistMin ; } | |
180 | Float_t GetHistoVertexDistMax() const { return fHistoVertexDistMax ; } | |
181 | ||
182 | void SetHistoVertexDistRangeAndNBins (Float_t min, Float_t max, Int_t n) { | |
183 | fHistoVertexDistBins = n ; fHistoVertexDistMax = max ; fHistoVertexDistMin = min ; } | |
184 | ||
185 | ||
186 | // R =sqrt(x^2+y^2+z^2) (cm) | |
187 | ||
188 | Int_t GetHistoRBins() const { return fHistoRBins ; } | |
189 | Float_t GetHistoRMin() const { return fHistoRMin ; } | |
190 | Float_t GetHistoRMax() const { return fHistoRMax ; } | |
191 | ||
192 | void SetHistoRRangeAndNBins (Float_t min, Float_t max, Int_t n) { | |
193 | fHistoRBins = n ; fHistoRMax = max ; fHistoRMin = min ; } | |
194 | ||
195 | // X position | |
196 | ||
197 | Int_t GetHistoXBins() const { return fHistoXBins ; } | |
198 | Float_t GetHistoXMin() const { return fHistoXMin ; } | |
199 | Float_t GetHistoXMax() const { return fHistoXMax ; } | |
200 | ||
201 | void SetHistoXRangeAndNBins (Float_t min, Float_t max, Int_t n) { | |
202 | fHistoXBins = n ; fHistoXMax = max ; fHistoXMin = min ; } | |
203 | ||
204 | // Y position | |
205 | ||
206 | Int_t GetHistoYBins() const { return fHistoYBins ; } | |
207 | Float_t GetHistoYMin() const { return fHistoYMin ; } | |
208 | Float_t GetHistoYMax() const { return fHistoYMax ; } | |
209 | ||
210 | void SetHistoYRangeAndNBins (Float_t min, Float_t max, Int_t n) { | |
211 | fHistoYBins = n ; fHistoYMax = max ; fHistoYMin = min ; } | |
212 | ||
213 | // Z position | |
214 | ||
215 | Int_t GetHistoZBins() const { return fHistoZBins ; } | |
216 | Float_t GetHistoZMin() const { return fHistoZMin ; } | |
217 | Float_t GetHistoZMax() const { return fHistoZMax ; } | |
218 | ||
219 | void SetHistoZRangeAndNBins (Float_t min, Float_t max, Int_t n) { | |
220 | fHistoZBins = n ; fHistoZMax = max ; fHistoZMin = min ; } | |
221 | ||
222 | // Shower shape parameters | |
223 | ||
224 | Int_t GetHistoShowerShapeBins() const { return fHistoSSBins ; } | |
225 | Float_t GetHistoShowerShapeMin() const { return fHistoSSMin ; } | |
226 | Float_t GetHistoShowerShapeMax() const { return fHistoSSMax ; } | |
227 | ||
228 | void SetHistoShowerShapeRangeAndNBins (Float_t min, Float_t max, Int_t n) { | |
229 | fHistoSSBins = n ; fHistoSSMax = max ; fHistoSSMin = min ; } | |
230 | ||
231 | // Time | |
232 | ||
233 | Int_t GetHistoTimeBins() const { return fHistoTimeBins ; } | |
234 | Float_t GetHistoTimeMin() const { return fHistoTimeMin ; } | |
235 | Float_t GetHistoTimeMax() const { return fHistoTimeMax ; } | |
236 | ||
09273901 | 237 | void SetHistoTimeRangeAndNBins (Float_t min, Float_t max, Int_t n) { |
745913ae | 238 | fHistoTimeBins = n ; fHistoTimeMax = max ; fHistoTimeMin = min ; } |
239 | ||
240 | // Cluster time difference | |
241 | ||
242 | Int_t GetHistoDiffTimeBins() const { return fHistoDiffTimeBins ; } | |
243 | Float_t GetHistoDiffTimeMin() const { return fHistoDiffTimeMin ; } | |
244 | Float_t GetHistoDiffTimeMax() const { return fHistoDiffTimeMax ; } | |
245 | ||
09273901 | 246 | void SetHistoDiffTimeRangeAndNBins(Float_t min, Float_t max, Int_t n) { |
745913ae | 247 | fHistoDiffTimeBins = n ; fHistoDiffTimeMax = max ; fHistoDiffTimeMin = min ; } |
248 | ||
09273901 | 249 | // Track matching histogrammes setters and getters |
250 | ||
251 | Int_t GetHistoTrackResidualEtaBins() const { return fHistoTrackResidualEtaBins ; } | |
252 | Float_t GetHistoTrackResidualEtaMin() const { return fHistoTrackResidualEtaMin ; } | |
253 | Float_t GetHistoTrackResidualEtaMax() const { return fHistoTrackResidualEtaMax ; } | |
254 | ||
255 | void SetHistoTrackResidualEtaRangeAndNBins(Float_t min, Float_t max, Int_t n) { | |
256 | fHistoTrackResidualEtaBins = n ; fHistoTrackResidualEtaMax = max ; fHistoTrackResidualEtaMin = min ; } | |
257 | ||
258 | Int_t GetHistoTrackResidualPhiBins() const { return fHistoTrackResidualPhiBins ; } | |
259 | Float_t GetHistoTrackResidualPhiMin() const { return fHistoTrackResidualPhiMin ; } | |
260 | Float_t GetHistoTrackResidualPhiMax() const { return fHistoTrackResidualPhiMax ; } | |
261 | ||
262 | void SetHistoTrackResidualPhiRangeAndNBins(Float_t min, Float_t max, Int_t n) { | |
263 | fHistoTrackResidualPhiBins = n ; fHistoTrackResidualPhiMax = max ; fHistoTrackResidualPhiMin = min ; } | |
264 | ||
745913ae | 265 | private: |
266 | ||
267 | Int_t fHistoPtBins ; // Number of bins in pt axis | |
268 | Float_t fHistoPtMax ; // Maximum value of pt histogram range | |
269 | Float_t fHistoPtMin ; // Minimum value of pt histogram range | |
270 | Int_t fHistoPhiBins ; // Number of bins in phi axis | |
271 | Float_t fHistoPhiMax ; // Maximum value of phi histogram range | |
272 | Float_t fHistoPhiMin ; // Minimum value of phi histogram range | |
273 | Int_t fHistoEtaBins ; // Number of bins in eta axis | |
274 | Float_t fHistoEtaMax ; // Maximum value of eta histogram range | |
275 | Float_t fHistoEtaMin ; // Minimum value of eta histogram range | |
276 | Int_t fHistoMassBins ; // Number of bins in mass axis | |
277 | Float_t fHistoMassMax ; // Maximum value of mass histogram range | |
278 | Float_t fHistoMassMin ; // Minimum value of mass histogram range | |
279 | Int_t fHistoAsymBins ; // Number of bins in asymmetry axis | |
280 | Float_t fHistoAsymMax ; // Maximum value of asymmetry histogram range | |
281 | Float_t fHistoAsymMin ; // Minimum value of asymmetry histogram range | |
282 | Int_t fHistoV0SBins ; // Number of bins in V0 signal axis | |
283 | Int_t fHistoV0SMax ; // Maximum value of V0 signal histogram range | |
284 | Int_t fHistoV0SMin ; // Minimum value of V0 signal histogram range | |
285 | Int_t fHistoV0MBins ; // Number of bins in V0 multiplicity axis | |
286 | Int_t fHistoV0MMax ; // Maximum value of V0 multiplicity histogram range | |
287 | Int_t fHistoV0MMin ; // Minimum value of V0 multiplicity histogram range | |
288 | Int_t fHistoTrMBins ; // Number of bins in V0 multiplicity axis | |
289 | Int_t fHistoTrMMax ; // Maximum value of track multiplicity histogram range | |
290 | Int_t fHistoTrMMin ; // Minimum value of track multiplicity histogram range | |
291 | Int_t fHistoFinePtBins; // fine binning for fhAmpId histogram | |
292 | Float_t fHistoFinePtMax; // maximum pt value for fhAmpId histogram | |
293 | Float_t fHistoFinePtMin; // minimum pt value for fhAmpId histogram | |
294 | Int_t fHistoPOverEBins; // p/E histogram number of bins | |
295 | Float_t fHistoPOverEMax; // p/E maximum value | |
296 | Float_t fHistoPOverEMin; // p/E minimum value | |
297 | Int_t fHistodEdxBins; // dEdx histogram number of bins | |
298 | Float_t fHistodEdxMax; // dEdx maximum value | |
299 | Float_t fHistodEdxMin; // dEdx minimum value | |
300 | Int_t fHistodRBins; // dR histogram number of bins | |
301 | Float_t fHistodRMax; // dR maximum value | |
302 | Float_t fHistodRMin; // dR minimum value | |
303 | Int_t fHistoTimeBins; // cell time histogram number of bins | |
304 | Float_t fHistoTimeMax; // cell time maximum value | |
305 | Float_t fHistoTimeMin; // cell time minimum value | |
306 | Int_t fHistoNClusCellBins; // number of cells per cluster histogram number of bins | |
307 | Int_t fHistoNClusCellMax; // number of cells per cluster maximum value | |
308 | Int_t fHistoNClusCellMin; // number of cells per cluster minimum value | |
309 | Int_t fHistoNCellsBins; // number of cells histogram number of bins | |
310 | Int_t fHistoNCellsMax; // number of cells maximum value | |
311 | Int_t fHistoNCellsMin; // number of cells minimum value | |
312 | Int_t fHistoNClustersBins; // number of clusters histogram number of bins | |
313 | Int_t fHistoNClustersMax; // number of clusters maximum value | |
314 | Int_t fHistoNClustersMin; // number of clusters minimum value | |
315 | Int_t fHistoRatioBins; // ratio histogram number of bins | |
316 | Float_t fHistoRatioMax; // ratio maximum value | |
317 | Float_t fHistoRatioMin; // ratio minimum value | |
318 | Int_t fHistoVertexDistBins; // vertex distance histogram number of bins | |
319 | Float_t fHistoVertexDistMax; // vertex distance maximum value | |
320 | Float_t fHistoVertexDistMin; // vertex distance minimum value | |
321 | Int_t fHistoRBins; // r =sqrt(x^2+y^2+z^2) (cm) position histogram number of bins | |
322 | Float_t fHistoRMax; // r =sqrt(x^2+y^2+z^2) (cm) maximum value | |
323 | Float_t fHistoRMin; // r =sqrt(x^2+y^2+z^2) (cm) minimum value | |
324 | Int_t fHistoXBins; // x (cm) position histogram number of bins | |
325 | Float_t fHistoXMax; // x (cm) position maximum value | |
326 | Float_t fHistoXMin; // x (cm) position minimum value | |
327 | Int_t fHistoYBins; // y (cm) position histogram number of bins | |
328 | Float_t fHistoYMax; // y (cm) position maximum value | |
329 | Float_t fHistoYMin; // y (cm) position minimum value | |
330 | Int_t fHistoZBins; // z (cm) position histogram number of bins | |
331 | Float_t fHistoZMax; // z (cm) position maximum value | |
332 | Float_t fHistoZMin; // z (cm) position minimum value | |
333 | Int_t fHistoSSBins; // Shower Shape parameter histogram number of bins | |
334 | Float_t fHistoSSMax; // Shower Shape parameter position maximum value | |
335 | Float_t fHistoSSMin; // Shower Shape parameter position minimum value | |
336 | Int_t fHistoDiffTimeBins; // Difference cluster pair time parameter histogram number of bins | |
337 | Float_t fHistoDiffTimeMax; // Difference cluster pair time parameter position maximum value | |
338 | Float_t fHistoDiffTimeMin; // Difference cluster pair time parameter position minimum value | |
09273901 | 339 | Int_t fHistoTrackResidualEtaBins ; // Number of bins in dEta (cluster-track) axis |
340 | Float_t fHistoTrackResidualEtaMax ; // Maximum value of dEta (cluster-track) histogram range | |
341 | Float_t fHistoTrackResidualEtaMin ; // Minimum value of dEta (cluster-track) histogram range | |
342 | Int_t fHistoTrackResidualPhiBins ; // Number of bins in dPhi axis | |
343 | Float_t fHistoTrackResidualPhiMax ; // Maximum value of dPhi (cluster-track) histogram range | |
344 | Float_t fHistoTrackResidualPhiMin ; // Minimum value of dPhi (cluster-track) histogram range | |
745913ae | 345 | |
346 | AliHistogramRanges( const AliHistogramRanges & h) ; // cpy ctor | |
347 | AliHistogramRanges & operator = (const AliHistogramRanges & h) ; // cpy assignment | |
348 | ||
09273901 | 349 | ClassDef(AliHistogramRanges,2) |
745913ae | 350 | } ; |
351 | ||
352 | ||
353 | #endif //ALIHISTOGRAMRANGES_H | |
354 | ||
355 | ||
356 |