]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliCentrality.h
Inherits from AliPIDResponse
[u/mrichter/AliRoot.git] / STEER / AliCentrality.h
1 //-*- Mode: C++ -*-
2 #ifndef ALICentrality_H
3 #define ALICentrality_H
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 //*****************************************************
9 //   Class AliCentrality
10 //   author: Alberica Toia
11 //*****************************************************
12
13 #include "TNamed.h"
14
15 class AliCentrality : public TNamed
16 {
17  public:
18
19   AliCentrality();  /// constructor
20   ~AliCentrality();  /// destructor
21   AliCentrality(const AliCentrality& cnt); /// copy constructor
22   AliCentrality& operator=(const AliCentrality& cnt);   /// assignment operator
23
24   /// set centrality result
25   void SetQuality(Int_t quality) {fQuality = quality;} 
26   void SetCentralityV0M(Float_t cent) {fCentralityV0M = cent;} 
27   void SetCentralityFMD(Float_t cent) {fCentralityFMD = cent;}
28   void SetCentralityTRK(Float_t cent) {fCentralityTRK = cent;}
29   void SetCentralityTKL(Float_t cent) {fCentralityTKL = cent;}
30   void SetCentralityCL0(Float_t cent) {fCentralityCL0 = cent;}
31   void SetCentralityCL1(Float_t cent) {fCentralityCL1 = cent;}
32   void SetCentralityV0MvsFMD(Float_t cent) {fCentralityV0MvsFMD = cent;}
33   void SetCentralityTKLvsV0M(Float_t cent) {fCentralityTKLvsV0M = cent;}
34   void SetCentralityZEMvsZDC(Float_t cent) {fCentralityZEMvsZDC = cent;}
35
36   /// get centrality result
37   Float_t GetCentralityPercentile(const char *method) const;
38   Int_t   GetCentralityClass10(const char *method) const;
39   Int_t   GetCentralityClass5(const char *method) const;
40   Bool_t  IsEventInCentralityClass(Float_t a, Float_t b, const char *method) const;
41
42   Float_t GetCentralityPercentileUnchecked(const char *method) const;
43   Int_t   GetCentralityClass10Unchecked(const char *method) const;
44   Int_t   GetCentralityClass5Unchecked(const char *method) const;
45   Bool_t  IsEventInCentralityClassUnchecked(Float_t a, Float_t b, const char *method) const;
46
47   Int_t GetQuality() const;
48
49  private:
50   Int_t   fQuality; // Quality of centrality determination
51   Float_t fCentralityV0M;   // Centrality from V0
52   Float_t fCentralityFMD;   // Centrality from FMD
53   Float_t fCentralityTRK;   // Centrality from tracks
54   Float_t fCentralityTKL;   // Centrality from tracklets
55   Float_t fCentralityCL0;   // Centrality from Clusters in layer 0
56   Float_t fCentralityCL1;   // Centrality from Clusters in layer 0
57   Float_t fCentralityV0MvsFMD;   // Centrality from V0 vs FMD
58   Float_t fCentralityTKLvsV0M;   // Centrality from tracklets vs V0
59   Float_t fCentralityZEMvsZDC;   // Centrality from ZEM vs ZDC
60
61   ClassDef(AliCentrality, 2)
62 };
63 #endif //ALICENTRALITY_H