]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/JetTasks/AliUEHistograms.h
From Sara and Jan Fiete:
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliUEHistograms.h
CommitLineData
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
14class AliVParticle;
15
16class TList;
17class TH1F;
18class TH2F;
19class TH3F;
20
21class 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& operator=(const AliUEHistograms& c);
53 virtual void Copy(TObject& c) const;
54
55 virtual Long64_t Merge(TCollection* list);
56
57protected:
58 void FillRegion(AliUEHist::Region region, AliUEHist::CFStep step, AliVParticle* leading, TList* list, Int_t multiplicity);
59 Int_t CountParticles(TList* list, Float_t ptMin);
60
61 AliUEHist* fNumberDensitypT; // d^2N/dphideta vs pT,lead
62 AliUEHist* fSumpT; // d^2 sum(pT)/dphideta vs pT,lead
63 AliUEHist* fNumberDensityPhi; // d^2N/dphideta vs delta phi,lead (in pT,lead bins)
64
65 TH2F* fCorrelationpT; // pT,lead: true vs reco
66 TH2F* fCorrelationEta; // #eta,lead; true vs reco
67 TH2F* fCorrelationPhi; // #phi,lead; true vs reco
68 TH2F* fCorrelationR; // R = sqrt(delta eta^2 + delta phi^2) (true vs reco) vs pT,lead,MC
69 TH2F* fCorrelationLeading2Phi;// delta phi (true vs reco) vs pT,lead,MC
70 TH2F* fCorrelationMultiplicity; // number of mc particls vs reco particles (for pT > 0.5 GeV/c)
71
72 TH2F* fEventCount; // event count as function of step, event type (plus additional step -1 for all events without vertex range even in MC)
73 TH3F* fEventCountDifferential;// event count as function of leading pT, step, event type
74
75 TH1F* fVertexContributors; // number of contributors to the vertex
76
77 ClassDef(AliUEHistograms, 1) // underlying event histogram container
78};
79
80#endif