Add condition to select events with at least one track
[u/mrichter/AliRoot.git] / OADB / AliOADBCentrality.h
CommitLineData
8432b617 1#ifndef AliOADBCentrality_H\r
2#define AliOADBCentrality_H\r
3/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *\r
4 * See cxx source for full Copyright notice */\r
5\r
6/* $Id$ */\r
7\r
8//-------------------------------------------------------------------------\r
9// OADB class for run dependent centrality scaling factors and \r
10// data for centrality determination\r
11// Author: Andreas Morsch, CERN\r
12//-------------------------------------------------------------------------\r
13\r
14#include <TNamed.h>\r
15#include <TList.h>\r
16#include <TH1F.h>\r
17#include <TH2F.h>\r
18\r
19\r
20class AliOADBCentrality : public TNamed {\r
21\r
22 public :\r
23 AliOADBCentrality();\r
24 AliOADBCentrality(char* name);\r
25 virtual ~AliOADBCentrality();\r
26 Float_t V0MScaleFactor() const {return fV0MScaleFactor;}\r
27 Float_t SPDScaleFactor() const {return fSPDScaleFactor;}\r
28 Float_t TPCScaleFactor() const {return fTPCScaleFactor;}\r
29 Float_t V0MScaleFactorMC() const {return fV0MScaleFactorMC;}\r
30\r
31 Float_t V0MSPDOutlierPar0() const {return fV0MSPDOutlierPar0 ;}\r
32 Float_t V0MSPDOutlierPar1() const {return fV0MSPDOutlierPar1 ;}\r
33 Float_t V0MTPCOutlierPar0() const {return fV0MTPCOutlierPar0 ;}\r
34 Float_t V0MTPCOutlierPar1() const {return fV0MTPCOutlierPar1 ;}\r
35\r
36 Float_t V0MSPDSigmaOutlierPar0() const {return fV0MSPDSigmaOutlierPar0 ;}\r
37 Float_t V0MSPDSigmaOutlierPar1() const {return fV0MSPDSigmaOutlierPar1 ;}\r
38 Float_t V0MSPDSigmaOutlierPar2() const {return fV0MSPDSigmaOutlierPar2 ;}\r
39 Float_t V0MTPCSigmaOutlierPar0() const {return fV0MTPCSigmaOutlierPar0 ;}\r
40 Float_t V0MTPCSigmaOutlierPar1() const {return fV0MTPCSigmaOutlierPar1 ;}\r
41 Float_t V0MTPCSigmaOutlierPar2() const {return fV0MTPCSigmaOutlierPar2 ;}\r
42\r
43 Float_t V0MZDCOutlierPar0() const {return fV0MZDCOutlierPar0 ;}\r
44 Float_t V0MZDCOutlierPar1() const {return fV0MZDCOutlierPar1 ;}\r
45 Float_t V0MZDCEcalOutlierPar0() const {return fV0MZDCEcalOutlierPar0 ;}\r
46 Float_t V0MZDCEcalOutlierPar1() const {return fV0MZDCEcalOutlierPar1 ;}\r
47\r
48 Float_t ZVCut() const {return fZVCut;}\r
49 Float_t OutliersCut() const {return fOutliersCut;}\r
50 Bool_t UseScaling() const {return fUseScaling;}\r
51 Bool_t UseCleaning() const {return fUseCleaning;}\r
52\r
53 TH1F* V0hist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0M_percentile")));}\r
54 TH1F* V0Ahist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0A_percentile")));}\r
55 TH1F* V0Chist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0C_percentile")));}\r
56 TH1F* TPChist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultTRK_percentile")));}\r
57 TH1F* CNDhist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultCND_percentile")));}\r
58 TH1F* SPDhist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultCL1_percentile")));}\r
39a3e400 59 TH1F* FMDhist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultFMD_percentile")));}\r
99029fba 60 TH1F* ZNAhist() const {return ((TH1F*) (Hists1D()->FindObject("hZNA")));}\r
8432b617 61 TH2F* ZEMvsZDChist() const {return ((TH2F*) (Hists2D()->FindObject("fHOutMultZEMvsZDC")));}\r
39a3e400 62\r
63 TH1F* NPAhist() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultNPA_percentile")));}\r
64 TH1F* NPAhistDPM() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultNPADPM_percentile")));}\r
65\r
66 TH1F* V0histtrue() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0Mtrue_percentile")));}\r
67 TH1F* V0Ahisttrue() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0Atrue_percentile")));}\r
68 TH1F* V0Chisttrue() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0Ctrue_percentile")));}\r
69 TH1F* TPChisttrue() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultTRKtrue_percentile")));}\r
70 TH1F* CNDhisttrue() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultCNDtrue_percentile")));}\r
71 TH1F* SPDhisttrue() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultCL1true_percentile")));}\r
72 TH1F* FMDhisttrue() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultFMDtrue_percentile")));}\r
73 TH1F* ZNAhisttrue() const {return ((TH1F*) (Hists1D()->FindObject("hZNAtrue")));}\r
74\r
75 TH1F* V0histtrueDPM() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0MtrueDPM_percentile")));}\r
76 TH1F* V0AhisttrueDPM() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0AtrueDPM_percentile")));}\r
77 TH1F* V0ChisttrueDPM() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0CtrueDPM_percentile")));}\r
78 TH1F* TPChisttrueDPM() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultTRKtrueDPM_percentile")));}\r
79 TH1F* CNDhisttrueDPM() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultCNDtrueDPM_percentile")));}\r
80 TH1F* SPDhisttrueDPM() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultCL1trueDPM_percentile")));}\r
81 TH1F* FMDhisttrueDPM() const {return ((TH1F*) (Hists1D()->FindObject("fHOutMultFMDtrueDPM_percentile")));}\r
82 TH1F* ZNAhisttrueDPM() const {return ((TH1F*) (Hists1D()->FindObject("hZNAtrueDPM")));}\r
83\r
8432b617 84 TList* Hists1D() const {return f1DHistos;}\r
85 TList* Hists2D() const {return f2DHistos;}\r
86\r
87 void SetScaleFactors(Float_t v0m, Float_t spd, Float_t tpc, Float_t v0mMC)\r
88 {fV0MScaleFactor = v0m; fSPDScaleFactor = spd; fTPCScaleFactor = tpc; fV0MScaleFactorMC = v0mMC;}\r
89 \r
90 void SetOutlierV0MSPDFactors(Float_t a1, Float_t a2, Float_t a3, Float_t a4, Float_t a5)\r
91 {fV0MSPDOutlierPar0=a1;fV0MSPDOutlierPar1=a2;fV0MSPDSigmaOutlierPar0=a3;fV0MSPDSigmaOutlierPar1=a4;fV0MSPDSigmaOutlierPar2=a5;}\r
92 \r
93 void SetOutlierV0MTPCFactors(Float_t a1, Float_t a2, Float_t a3, Float_t a4, Float_t a5)\r
94 {fV0MTPCOutlierPar0=a1;fV0MTPCOutlierPar1=a2;fV0MTPCSigmaOutlierPar0=a3;fV0MTPCSigmaOutlierPar1=a4;fV0MTPCSigmaOutlierPar2=a5;}\r
95\r
96 void SetOutlierV0MZDCFactors(Float_t a1, Float_t a2)\r
97 {fV0MZDCOutlierPar0=a1;fV0MZDCOutlierPar1=a2;}\r
98 \r
99 void SetOutlierV0MZDCEcalFactors(Float_t a1, Float_t a2)\r
100 {fV0MZDCEcalOutlierPar0=a1;fV0MZDCEcalOutlierPar1=a2;}\r
101 \r
102 void SetHistReferences(TList* l1, TList* l2)\r
103 {f1DHistos = l1; f2DHistos = l2;}\r
104\r
105 void SetZVCut(Float_t z)\r
106 {fZVCut=z;}\r
107\r
108 void SetOutliersCut(Float_t o)\r
109 {fOutliersCut=o;}\r
110\r
111 void SetUseScaling(Bool_t x)\r
112 {fUseScaling=x;}\r
113\r
114 void SetUseCleaning(Bool_t x)\r
115 {fUseCleaning=x;}\r
116\r
117\r
118 private:\r
119 AliOADBCentrality(const AliOADBCentrality& cont); \r
120 AliOADBCentrality& operator=(const AliOADBCentrality& cont);\r
121\r
122 private:\r
123 Float_t fV0MScaleFactor; // V0 scale factor\r
124 Float_t fSPDScaleFactor; // SPD scale factor\r
125 Float_t fTPCScaleFactor; // TPC scale factor\r
126 Float_t fV0MScaleFactorMC; // V0 scale factor for MC\r
127\r
128 Float_t fV0MSPDOutlierPar0; // V0-SPD outlier parameterisation Par0\r
129 Float_t fV0MSPDOutlierPar1; // Par1\r
130 Float_t fV0MTPCOutlierPar0; // Par2\r
131 Float_t fV0MTPCOutlierPar1; // Par3\r
132\r
133 Float_t fV0MSPDSigmaOutlierPar0; // V0-SPD Sigma outlier parameterisation Par0\r
134 Float_t fV0MSPDSigmaOutlierPar1; // Par1\r
135 Float_t fV0MSPDSigmaOutlierPar2; // Par2\r
136 Float_t fV0MTPCSigmaOutlierPar0; // Par3\r
137 Float_t fV0MTPCSigmaOutlierPar1; // Par4\r
138 Float_t fV0MTPCSigmaOutlierPar2; // Par5\r
139\r
140 Float_t fV0MZDCOutlierPar0; // V0-ZDC outlier parameterisation Par0\r
141 Float_t fV0MZDCOutlierPar1; // Par1\r
142 Float_t fV0MZDCEcalOutlierPar0; // Par2\r
143 Float_t fV0MZDCEcalOutlierPar1; // Par3\r
144\r
145 Float_t fZVCut; // zV-cut\r
146 Float_t fOutliersCut; // outlier cuts\r
147 Bool_t fUseScaling; // Flag for scaling\r
148 Bool_t fUseCleaning; // Flag for cleaning\r
149\r
150 TList* f1DHistos; // Reference to list of 1D Centrality histos \r
151 TList* f2DHistos; // Reference to list of 2D Centrality histos\r
152 ClassDef(AliOADBCentrality, 3);\r
153};\r
154\r
155#endif\r