]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/JetTasks/AliUEHistograms.h
adding copy constructor
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliUEHistograms.h
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;
17 class TH1F;
18 class TH2F;
19 class TH3F;
20
21 class AliUEHistograms : public TObject
22 {
23  public:
24   AliUEHistograms();
25   virtual ~AliUEHistograms();
26   
27   void Fill(Int_t eventType, AliUEHist::CFStep step, AliVParticle* leading, TList* toward, TList* away, TList* min, TList* max);
28   void Fill(AliVParticle* leadingMC, AliVParticle* leadingReco);
29   void FillEvent(Int_t eventType, Int_t step);
30   
31   AliUEHist* GetNumberDensitypT() { return fNumberDensitypT; }
32   AliUEHist* GetSumpT() { return fSumpT; }
33   AliUEHist* GetNumberDensityPhi() { return fNumberDensityPhi; }
34   
35   TH2F* GetCorrelationpT()  { return fCorrelationpT; }
36   TH2F* GetCorrelationEta() { return fCorrelationEta; }
37   TH2F* GetCorrelationPhi() { return fCorrelationPhi; }
38   TH2F* GetCorrelationR()   { return fCorrelationR; }
39   TH2F* GetCorrelationLeading2Phi() { return fCorrelationLeading2Phi; }
40   TH2F* GetCorrelationMultiplicity() { return fCorrelationMultiplicity; }
41   
42   TH2F* GetEventCount()     { return fEventCount; }
43   TH3F* GetEventCountDifferential() { return fEventCountDifferential; }
44   TH1F* GetVertexContributors() { return fVertexContributors; }
45   
46   void Correct(AliUEHistograms* corrections);
47   
48   void SetEtaRange(Float_t etaMin, Float_t etaMax);
49   void SetPtRange(Float_t ptMin, Float_t ptMax);
50   void SetCombineMinMax(Bool_t flag);
51   
52   AliUEHistograms(const AliUEHistograms &c);
53   AliUEHistograms& operator=(const AliUEHistograms& c);
54   virtual void Copy(TObject& c) const;
55
56   virtual Long64_t Merge(TCollection* list);
57   
58 protected:
59   void FillRegion(AliUEHist::Region region, AliUEHist::CFStep step, AliVParticle* leading, TList* list, Int_t multiplicity);
60   Int_t CountParticles(TList* list, Float_t ptMin);
61
62   AliUEHist* fNumberDensitypT;   // d^2N/dphideta vs pT,lead
63   AliUEHist* fSumpT;             // d^2 sum(pT)/dphideta vs pT,lead
64   AliUEHist* fNumberDensityPhi;  // d^2N/dphideta vs delta phi,lead (in pT,lead bins)
65   
66   TH2F* fCorrelationpT;         // pT,lead: true vs reco
67   TH2F* fCorrelationEta;        // #eta,lead; true vs reco
68   TH2F* fCorrelationPhi;        // #phi,lead; true vs reco
69   TH2F* fCorrelationR;          // R = sqrt(delta eta^2 + delta phi^2) (true vs reco) vs pT,lead,MC
70   TH2F* fCorrelationLeading2Phi;// delta phi (true vs reco) vs pT,lead,MC
71   TH2F* fCorrelationMultiplicity; // number of mc particls vs reco particles (for pT > 0.5 GeV/c)
72   
73   TH2F* fEventCount;            // event count as function of step, event type (plus additional step -1 for all events without vertex range even in MC)
74   TH3F* fEventCountDifferential;// event count as function of leading pT, step, event type
75   
76   TH1F* fVertexContributors;    // number of contributors to the vertex
77   
78   ClassDef(AliUEHistograms, 1)  // underlying event histogram container
79 };
80
81 #endif