Transition PWG0 -> PWGUD
[u/mrichter/AliRoot.git] / PWGUD / dNdPt / AliPtResolAnalysisPbPb.h
CommitLineData
fc98fbb5 1#ifndef ALIPTRESOLANALYSISPBPB_H
2#define ALIPTRESOLANALYSISPBPB_H
3
4//------------------------------------------------------------------------------
5// AliPtResolAnalysisPbPb class used for dNdPt analysis.
6//
7// Author: J.Otwinowski 05/05/2011
8//------------------------------------------------------------------------------
9
10class iostream;
11
12class TFile;
13class TCint;
14class TProfile;
15class TFolder;
16class TObjArray;
17class TString;
18class THnSparse;
19
20class AliESDtrackCuts;
21class AliVertexerTracks;
22class AliESD;
23class AliESDfriend;
24class AliESDfriendTrack;
25class AlidNdPtHelper;
26
27#include "AlidNdPt.h"
28
29class AliPtResolAnalysisPbPb : public AlidNdPt {
30public :
31 AliPtResolAnalysisPbPb();
32 AliPtResolAnalysisPbPb(Char_t* name, Char_t* title);
33 ~AliPtResolAnalysisPbPb();
34
35 // Init data members
36 virtual void Init();
37
38 // Process events
39 virtual void Process(AliESDEvent *const esdEvent=0, AliMCEvent *const mcEvent=0);
40
41 // Merge output objects (needed by PROOF)
42 virtual Long64_t Merge(TCollection* const list);
43
44 // Analyse output histograms
45 virtual void Analyse();
46
47 // Export objects to folder
48 virtual TFolder *ExportToFolder(TObjArray * const array=0);
49 TFolder* CreateFolder(TString name,TString title);
50
51 // Get analysis folder
52 TFolder* GetAnalysisFolder() const {return fAnalysisFolder;}
53 THnSparseF *GetTrackParamHist() const {return fTrackParamHist;}
98af3b87 54 THnSparseF *GetTrackParamHist2() const {return fTrackParamHist2;}
fc98fbb5 55
56 void SetCentralityEstimator(TString centEst="V0M") { fCentralityEstimator = centEst; }
57 TString GetCentralityEstimator() const {return fCentralityEstimator; }
58
59private:
60
61 // analysis folder
98af3b87 62 TFolder *fAnalysisFolder; // folder for analysed histograms
fc98fbb5 63 THnSparseF *fTrackParamHist; //-> sigma(1/pT):1/pT:centr
98af3b87 64 THnSparseF *fTrackParamHist2; //-> sigma(1/pT)*pT:pT:centr
fc98fbb5 65
66 TString fCentralityEstimator; // use centrality can be "VOM" (default), "FMD", "TRK", "TKL", "CL0", "CL1", "V0MvsFMD", "TKLvsV0M", "ZEMvsZDC"
67
68 AliPtResolAnalysisPbPb(const AliPtResolAnalysisPbPb&); // not implemented
69 AliPtResolAnalysisPbPb& operator=(const AliPtResolAnalysisPbPb&); // not implemented
70
98af3b87 71 ClassDef(AliPtResolAnalysisPbPb,2);
fc98fbb5 72};
73
74#endif