]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowCommon/AliFlowCommonHist.h
small mods for separate task
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowCommonHist.h
CommitLineData
f1d945a1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
d65e0fea 4/* $Id:$ */
f1d945a1 5
6#ifndef AliFlowCommonHist_H
7#define AliFlowCommonHist_H
8
9// AliFlowCommonHist:
10// Description: Class to organise common histograms for Flow Analysis
7ffdc193 11// authors: N.K A.B R.S
f1d945a1 12
13
14class AliFlowEventSimple;
15class AliFlowTrackSimple;
16class TH1F;
17class TH1D;
18class TProfile;
e35ddff0 19class TCollection;
20class TList;
04f6283b 21class TBrowser;
f1d945a1 22
20c03187 23class AliFlowCommonHist: public TNamed {
f1d945a1 24
25 public:
26
e35ddff0 27 AliFlowCommonHist();
20c03187 28 AliFlowCommonHist(const char *name,const char *title = "AliFlowCommonHist");
f1d945a1 29 virtual ~AliFlowCommonHist();
04f6283b 30 AliFlowCommonHist(const AliFlowCommonHist& aSetOfHists);
f1d945a1 31
04f6283b 32 Bool_t IsFolder() const {return kTRUE;};
f1d945a1 33 //make fill methods here
e35ddff0 34 Bool_t FillControlHistograms(AliFlowEventSimple* anEvent);
04f6283b 35 void Browse(TBrowser *b);
f1d945a1 36 //make get methods here
e8c3ff94 37 Double_t GetEntriesInPtBinRP(Int_t iBin); //gets entries from fHistPtInt
38 Double_t GetEntriesInPtBinPOI(Int_t iBin); //gets entries from fHistPtDiff
39 Double_t GetEntriesInEtaBinRP(Int_t iBin); //gets entries from fHistEtaInt
40 Double_t GetEntriesInEtaBinPOI(Int_t iBin); //gets entries from fHistEtaDiff
41 Double_t GetMeanPt(Int_t iBin); //gets the mean pt for this bin from fHistProMeanPtperBin
f1d945a1 42
88e00a8a 43 TH1F* GetHistMultOrig() {return fHistMultOrig; } ;
44 TH1F* GetHistMultInt() {return fHistMultInt; } ;
45 TH1F* GetHistMultDiff() {return fHistMultDiff; } ;
46 TH1F* GetHistPtInt() {return fHistPtInt; } ;
47 TH1F* GetHistPtDiff() {return fHistPtDiff; } ;
48 TH1F* GetHistPhiInt() {return fHistPhiInt; } ;
49 TH1F* GetHistPhiDiff() {return fHistPhiDiff; } ;
50 TH1F* GetHistEtaInt() {return fHistEtaInt; } ;
51 TH1F* GetHistEtaDiff() {return fHistEtaDiff; } ;
52 TProfile* GetHistProMeanPtperBin() {return fHistProMeanPtperBin; } ;
53 TH1F* GetHistQ() {return fHistQ; } ;
54 TList* GetHistList() {return fHistList;} ;
e35ddff0 55
56 virtual Double_t Merge(TCollection *aList); //merge function
9825d4a9 57 //method to print stats
58 void Print(Option_t* option = "") const;
59
f1d945a1 60
61 private:
62
20605536 63 AliFlowCommonHist& operator=(const AliFlowCommonHist& aSetOfHists);
64
f1d945a1 65 //define histograms here
66 //control histograms
e35ddff0 67 TH1F* fHistMultOrig; //multiplicity before selection
68 TH1F* fHistMultInt; //multiplicity for integrated flow
69 TH1F* fHistMultDiff; //multiplicity for differential flow
70 TH1F* fHistPtInt; //pt distribution for integrated flow
71 TH1F* fHistPtDiff; //pt distribution for differential flow
72 TH1F* fHistPhiInt; //phi distribution for integrated flow
73 TH1F* fHistPhiDiff; //phi distribution for differential flow
74 TH1F* fHistEtaInt; //eta distribution for integrated flow
75 TH1F* fHistEtaDiff; //eta distribution for differential flow
76 TProfile* fHistProMeanPtperBin; //mean pt for each pt bin (for differential flow)
77 TH1F* fHistQ; //Qvector distribution
78
7573885c 79 TList* fHistList; //list to hold all histograms
e35ddff0 80
04f6283b 81 ClassDef(AliFlowCommonHist,1) // macro for rootcint
f1d945a1 82};
0683b7d5 83#endif
84