]>
Commit | Line | Data |
---|---|---|
d15bf53f | 1 | //-*- Mode: C++ -*- |
fba4b2e2 | 2 | #ifndef ALICentrality_H |
3 | #define ALICentrality_H | |
d15bf53f | 4 | /* This file is property of and copyright by the ALICE HLT Project * |
5 | * ALICE Experiment at CERN, All rights reserved. * | |
6 | * See cxx source for full Copyright notice */ | |
7 | ||
8 | //***************************************************** | |
a540a9d3 | 9 | // Class AliCentrality |
d15bf53f | 10 | // author: Alberica Toia |
11 | //***************************************************** | |
12 | ||
13 | #include "TNamed.h" | |
14 | ||
fba4b2e2 | 15 | class AliCentrality : public TNamed |
d15bf53f | 16 | { |
17 | public: | |
18 | ||
fba4b2e2 | 19 | AliCentrality(); /// constructor |
20 | ~AliCentrality(); /// destructor | |
21 | AliCentrality(const AliCentrality& cnt); /// copy constructor | |
22 | AliCentrality& operator=(const AliCentrality& cnt); /// assignment operator | |
d15bf53f | 23 | |
24 | /// set centrality result | |
a540a9d3 | 25 | void SetQuality(Int_t quality) {fQuality = quality;} |
d15bf53f | 26 | void SetCentralityV0M(Float_t cent) {fCentralityV0M = cent;} |
13e74ee2 | 27 | void SetCentralityV0A(Float_t cent) {fCentralityV0A = cent;} |
28 | void SetCentralityV0C(Float_t cent) {fCentralityV0C = cent;} | |
d15bf53f | 29 | void SetCentralityFMD(Float_t cent) {fCentralityFMD = cent;} |
30 | void SetCentralityTRK(Float_t cent) {fCentralityTRK = cent;} | |
31 | void SetCentralityTKL(Float_t cent) {fCentralityTKL = cent;} | |
32 | void SetCentralityCL0(Float_t cent) {fCentralityCL0 = cent;} | |
be0d4e9b | 33 | void SetCentralityCL1(Float_t cent) {fCentralityCL1 = cent;} |
13e74ee2 | 34 | void SetCentralityCND(Float_t cent) {fCentralityCND = cent;} |
8432b617 | 35 | void SetCentralityNPA(Float_t cent) {fCentralityNPA = cent;} |
99029fba | 36 | void SetCentralityZNA(Float_t cent) {fCentralityZNA = cent;} |
d15bf53f | 37 | void SetCentralityV0MvsFMD(Float_t cent) {fCentralityV0MvsFMD = cent;} |
38 | void SetCentralityTKLvsV0M(Float_t cent) {fCentralityTKLvsV0M = cent;} | |
39 | void SetCentralityZEMvsZDC(Float_t cent) {fCentralityZEMvsZDC = cent;} | |
40 | ||
41 | /// get centrality result | |
aa7e002c | 42 | Float_t GetCentralityPercentile(const char *method) const; |
43 | Int_t GetCentralityClass10(const char *method) const; | |
44 | Int_t GetCentralityClass5(const char *method) const; | |
45 | Bool_t IsEventInCentralityClass(Float_t a, Float_t b, const char *method) const; | |
d15bf53f | 46 | |
aa7e002c | 47 | Float_t GetCentralityPercentileUnchecked(const char *method) const; |
48 | Int_t GetCentralityClass10Unchecked(const char *method) const; | |
49 | Int_t GetCentralityClass5Unchecked(const char *method) const; | |
50 | Bool_t IsEventInCentralityClassUnchecked(Float_t a, Float_t b, const char *method) const; | |
a540a9d3 | 51 | |
aa7e002c | 52 | Int_t GetQuality() const; |
93d96ff5 | 53 | void Reset(); |
a540a9d3 | 54 | |
d15bf53f | 55 | private: |
a540a9d3 | 56 | Int_t fQuality; // Quality of centrality determination |
13e74ee2 | 57 | Float_t fCentralityV0M; // Centrality from V0A+V0C |
58 | Float_t fCentralityV0A; // Centrality from V0A | |
59 | Float_t fCentralityV0C; // Centrality from V0C | |
d15bf53f | 60 | Float_t fCentralityFMD; // Centrality from FMD |
61 | Float_t fCentralityTRK; // Centrality from tracks | |
62 | Float_t fCentralityTKL; // Centrality from tracklets | |
63 | Float_t fCentralityCL0; // Centrality from Clusters in layer 0 | |
13e74ee2 | 64 | Float_t fCentralityCL1; // Centrality from Clusters in layer 1 |
65 | Float_t fCentralityCND; // Centrality from tracks (candle condition) | |
8432b617 | 66 | Float_t fCentralityNPA; // Centrality from Npart (MC) |
99029fba | 67 | Float_t fCentralityZNA; // Centrality from ZNA) |
d15bf53f | 68 | Float_t fCentralityV0MvsFMD; // Centrality from V0 vs FMD |
69 | Float_t fCentralityTKLvsV0M; // Centrality from tracklets vs V0 | |
70 | Float_t fCentralityZEMvsZDC; // Centrality from ZEM vs ZDC | |
71 | ||
99029fba | 72 | ClassDef(AliCentrality, 5) |
d15bf53f | 73 | }; |
fba4b2e2 | 74 | #endif //ALICENTRALITY_H |