]>
Commit | Line | Data |
---|---|---|
172f0088 | 1 | #ifndef AliOADBCentrality_H |
2 | #define AliOADBCentrality_H | |
3 | /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //------------------------------------------------------------------------- | |
9 | // OADB class for run dependent centrality scaling factors and | |
10 | // data for centrality determination | |
11 | // Author: Andreas Morsch, CERN | |
12 | //------------------------------------------------------------------------- | |
13 | ||
14 | #include <TNamed.h> | |
15 | #include <TList.h> | |
16 | #include <TH1F.h> | |
17 | #include <TH2F.h> | |
18 | ||
19 | ||
20 | class AliOADBCentrality : public TNamed { | |
21 | ||
22 | public : | |
23 | AliOADBCentrality(); | |
24 | AliOADBCentrality(char* name); | |
25 | virtual ~AliOADBCentrality(); | |
26 | Float_t V0MScaleFactor() const {return fV0MScaleFactor;} | |
27 | Float_t SPDScaleFactor() const {return fSPDScaleFactor;} | |
28 | Float_t TPCScaleFactor() const {return fTPCScaleFactor;} | |
29 | Float_t V0MScaleFactorMC() const {return fV0MScaleFactorMC;} | |
30 | ||
31 | Float_t V0MSPDOutlierPar0() const {return fV0MSPDOutlierPar0 ;} | |
32 | Float_t V0MSPDOutlierPar1() const {return fV0MSPDOutlierPar1 ;} | |
33 | Float_t V0MTPCOutlierPar0() const {return fV0MTPCOutlierPar0 ;} | |
34 | Float_t V0MTPCOutlierPar1() const {return fV0MTPCOutlierPar1 ;} | |
35 | ||
36 | Float_t V0MSPDSigmaOutlierPar0() const {return fV0MSPDSigmaOutlierPar0 ;} | |
37 | Float_t V0MSPDSigmaOutlierPar1() const {return fV0MSPDSigmaOutlierPar1 ;} | |
38 | Float_t V0MSPDSigmaOutlierPar2() const {return fV0MSPDSigmaOutlierPar2 ;} | |
39 | Float_t V0MTPCSigmaOutlierPar0() const {return fV0MTPCSigmaOutlierPar0 ;} | |
40 | Float_t V0MTPCSigmaOutlierPar1() const {return fV0MTPCSigmaOutlierPar1 ;} | |
41 | Float_t V0MTPCSigmaOutlierPar2() const {return fV0MTPCSigmaOutlierPar2 ;} | |
42 | ||
43 | Float_t V0MZDCOutlierPar0() const {return fV0MZDCOutlierPar0 ;} | |
44 | Float_t V0MZDCOutlierPar1() const {return fV0MZDCOutlierPar1 ;} | |
45 | Float_t V0MZDCEcalOutlierPar0() const {return fV0MZDCEcalOutlierPar0 ;} | |
46 | Float_t V0MZDCEcalOutlierPar1() const {return fV0MZDCEcalOutlierPar1 ;} | |
47 | ||
a43ed687 | 48 | Float_t ZVCut() const {return fZVCut;} |
49 | Float_t OutliersCut() const {return fOutliersCut;} | |
50 | Bool_t UseScaling() const {return fUseScaling;} | |
51 | Bool_t UseCleaning() const {return fUseCleaning;} | |
52 | ||
172f0088 | 53 | TH1F* V0hist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0M_percentile")));} |
54 | TH1F* TPChist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultTRK_percentile")));} | |
55 | TH1F* SPDhist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultCL1_percentile")));} | |
56 | TH2F* ZEMvsZDChist() const {return ((TH2F*) (Hists2D()->FindObject("fHOutMultZEMvsZDC")));} | |
57 | TList* Hists1D() const {return f1DHistos;} | |
58 | TList* Hists2D() const {return f2DHistos;} | |
59 | ||
60 | void SetScaleFactors(Float_t v0m, Float_t spd, Float_t tpc, Float_t v0mMC) | |
61 | {fV0MScaleFactor = v0m; fSPDScaleFactor = spd; fTPCScaleFactor = tpc; fV0MScaleFactorMC = v0mMC;} | |
62 | ||
63 | void SetOutlierV0MSPDFactors(Float_t a1, Float_t a2, Float_t a3, Float_t a4, Float_t a5) | |
64 | {fV0MSPDOutlierPar0=a1;fV0MSPDOutlierPar1=a2;fV0MSPDSigmaOutlierPar0=a3;fV0MSPDSigmaOutlierPar1=a4;fV0MSPDSigmaOutlierPar2=a5;} | |
65 | ||
66 | void SetOutlierV0MTPCFactors(Float_t a1, Float_t a2, Float_t a3, Float_t a4, Float_t a5) | |
67 | {fV0MTPCOutlierPar0=a1;fV0MTPCOutlierPar1=a2;fV0MTPCSigmaOutlierPar0=a3;fV0MTPCSigmaOutlierPar1=a4;fV0MTPCSigmaOutlierPar2=a5;} | |
68 | ||
69 | void SetOutlierV0MZDCFactors(Float_t a1, Float_t a2) | |
70 | {fV0MZDCOutlierPar0=a1;fV0MZDCOutlierPar1=a2;} | |
71 | ||
72 | void SetOutlierV0MZDCEcalFactors(Float_t a1, Float_t a2) | |
73 | {fV0MZDCEcalOutlierPar0=a1;fV0MZDCEcalOutlierPar1=a2;} | |
74 | ||
75 | void SetHistReferences(TList* l1, TList* l2) | |
76 | {f1DHistos = l1; f2DHistos = l2;} | |
77 | ||
a43ed687 | 78 | void SetZVCut(Float_t z) |
79 | {fZVCut=z;} | |
80 | ||
81 | void SetOutliersCut(Float_t o) | |
82 | {fOutliersCut=o;} | |
83 | ||
84 | void SetUseScaling(Bool_t x) | |
85 | {fUseScaling=x;} | |
86 | ||
87 | void SetUseCleaning(Bool_t x) | |
88 | {fUseCleaning=x;} | |
89 | ||
90 | ||
172f0088 | 91 | private: |
92 | AliOADBCentrality(const AliOADBCentrality& cont); | |
93 | AliOADBCentrality& operator=(const AliOADBCentrality& cont); | |
94 | ||
95 | private: | |
96 | Float_t fV0MScaleFactor; // V0 scale factor | |
97 | Float_t fSPDScaleFactor; // SPD scale factor | |
98 | Float_t fTPCScaleFactor; // TPC scale factor | |
99 | Float_t fV0MScaleFactorMC; // V0 scale factor for MC | |
100 | ||
101 | Float_t fV0MSPDOutlierPar0; | |
102 | Float_t fV0MSPDOutlierPar1; | |
103 | Float_t fV0MTPCOutlierPar0; | |
104 | Float_t fV0MTPCOutlierPar1; | |
105 | ||
106 | Float_t fV0MSPDSigmaOutlierPar0; | |
107 | Float_t fV0MSPDSigmaOutlierPar1; | |
108 | Float_t fV0MSPDSigmaOutlierPar2; | |
109 | Float_t fV0MTPCSigmaOutlierPar0; | |
110 | Float_t fV0MTPCSigmaOutlierPar1; | |
111 | Float_t fV0MTPCSigmaOutlierPar2; | |
112 | ||
113 | Float_t fV0MZDCOutlierPar0; | |
114 | Float_t fV0MZDCOutlierPar1; | |
115 | Float_t fV0MZDCEcalOutlierPar0; | |
116 | Float_t fV0MZDCEcalOutlierPar1; | |
117 | ||
a43ed687 | 118 | Float_t fZVCut; |
119 | Float_t fOutliersCut; | |
120 | Bool_t fUseScaling; | |
121 | Bool_t fUseCleaning; | |
122 | ||
172f0088 | 123 | TList* f1DHistos; // Reference to list of 1D Centrality histos |
124 | TList* f2DHistos; // Reference to list of 2D Centrality histos | |
a43ed687 | 125 | ClassDef(AliOADBCentrality, 3); |
172f0088 | 126 | }; |
127 | ||
128 | #endif |