]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowAnalyser.h
removed warnings, changed the TSelector.
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowAnalyser.h
CommitLineData
9777bfcb 1//////////////////////////////////////////////////////////////////////
2//
3// $Id$
4//
5// Author: Emanuele Simili
6//
7//////////////////////////////////////////////////////////////////////
8//
327288af 9// Description: ALICE flow analysis for AliFlowEvent(s),
10// adapted from the STAR flow analysis .
9777bfcb 11// Original Authors: Raimond Snellings & Art Poskanzer
12//
13//////////////////////////////////////////////////////////////////////
14
15#ifndef ALIFLOWANALYSER_H
16#define ALIFLOWANALYSER_H
17
327288af 18// #include <TVector2.h>
9777bfcb 19#include <TFile.h>
20#include "AliFlowConstants.h"
21
22class TH1F;
23class TH1D;
24class TH2F;
25class TH2D;
26class TH3F;
27class TProfile;
28class TProfile2D;
29class TOrdCollection;
327288af 30class TVector2 ;
9777bfcb 31
32class AliFlowTrack;
33class AliFlowV0;
34class AliFlowEvent;
35class AliFlowSelection;
327288af 36class AliFlowConstants;
9777bfcb 37
38class AliFlowAnalyser {
39
40
41public:
42
43 AliFlowAnalyser(const AliFlowSelection* flowSelect = 0); // Constructor with selection object (default selection if no one given)
44 virtual ~AliFlowAnalyser(); // Default destructor (no actions)
45
46 // Steps of the flow analysis
47 Bool_t Init() ; // Books histograms for flow analysis
48 Bool_t Finish() ; // Saves histograms, Closes stuff
49
50 // Analysis of 1 event (can be called from outside)
51 Bool_t Analyse(AliFlowEvent* flowEvent = 0) ; // Fills the defaults histograms (init them first!) and performs the calculation for the given event
52
53 // Resolution corrections to v_n (call it at the end of the evts loop)
54 Bool_t Resolution() ; // Calculates resolution and mean flow values
55
56 // Weights calculation and saving (call it at the end of the evts loop)
57 void Weightening() ; // Calculates weights and fills PhiWgt histograms
58
59 // Options
60 void SetEtaSub(Bool_t es = kTRUE) { fEtaSub = es ; } // Set eta subevents
61 void SetV1Ep1Ep2(Bool_t v1Ep1Ep2 = kTRUE) { fV1Ep1Ep2 = v1Ep1Ep2 ; } // Switches the v_1{EP1,EP2} calculation on/off
62 void SetShuffle(Bool_t sh = kTRUE) { fShuffle = sh ; } // Set to re-shuffle evt tracks
63 void SetUsePhiWgt(Bool_t pw = kTRUE) { fReadPhiWgt = pw ; } // Set to use phi weights (true by default...if there)
64 void SetUseBayWgt(Bool_t bw = kTRUE) { fBayWgt = bw ; } // Set to use bayesian weights for p.id. (false by default)
65 void SetUsePtWgt(Bool_t ptw = kTRUE) { fPtWgt = ptw ; } // uses pT as a weight for RP determination
66 void SetUseEtaWgt(Bool_t etw = kTRUE) { fEtaWgt = etw ; } // uses eta as a weight for RP determination
67 void SetUseOnePhiWgt(Bool_t opw = kTRUE) { fOnePhiWgt = opw ; } // just one wgt histogram
68 void SetUseFirstLastPhiWgt(Bool_t flw = kTRUE) { fOnePhiWgt = !flw ; } // uses 3 wgt histograms
69 void SetFlowForV0(Bool_t v0 = kTRUE) { fV0loop = v0 ; } // Enables Flow study for v0
70 void SetTrackLoop(Bool_t trkl = kTRUE) { fTrackLoop = trkl ; } // Enables Tracks loop (keep it kTRUE)
71 //void SetDebugg(Int_t db = 1) ; // set the cout's for debug (default is 1)
72
73 // Histograms
74 void SetPtRangevEta(Float_t lo, Float_t hi) { fPtRangevEta[0] = lo ; fPtRangevEta[1] = hi ; } // Sets the pt range for the v(eta) histograms.
75 void SetEtaRangevPt(Float_t lo, Float_t hi) { fEtaRangevPt[0] = lo ; fEtaRangevPt[1] = hi ; } // Sets the |eta| range for the v(pt) histograms.
76 //void SetMaxLabel(Int_t lab = 100) { fMaxLabel = lab ; }
77
78 // Output
79 void SetHistFileName(TString name) { fHistFileName = name ; } // Sets output file name
80 TString GetHistFileName() const { return fHistFileName ; }
81
82 // Phi Weights
83 TString GetWgtFileName() const { return (TString)fPhiWgtFile->GetName() ; }
84 void FillWgtArrays(TFile* wgtFile) ; // Loads phi & bayesian weights from file (flowPhiWgt.hist.root) and fills the arrays
85
86 // Results
327288af 87 Float_t GetRunBayesian(Int_t nPid=2, Int_t selN=0) const ; // Normalized Particle abundance (all events up to here)
88 void PrintRunBayesian(Int_t selN=0) const ; // Prints the normalized Particle abundance (up to here)
89 void PrintEventQuantities() const ; // Prints event by event calculated quantities
9777bfcb 90 Float_t Res(Int_t eventN, Int_t harN) const { return fRes[eventN][harN]; } // Returns the calculated resolution for the RP
91 Float_t ResErr(Int_t eventN, Int_t harN) const { return fResErr[eventN][harN]; } // Returns the estimated error on the resolution
92
93
94 protected:
95
96 // Internal methods to fill the histogram
97 Bool_t FillFromFlowEvent(AliFlowEvent* fFlowEvent) ; // Fills internal variables and array from Flow Events
98 void FillEventHistograms(AliFlowEvent* fFlowEvent) ; // Fills Events' histograms (from AliFlowEvent)
99 void FillParticleHistograms(TObjArray* fFlowTracks) ; // Fills Tracks' histograms (from AliFlowTrack)
100 void FillV0Histograms(TObjArray* fFlowV0s) ; // Fills V0s' histograms
101 Int_t HarmonicsLoop(AliFlowTrack* fFlowTrack) ; // Harmonics & Selections histograms (from AliFlowTracks)
102 //void FillLabels() ; // fills an histogram of Labels (the ones from ESD)
103
104 // Weights plugged to the event
105 void FillBayesianWgt(AliFlowEvent* fFlowEvent) ; // Plugs the bayesian weights (fBayesianWgt[0]*) into the AliFlowEvent
106 void FillEvtPhiWgt(AliFlowEvent* fFlowEvent) ; // Plugs the PhiWeights (fPhiWgt*, etc.) into the AliFlowEvent
107
108 // Resolution Calculation
109 Double_t Chi(Double_t res) ; // Calculates chi from the event plane resolution
110 Double_t ResEventPlane(Double_t chi) ; // Calculates the event plane resolution as a function of chi
111 Double_t ResEventPlaneK2(Double_t chi) ; // Calculates the event plane resolution as a function of chi for the case k=2.
112 Double_t ResEventPlaneK3(Double_t chi) ; // Calculates the event plane resolution as a function of chi for the case k=3.
113 Double_t ResEventPlaneK4(Double_t chi) ; // Calculates the event plane resolution as a function of chi for the case k=4.
114
115
116 private:
117
327288af 118 //AliFlowAnalyser(const AliFlowAnalyser &flowAnal) { flowAnal.fPhiBins ; } // Copy Constructor (dummy)
119 //AliFlowAnalyser &operator=(const AliFlowAnalyser &flowAnal) { return *this ; } // Assignment Operator
120
9777bfcb 121 // Flags
122 Bool_t fTrackLoop ; //! tracks main loop
123 Bool_t fV0loop ; //! correlation analysis is done also for neutral secundary vertex
124 Bool_t fShuffle ; //! to randomly reshuffle tracks
125 Bool_t fV1Ep1Ep2; //! Flag for v_1{EP1,EP2} calculation on/off
126 Bool_t fEtaSub; //! eta subevents
127 Bool_t fReadPhiWgt ; //! Phi Weights are applied to Phi distrib. (default is false)
128 Bool_t fBayWgt ; //! Bayesian Weights are applied to P.Id. (default is false)
129 Bool_t fRePid ; //! Re-Calculates the P.Id. basing on the bayesian wgts (if plugged in)
130
131 Bool_t fPtWgt ; //! flag to use pT as a weight for RP determination
132 Bool_t fEtaWgt ; //! flag to use eta as a weight for RP determination
133 Bool_t fOnePhiWgt ; //! if kTRUE: just one phi-wgt histogram, if kFALSE: three phi-wgt histogram (TPC+,TPC-,cross)
134
135 // Files
136 TFile* fHistFile ; //! histograms file (output)
137 TFile* fPhiWgtFile ; //! phi weight file
138 TString fHistFileName ; //! Output File Name (histograms from flow analysis)
139 //TString fFlowEvtFileName ; //! Input file name (Flow Events)
140
141 // enumerators
142 Int_t fEventNumber ; //! progressive enumeration of AliFlowEvents
143 Int_t fTrackNumber ; //! progressive enumeration of AliFlowTracks
144 Int_t fV0Number ; //! progressive enumeration of AliFlowV0s
145 //Int_t fNumberOfEvents ; //! total number of AliFlowEvents in file
146 Int_t fNumberOfTracks ; //! total number of tracks in the current event
147 Int_t fNumberOfV0s ; //! total number of v0s in the current event
148 Int_t fPidId ; //! Particle Id hypothesys of the track (0..4 for e,mu,pi,k,p)
149
150 // Internal pointers
151 AliFlowEvent* fFlowEvent ; //! pointer to AliFlowEvent
152 AliFlowTrack* fFlowTrack ; //! pointer to AliFlowTrack
153 AliFlowV0* fFlowV0 ; //! pointer to AliFlowV0
154 AliFlowSelection* fFlowSelect ; //! selection object
155 TObjArray* fFlowTracks ; //! pointer to the TrackCollection
156 TObjArray* fFlowV0s ; //! pointer to the V0Collection
157
158 Float_t fVertex[3] ; //! Event's Vertex position
159
160 // For weights
161 Int_t fPhiBins ; //! n. of phi bins
162 Float_t fPhiMin ; //! wgt histo range (phi)
163 Float_t fPhiMax ; //! wgt histo range (phi)
164
327288af 165 AliFlowConstants::PhiWgt_t fPhiWgt ; //! PhiWgt Array (all TPC)
166 AliFlowConstants::PhiWgt_t fPhiWgtPlus ; //! PhiWgt Array (TPC+)
167 AliFlowConstants::PhiWgt_t fPhiWgtMinus ; //! PhiWgt Array (TPC-)
168 AliFlowConstants::PhiWgt_t fPhiWgtCross ; //! PhiWgt Array (TPC/)
9777bfcb 169
170 // For bayesian weights
327288af 171 Double_t fBayesianWgt[AliFlowConstants::kSels][AliFlowConstants::kPid] ; //! Bayesian weights (expected particle abundance)
9777bfcb 172
173#ifndef __CINT__
327288af 174 TVector2 fQ[AliFlowConstants::kSels][AliFlowConstants::kHars]; //! flow vector
175 Float_t fPsi[AliFlowConstants::kSels][AliFlowConstants::kHars]; //! event plane angle
176 UInt_t fMult[AliFlowConstants::kSels][AliFlowConstants::kHars]; //! multiplicity
177 Float_t fQnorm[AliFlowConstants::kSels][AliFlowConstants::kHars]; //! Q/Sqrt(Mult)
178 TVector2 fQSub[AliFlowConstants::kSubs][AliFlowConstants::kSels][AliFlowConstants::kHars]; //! flow vector subs
179 Float_t fPsiSub[AliFlowConstants::kSubs][AliFlowConstants::kSels][AliFlowConstants::kHars]; //! plane angle of subevents
180 UInt_t fMultSub[AliFlowConstants::kSubs][AliFlowConstants::kSels][AliFlowConstants::kHars]; //! multiplicity subs
181 Float_t fRes[AliFlowConstants::kSels][AliFlowConstants::kHars]; //! event plane resolution
182 Float_t fResErr[AliFlowConstants::kSels][AliFlowConstants::kHars]; //! event plane resolution error
9777bfcb 183#endif /*__CINT__*/
184
185 // for Histograms
186 TString fLabel ; //! label axis : rapidity or pseudorapidity
187 Float_t fEtaMin ; //! histo range (eta)
188 Float_t fEtaMax ; //! histo range (eta)
189 Float_t fPtMin ; //! histo range (pt)
190 Float_t fPtMax ; //! histo range (pt)
191 Float_t fPtMaxPart ; //! max pt for _part histo
192 Int_t fEtaBins ; //! n. of eta bins
193 Int_t fPtBins ; //! n. of pt bins
194 Int_t fPtBinsPart ; //! n. of pt bins for _part histo
195 Float_t fPtRangevEta[2] ; //! pt range for the v(eta) histograms.
196 Float_t fEtaRangevPt[2] ; //! |eta| range for the v(pt) histograms.
197 Int_t fMaxLabel ; //! for the MC labels histogram (max bin)
198
199 TOrdCollection* fPhiWgtHistList ; //! Weights: histogram list
200 TOrdCollection* fVnResHistList ; //! Resolution and Vn: histogram list
201
202// for Single histograms
203
204 // *****************
205 // EVENTs HISTOGRAMS
206 // *****************
327288af 207 TH1F* fHistTrigger; //! histogram ...
208 TH1F* fHistMult; //! histogram ...
209 TH1F* fHistV0Mult; //! histogram ...
210 TH1F* fHistOrigMult; //! histogram ...
211 TH1F* fHistMultOverOrig; //! histogram ...
212 TH1F* fHistMultEta; //! histogram ...
213 TH1F* fHistCent; //! histogram ...
214 TH1F* fHistVertexZ; //! histogram ...
215 TH2F* fHistVertexXY2D; //! histogram ...
216 TH2F* fHistEnergyZDC; //! histogram ...
217 TH1F* fHistPartZDC; //! histogram ...
218 TProfile* fHistPidMult; //! histogram ...
219 TH1F* fHistBayPidMult; //! histogram ...
220 TH1F* fHistEtaSym; //! histogram ...
221 TH1F* fHistEtaSymPart; //! histogram ...
222 TH2F* fHistEtaSymVerZ2D; //! histogram ...
223 TH2F* fHistEtaSymVerZ2DPart; //! histogram ...
9777bfcb 224 // selected (TR & V0)
327288af 225 TH1F* fHistMultPart; //! histogram ...
226 TH1F* fHistV0MultPart; //! histogram ...
227 TH1F* fHistBayPidMultPart; //! histogram ...
228 TH1F* fHistMultPartUnit; //! histogram ...
9777bfcb 229
230 // *****************
231 // TRACKs HISTOGRAMS (all tracks)
232 // *****************
327288af 233 TH1F* fHistPtot ; //! histogram ...
234 TH1F* fHistPt ; //! histogram ...
235 TH1F* fHistCharge; //! histogram ...
236 TH1F* fHistDcaGlobal; //! histogram ...
237 TH1F* fHistDca; //! histogram ...
238 TH1F* fHistTransDca; //! histogram ...
239 TH1F* fHistChi2; //! histogram ...
240 TH1F* fHistLenght; //! histogram ...
241 TH1F* fHistInvMass ; //! histogram ...
242 TH1F* fHistFitOverMax; //! histogram ...
243 TH2D* fHistPhiPtCon ; //! histogram ...
244 TH2D* fHistPhiPtUnc ; //! histogram ...
245 TH2D* fHistPtPhiPos ; //! histogram ...
246 TH2D* fHistPtPhiNeg ; //! histogram ...
247 TH3F* fHistAllEtaPtPhi3D; //! histogram ...
248 TProfile* fHistCosPhi; //! histogram ...
249 TH2F* fHistPidPt; //! histogram ...
250 TH1F* fHistPhi ; //! histogram ...
251 TH1F* fHistPhiCons ; //! histogram ...
252 TH2D* fHistYieldAll2D; //! histogram ...
253 TH2D* fHistYieldCon2D; //! histogram ...
254 TH2D* fHistYieldUnc2D; //! histogram ...
255 TH3F* fHistConsEtaPtPhi3D; //! histogram ...
256 TH3F* fHistGlobEtaPtPhi3D; //! histogram ...
257 TH3F* fHistUncEtaPtPhi3D ; //! histogram ...
258 // fit & dE/dX for each detector (all tracks)
259 TH1F* fHistChi2ITS; //! histogram ...
260 TH1F* fHistChi2normITS; //! histogram ...
261 TH1F* fHistFitPtsITS; //! histogram ...
262 TH1F* fHistMaxPtsITS; //! histogram ...
263 TH2F* fHistMeanDedxPos2DITS; //! histogram ...
264 TH2F* fHistMeanDedxNeg2DITS; //! histogram ...
9777bfcb 265 // -
327288af 266 TH1F* fHistChi2TPC; //! histogram ...
267 TH1F* fHistChi2normTPC; //! histogram ...
268 TH1F* fHistFitPtsTPC; //! histogram ...
269 TH1F* fHistMaxPtsTPC; //! histogram ...
270 TH1F* fHistFitOverMaxTPC; //! histogram ...
271 TH2F* fHistMeanDedxPos2D; //! histogram ...
272 TH2F* fHistMeanDedxNeg2D; //! histogram ...
9777bfcb 273 // -
327288af 274 TH1F* fHistChi2TRD; //! histogram ...
275 TH1F* fHistChi2normTRD; //! histogram ...
276 TH1F* fHistFitPtsTRD; //! histogram ...
277 TH1F* fHistMaxPtsTRD; //! histogram ...
278 TH2F* fHistMeanDedxPos2DTRD; //! histogram ...
279 TH2F* fHistMeanDedxNeg2DTRD; //! histogram ...
9777bfcb 280 // -
327288af 281 TH1F* fHistChi2TOF; //! histogram ...
282 TH1F* fHistChi2normTOF; //! histogram ...
283 TH1F* fHistFitPtsTOF; //! histogram ...
284 TH1F* fHistMaxPtsTOF; //! histogram ...
285 TH2F* fHistMeanDedxPos2DTOF; //! histogram ...
286 TH2F* fHistMeanDedxNeg2DTOF; //! histogram ...
9777bfcb 287 // detector response for particle type (all tracks, based on Pid)
327288af 288 TH2F* fHistMeanTPCPiPlus ; //! histogram ...
289 TH2F* fHistMeanTPCPiMinus ; //! histogram ...
290 TH2F* fHistMeanTPCProton ; //! histogram ...
291 TH2F* fHistMeanTPCPbar ; //! histogram ...
292 TH2F* fHistMeanTPCKplus ; //! histogram ...
293 TH2F* fHistMeanTPCKminus ; //! histogram ...
294 TH2F* fHistMeanTPCDeuteron ; //! histogram ...
295 TH2F* fHistMeanTPCAntiDeuteron ; //! histogram ...
296 TH2F* fHistMeanTPCPositron ; //! histogram ...
297 TH2F* fHistMeanTPCElectron ; //! histogram ...
298 TH2F* fHistMeanTPCMuonPlus ; //! histogram ...
299 TH2F* fHistMeanTPCMuonMinus ; //! histogram ...
9777bfcb 300 // -
327288af 301 TH2F* fHistMeanITSPiPlus ; //! histogram ...
302 TH2F* fHistMeanITSPiMinus ; //! histogram ...
303 TH2F* fHistMeanITSProton ; //! histogram ...
304 TH2F* fHistMeanITSPbar ; //! histogram ...
305 TH2F* fHistMeanITSKplus ; //! histogram ...
306 TH2F* fHistMeanITSKminus ; //! histogram ...
307 TH2F* fHistMeanITSDeuteron ; //! histogram ...
308 TH2F* fHistMeanITSAntiDeuteron ; //! histogram ...
309 TH2F* fHistMeanITSPositron ; //! histogram ...
310 TH2F* fHistMeanITSElectron ; //! histogram ...
311 TH2F* fHistMeanITSMuonPlus ; //! histogram ...
312 TH2F* fHistMeanITSMuonMinus ; //! histogram ...
9777bfcb 313 // -
327288af 314 TH2F* fHistMeanTOFPiPlus ; //! histogram ...
315 TH2F* fHistMeanTOFPiMinus ; //! histogram ...
316 TH2F* fHistMeanTOFProton ; //! histogram ...
317 TH2F* fHistMeanTOFPbar ; //! histogram ...
318 TH2F* fHistMeanTOFKplus ; //! histogram ...
319 TH2F* fHistMeanTOFKminus ; //! histogram ...
320 TH2F* fHistMeanTOFDeuteron ; //! histogram ...
321 TH2F* fHistMeanTOFAntiDeuteron ; //! histogram ...
322 TH2F* fHistMeanTOFPositron ; //! histogram ...
323 TH2F* fHistMeanTOFElectron ; //! histogram ...
324 TH2F* fHistMeanTOFMuonPlus ; //! histogram ...
325 TH2F* fHistMeanTOFMuonMinus ; //! histogram ...
9777bfcb 326 // -
327288af 327 TH2F* fHistMeanTRDPiPlus ; //! histogram ...
328 TH2F* fHistMeanTRDPiMinus ; //! histogram ...
329 TH2F* fHistMeanTRDProton ; //! histogram ...
330 TH2F* fHistMeanTRDPbar ; //! histogram ...
331 TH2F* fHistMeanTRDKplus ; //! histogram ...
332 TH2F* fHistMeanTRDKminus ; //! histogram ...
333 TH2F* fHistMeanTRDDeuteron ; //! histogram ...
334 TH2F* fHistMeanTRDAntiDeuteron ; //! histogram ...
335 TH2F* fHistMeanTRDPositron ; //! histogram ...
336 TH2F* fHistMeanTRDElectron ; //! histogram ...
337 TH2F* fHistMeanTRDMuonPlus ; //! histogram ...
338 TH2F* fHistMeanTRDMuonMinus ; //! histogram ...
9777bfcb 339 // pid probability for all particle (all tracks)
327288af 340 TH1F* fHistPidPiPlus; //! histogram ...
341 TH1F* fHistPidPiMinus; //! histogram ...
342 TH1F* fHistPidProton; //! histogram ...
343 TH1F* fHistPidAntiProton; //! histogram ...
344 TH1F* fHistPidKplus; //! histogram ...
345 TH1F* fHistPidKminus; //! histogram ...
346 TH1F* fHistPidDeuteron; //! histogram ...
347 TH1F* fHistPidAntiDeuteron; //! histogram ...
348 TH1F* fHistPidElectron; //! histogram ...
349 TH1F* fHistPidPositron; //! histogram ...
350 TH1F* fHistPidMuonMinus; //! histogram ...
351 TH1F* fHistPidMuonPlus; //! histogram ...
9777bfcb 352 // pid probability for particle type (all tracks, based on Pid)
327288af 353 TH1F* fHistPidPiPlusPart; //! histogram ...
354 TH1F* fHistPidPiMinusPart; //! histogram ...
355 TH1F* fHistPidProtonPart; //! histogram ...
356 TH1F* fHistPidAntiProtonPart; //! histogram ...
357 TH1F* fHistPidKplusPart; //! histogram ...
358 TH1F* fHistPidKminusPart; //! histogram ...
359 TH1F* fHistPidDeuteronPart; //! histogram ...
360 TH1F* fHistPidAntiDeuteronPart; //! histogram ...
361 TH1F* fHistPidElectronPart; //! histogram ...
362 TH1F* fHistPidPositronPart; //! histogram ...
363 TH1F* fHistPidMuonMinusPart; //! histogram ...
364 TH1F* fHistPidMuonPlusPart; //! histogram ...
9777bfcb 365 // MC labels from the simulation (all tracks)
327288af 366 //TH2F* fLabHist; //! histogram ...
9777bfcb 367 // *****************
368 // selected TRACKS
369 // *****************
327288af 370 TProfile* fHistBinEta; //! histogram ...
371 TProfile* fHistBinPt; //! histogram ...
9777bfcb 372 //
327288af 373 TH3F* fHistEtaPtPhi3DPart ; //! histogram ...
374 TH2D* fHistYieldPart2D; //! histogram ...
375 TH1F* fHistDcaGlobalPart ; //! histogram ...
376 TH1F* fHistInvMassPart ; //! histogram ...
377 TH3F* fHistEtaPtPhi3DOut ; //! histogram ...
378 TH2D* fHistYieldOut2D; //! histogram ...
379 TH1F* fHistDcaGlobalOut ; //! histogram ...
380 TH1F* fHistInvMassOut ; //! histogram ...
381 TH3F* fHistMeanDedxPos3DPart ; //! histogram ...
382 TH3F* fHistMeanDedxNeg3DPart ; //! histogram ...
383 TH3F* fHistMeanDedxPos3DPartITS ; //! histogram ...
384 TH3F* fHistMeanDedxNeg3DPartITS ; //! histogram ...
9777bfcb 385//
386
387 // *****************
388 // V0s HISTOGRAMS (all v0s)
389 // *****************
327288af 390 TH1F* fHistV0Mass; //! histogram ...
391 TH3F* fHistV0EtaPtPhi3D; //! histogram ...
392 TH2D* fHistV0YieldAll2D; //! histogram ...
393 TH2D* fHistV0PYall2D; //! histogram ...
394 TH1F* fHistV0Dca; //! histogram ...
395 TH1F* fHistV0Chi2; //! histogram ...
396 TH1F* fHistV0Lenght; //! histogram ...
397 TH1F* fHistV0Sigma; //! histogram ...
398 TProfile* fHistV0CosPhi; //! histogram ...
399 TH2D* fHistV0MassPtSlices; //! histogram ...
9777bfcb 400 // *****************
401 // selected V0s
402 // *****************
327288af 403 TProfile* fHistV0BinEta; //! histogram ...
404 TProfile* fHistV0BinPt; //! histogram ...
405 TProfile* fHistV0sbBinEta; //! histogram ...
406 TProfile* fHistV0sbBinPt; //! histogram ...
9777bfcb 407 //
327288af 408 TH1F* fHistV0MassWin ; //! histogram ...
409 TH3F* fHistV0EtaPtPhi3DPart ; //! histogram ...
410 TH2D* fHistV0YieldPart2D; //! histogram ...
411 TH1F* fHistV0DcaPart ; //! histogram ...
412 TH1F* fHistV0LenghtPart ; //! histogram ...
413 TH1F* fHistV0sbMassSide ; //! histogram ...
414 TH3F* fHistV0sbEtaPtPhi3DPart ; //! histogram ...
415 TH2D* fHistV0sbYieldPart2D; //! histogram ...
416 TH1F* fHistV0sbDcaPart ; //! histogram ...
417 TH1F* fHistV0sbLenghtPart ; //! histogram ...
9777bfcb 418
419// for each harmonic, each selection, and each sub-event
420
421 // *****************
422 // SUB-EVENTs HISTOGRAMS
423 // *****************
327288af 424 struct AliHistSubHars {
425 TH1F* fHistPsiSubs; //! histogram ...
9777bfcb 426 };
327288af 427
428 struct AliHistSubs {
429 struct AliHistSubHars fHistSubHar[AliFlowConstants::kHars]; //! structure array ...
9777bfcb 430 };
327288af 431 struct AliHistSubs fHistSub[AliFlowConstants::kSels*AliFlowConstants::kSubs]; //! structure ...
9777bfcb 432
433// for each harmonic and each selection
434
327288af 435 struct AliHistFullHars
9777bfcb 436 {
437 // weights
327288af 438 TH1D* fHistPhiPlus; //! histogram ...
439 TH1D* fHistPhiMinus; //! histogram ...
440 TH1D* fHistPhiAll; //! histogram ...
441 TH1D* fHistPhiWgtPlus; //! histogram ...
442 TH1D* fHistPhiWgtMinus; //! histogram ...
443 TH1D* fHistPhiWgtAll; //! histogram ...
444 TH1D* fHistPhiFlatPlus; //! histogram ...
445 TH1D* fHistPhiFlatMinus; //! histogram ...
446 TH1D* fHistPhiFlatAll; //! histogram ...
447 TH1D* fHistPhi; //! histogram ...
448 TH1D* fHistPhiWgt; //! histogram ...
449 TH1D* fHistPhiFlat; //! histogram ...
9777bfcb 450 // flow (events)
327288af 451 TH1F* fHistPsi; //! histogram ...
452 TH1F* fHistPsiSubCorr; //! histogram ...
453 TH1F* fHistPsiSubCorrDiff; //! histogram ...
454 TH1F* fHistPsiDiff; //! histogram ...
455 TH1F* fHistMult; //! histogram ...
456 TH1F* fHistQnorm; //! histogram ...
9777bfcb 457 // flow (tracks)
327288af 458 TH1F* fHistPhiCorr; //! histogram ...
459 TProfile2D* fHistvObs2D; //! histogram ...
460 TProfile* fHistvObsEta; //! histogram ...
461 TProfile* fHistvObsPt; //! histogram ...
462 TH2D* fHistv2D; //! histogram ...
463 TH1D* fHistvEta; //! histogram ...
464 TH1D* fHistvPt; //! histogram ...
465 // flow (v0s)
466 TH1F* fHistV0PhiCorr; //! histogram ...
467 TProfile2D* fHistV0vObs2D; //! histogram ...
468 TProfile* fHistV0vObsEta; //! histogram ...
469 TProfile* fHistV0vObsPt; //! histogram ...
470 TH2D* fHistV0v2D; //! histogram ...
471 TH1D* fHistV0vEta; //! histogram ...
472 TH1D* fHistV0vPt; //! histogram ...
9777bfcb 473 // flow (v0s sidebands)
327288af 474 TProfile* fHistV0sbvObsEtaSx ; //! histogram ...
475 TProfile* fHistV0sbvObsPtSx ; //! histogram ...
476 TProfile* fHistV0sbvObsEtaDx ; //! histogram ...
477 TProfile* fHistV0sbvObsPtDx ; //! histogram ...
478 TH1F* fHistV0sbPhiCorr ; //! histogram ...
479 TProfile2D* fHistV0sbvObs2D ; //! histogram ...
480 TProfile* fHistV0sbvObsEta ; //! histogram ...
481 TProfile* fHistV0sbvObsPt ; //! histogram ...
482 TH2D* fHistV0sbv2D ; //! histogram ...
483 TH1D* fHistV0sbvEta ; //! histogram ...
484 TH1D* fHistV0sbvPt ; //! histogram ...
9777bfcb 485 // check (tracks used for R.P.)
327288af 486 TH1F* fHistYieldPt ; //! histogram ...
487 TH3F* fHistEtaPtPhi3D ; //! histogram ...
488 TH2D* fHistYield2D ; //! histogram ...
489 TH1F* fHistDcaGlob ; //! histogram ...
9777bfcb 490 // check (tracks excluded)
327288af 491 TH1F* fHistYieldPtout; //! histogram ...
492 TH3F* fHistEtaPtPhi3Dout ; //! histogram ...
493 TH2D* fHistYield2Dout ; //! histogram ...
494 TH1F* fHistDcaGlobout ; //! histogram ...
9777bfcb 495 };
496
497// for each selection
498
327288af 499 struct AliHistFulls
9777bfcb 500 {
327288af 501 TH1F* fHistBayPidMult; //! histogram ...
9777bfcb 502 // flow (events)
327288af 503 TProfile* fHistCos; //! histogram ...
504 TH1F* fHistRes; //! histogram ...
505 TProfile* fHistvObs; //! histogram ...
506 TH1D* fHistv; //! histogram ...
507 TProfile* fHistV0vObs; //! histogram ...
508 TProfile* fHistV0sbvObsSx; //! histogram ...
509 TProfile* fHistV0sbvObsDx; //! histogram ...
510 TH1D* fHistV0v; //! histogram ...
9777bfcb 511 // wgt, evts, trks, v0s (as defined above)
327288af 512 struct AliHistFullHars fHistFullHar[AliFlowConstants::kHars]; //! structure array ...
9777bfcb 513 };
327288af 514 struct AliHistFulls fHistFull[AliFlowConstants::kSels]; //! structure array ...
9777bfcb 515
516 ClassDef(AliFlowAnalyser,0) // macro for rootcint
517};
518
519#endif
520
521
522
523// lame = not productive; poorly designed; uncool ...