1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
6 #ifndef AliFlowCommonHist_H
7 #define AliFlowCommonHist_H
10 // Description: Class to organise common histograms for Flow Analysis
11 // authors: N.K A.B R.S
14 class AliFlowEventSimple;
15 class AliFlowTrackSimple;
23 class AliFlowCommonHist: public TNamed {
28 AliFlowCommonHist(const char *name,const char *title = "AliFlowCommonHist");
29 virtual ~AliFlowCommonHist();
30 AliFlowCommonHist(const AliFlowCommonHist& aSetOfHists);
32 Bool_t IsFolder() const {return kTRUE;};
33 //make fill methods here
34 Bool_t FillControlHistograms(AliFlowEventSimple* anEvent);
35 void Browse(TBrowser *b);
36 //make get methods here
37 Double_t GetEntriesInPtBin(Int_t iBin); //gets entries from fHistPtDiff
38 Double_t GetMeanPt(Int_t iBin); //gets the mean pt for this bin from fHistProMeanPtperBin
40 TH1F* GetHistMultOrig() {return fHistMultOrig; } ;
41 TH1F* GetHistMultInt() {return fHistMultInt; } ;
42 TH1F* GetHistMultDiff() {return fHistMultDiff; } ;
43 TH1F* GetHistPtInt() {return fHistPtInt; } ;
44 TH1F* GetHistPtDiff() {return fHistPtDiff; } ;
45 TH1F* GetHistPhiInt() {return fHistPhiInt; } ;
46 TH1F* GetHistPhiDiff() {return fHistPhiDiff; } ;
47 TH1F* GetHistEtaInt() {return fHistEtaInt; } ;
48 TH1F* GetHistEtaDiff() {return fHistEtaDiff; } ;
49 TProfile* GetHistProMeanPtperBin() {return fHistProMeanPtperBin; } ;
50 TH1F* GetHistQ() {return fHistQ; } ;
51 TList* GetHistList() {return fHistList;} ;
53 virtual Double_t Merge(TCollection *aList); //merge function
54 //method to print stats
55 void Print(Option_t* option = "") const;
60 AliFlowCommonHist& operator=(const AliFlowCommonHist& aSetOfHists);
62 //define histograms here
64 TH1F* fHistMultOrig; //multiplicity before selection
65 TH1F* fHistMultInt; //multiplicity for integrated flow
66 TH1F* fHistMultDiff; //multiplicity for differential flow
67 TH1F* fHistPtInt; //pt distribution for integrated flow
68 TH1F* fHistPtDiff; //pt distribution for differential flow
69 TH1F* fHistPhiInt; //phi distribution for integrated flow
70 TH1F* fHistPhiDiff; //phi distribution for differential flow
71 TH1F* fHistEtaInt; //eta distribution for integrated flow
72 TH1F* fHistEtaDiff; //eta distribution for differential flow
73 TProfile* fHistProMeanPtperBin; //mean pt for each pt bin (for differential flow)
74 TH1F* fHistQ; //Qvector distribution
76 TList* fHistList; //list to hold all histograms
78 ClassDef(AliFlowCommonHist,1) // macro for rootcint