]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliCentrality.h
Wrong versiion was committed before, this is the correct one
[u/mrichter/AliRoot.git] / STEER / AliCentrality.h
CommitLineData
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 15class 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;}
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;}
be0d4e9b 31 void SetCentralityCL1(Float_t cent) {fCentralityCL1 = cent;}
d15bf53f 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
aa7e002c 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;
d15bf53f 41
aa7e002c 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;
a540a9d3 46
aa7e002c 47 Int_t GetQuality() const;
a540a9d3 48
d15bf53f 49 private:
a540a9d3 50 Int_t fQuality; // Quality of centrality determination
d15bf53f 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
be0d4e9b 56 Float_t fCentralityCL1; // Centrality from Clusters in layer 0
d15bf53f 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
28a38d7e 61 ClassDef(AliCentrality, 2)
d15bf53f 62};
fba4b2e2 63#endif //ALICENTRALITY_H