]>
Commit | Line | Data |
---|---|---|
a75aacd6 | 1 | #ifndef AliUEHistograms_H |
2 | #define AliUEHistograms_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id: AliUEHistograms.h 20164 2007-08-14 15:31:50Z morsch $ */ | |
8 | ||
9 | // encapsulates several AliUEHist objects for a full UE analysis plus additional control histograms | |
10 | ||
11 | #include "TObject.h" | |
12 | #include "AliUEHist.h" | |
13 | ||
14 | class AliVParticle; | |
15 | ||
16 | class TList; | |
bf58cbde | 17 | class TSeqCollection; |
a75aacd6 | 18 | class TH1F; |
19 | class TH2F; | |
20 | class TH3F; | |
21 | ||
22 | class AliUEHistograms : public TObject | |
23 | { | |
24 | public: | |
bf58cbde | 25 | AliUEHistograms(const char* histograms = "123"); |
a75aacd6 | 26 | virtual ~AliUEHistograms(); |
27 | ||
28 | void Fill(Int_t eventType, AliUEHist::CFStep step, AliVParticle* leading, TList* toward, TList* away, TList* min, TList* max); | |
bf58cbde | 29 | void FillCorrelations(Int_t eventType, Int_t centrality, AliUEHist::CFStep step, TSeqCollection* particles); |
a75aacd6 | 30 | void Fill(AliVParticle* leadingMC, AliVParticle* leadingReco); |
31 | void FillEvent(Int_t eventType, Int_t step); | |
b1831bcb | 32 | void FillTrackingEfficiency(TObjArray* mc, TObjArray* recoPrim, TObjArray* recoAll, Int_t particleType); |
33 | ||
34 | void CopyReconstructedData(AliUEHistograms* from); | |
a75aacd6 | 35 | |
ada1a03f | 36 | AliUEHist* GetUEHist(Int_t id); |
37 | ||
a75aacd6 | 38 | AliUEHist* GetNumberDensitypT() { return fNumberDensitypT; } |
39 | AliUEHist* GetSumpT() { return fSumpT; } | |
40 | AliUEHist* GetNumberDensityPhi() { return fNumberDensityPhi; } | |
41 | ||
42 | TH2F* GetCorrelationpT() { return fCorrelationpT; } | |
43 | TH2F* GetCorrelationEta() { return fCorrelationEta; } | |
44 | TH2F* GetCorrelationPhi() { return fCorrelationPhi; } | |
45 | TH2F* GetCorrelationR() { return fCorrelationR; } | |
46 | TH2F* GetCorrelationLeading2Phi() { return fCorrelationLeading2Phi; } | |
47 | TH2F* GetCorrelationMultiplicity() { return fCorrelationMultiplicity; } | |
48 | ||
49 | TH2F* GetEventCount() { return fEventCount; } | |
50 | TH3F* GetEventCountDifferential() { return fEventCountDifferential; } | |
51 | TH1F* GetVertexContributors() { return fVertexContributors; } | |
bf58cbde | 52 | TH1F* GetCentralityDistribution() { return fCentralityDistribution; } |
a75aacd6 | 53 | |
54 | void Correct(AliUEHistograms* corrections); | |
55 | ||
56 | void SetEtaRange(Float_t etaMin, Float_t etaMax); | |
57 | void SetPtRange(Float_t ptMin, Float_t ptMax); | |
144bd037 | 58 | void SetContaminationEnhancement(TH1F* hist); |
a75aacd6 | 59 | void SetCombineMinMax(Bool_t flag); |
60 | ||
6f803f6c | 61 | void ExtendTrackingEfficiency(); |
62 | ||
d1c75d06 | 63 | AliUEHistograms(const AliUEHistograms &c); |
a75aacd6 | 64 | AliUEHistograms& operator=(const AliUEHistograms& c); |
65 | virtual void Copy(TObject& c) const; | |
66 | ||
67 | virtual Long64_t Merge(TCollection* list); | |
68 | ||
69 | protected: | |
70 | void FillRegion(AliUEHist::Region region, AliUEHist::CFStep step, AliVParticle* leading, TList* list, Int_t multiplicity); | |
71 | Int_t CountParticles(TList* list, Float_t ptMin); | |
bf58cbde | 72 | |
73 | static const Int_t fgkUEHists; // number of histograms | |
a75aacd6 | 74 | |
75 | AliUEHist* fNumberDensitypT; // d^2N/dphideta vs pT,lead | |
76 | AliUEHist* fSumpT; // d^2 sum(pT)/dphideta vs pT,lead | |
77 | AliUEHist* fNumberDensityPhi; // d^2N/dphideta vs delta phi,lead (in pT,lead bins) | |
78 | ||
79 | TH2F* fCorrelationpT; // pT,lead: true vs reco | |
80 | TH2F* fCorrelationEta; // #eta,lead; true vs reco | |
81 | TH2F* fCorrelationPhi; // #phi,lead; true vs reco | |
82 | TH2F* fCorrelationR; // R = sqrt(delta eta^2 + delta phi^2) (true vs reco) vs pT,lead,MC | |
83 | TH2F* fCorrelationLeading2Phi;// delta phi (true vs reco) vs pT,lead,MC | |
84 | TH2F* fCorrelationMultiplicity; // number of mc particls vs reco particles (for pT > 0.5 GeV/c) | |
85 | ||
86 | TH2F* fEventCount; // event count as function of step, event type (plus additional step -1 for all events without vertex range even in MC) | |
87 | TH3F* fEventCountDifferential;// event count as function of leading pT, step, event type | |
88 | ||
89 | TH1F* fVertexContributors; // number of contributors to the vertex | |
bf58cbde | 90 | TH1F* fCentralityDistribution; // distribution of the variable used for centrality selection |
a75aacd6 | 91 | |
bf58cbde | 92 | ClassDef(AliUEHistograms, 2) // underlying event histogram container |
a75aacd6 | 93 | }; |
94 | ||
95 | #endif |