]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/dNdPt/AliPtResolAnalysis.h
add new histogram
[u/mrichter/AliRoot.git] / PWG0 / dNdPt / AliPtResolAnalysis.h
1 #ifndef ALIPTRESOLANALYSIS_H
2 #define ALIPTRESOLANALYSIS_H
3
4 //------------------------------------------------------------------------------
5 // AliPtResolAnalysis class used for dNdPt analysis. 
6 // 
7 // Author: J.Otwinowski 05/05/2011 
8 //------------------------------------------------------------------------------
9
10 class iostream;
11
12 class TFile;
13 class TCint;
14 class TProfile;
15 class TFolder;
16 class TObjArray;
17 class TString;
18 class THnSparse;
19
20 class AliESDtrackCuts;
21 class AliVertexerTracks;
22 class AliESD;
23 class AliESDfriend;
24 class AliESDfriendTrack;
25 class AlidNdPtHelper;
26
27 #include "AlidNdPt.h"
28
29 class AliPtResolAnalysis : public AlidNdPt {
30 public :
31   AliPtResolAnalysis(); 
32   AliPtResolAnalysis(Char_t* name, Char_t* title);
33   ~AliPtResolAnalysis();
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;} 
54   THnSparseF *GetTrackParamHist2() const {return fTrackParamHist2;} 
55
56 private:
57
58   // analysis folder 
59   TFolder *fAnalysisFolder; // folder for analysed histograms
60   THnSparseF *fTrackParamHist;  //-> sigma(1/pT):1/pT
61   THnSparseF *fTrackParamHist2;  //-> sigma(1/pT)*pT:pT
62
63   AliPtResolAnalysis(const AliPtResolAnalysis&); // not implemented
64   AliPtResolAnalysis& operator=(const AliPtResolAnalysis&); // not implemented
65
66   ClassDef(AliPtResolAnalysis,2);
67 };
68
69 #endif