Adding analysis for Flat ESD case
[u/mrichter/AliRoot.git] / TPC / Calib / AliAnalysisTaskPt.h
CommitLineData
4d3da966 1#ifndef AliAnalysisTaskPt_cxx
2#define AliAnalysisTaskPt_cxx
3
4// example of an analysis task creating a p_t spectrum
5// Authors: Panos Cristakoglou, Jan Fiete Grosse-Oetringhaus, Christian Klein-Boesing
6
7class TH1F;
8class AliESDEvent;
9class AliVVfriendEvent;
10class AliVVevent;
11class AliESDtrackCuts;
12class TList;
13
14#include "AliAnalysisTask.h"
15
16class AliAnalysisTaskPt : public AliAnalysisTask {
17 public:
828c4c08 18 AliAnalysisTaskPt() : AliAnalysisTask(), fESD(0), fESDfriend(0), fHistPt(0), fCuts(0), fEv(0), fHistQ(0), fListOut(0), fHistNTPCCl(0), fHistNESDtracks(0), fHistNESDfriendtracks(0)
19 {}
4d3da966 20 AliAnalysisTaskPt(const char *name);
21 virtual ~AliAnalysisTaskPt() {}
22
23 virtual void ConnectInputData(Option_t *);
24 virtual void CreateOutputObjects();
25 virtual void Exec(Option_t *option);
26 virtual void Terminate(Option_t *);
a453390d 27
28 Bool_t GetUseFriends() {return fUseFriends;}
29 void SetUseFriends(Bool_t flag) {fUseFriends = flag;}
4d3da966 30
31 private:
828c4c08 32 AliVVevent* fESD; // ESD object
33 AliVVfriendEvent* fESDfriend; // ESD friend object
34 TH1F* fHistPt; // Pt spectrum
35 AliESDtrackCuts* fCuts; // cuts
4d3da966 36 Int_t fEv;
828c4c08 37 TH1F* fHistQ; // TPC clusters Q spectrum
38 TList* fListOut; // output list
39 Bool_t fUseFriends; // flag to decide whether friends should be use
40 TH1F* fHistNTPCCl; // histo with the number of TPC clusters
41 TH1F* fHistNESDtracks; // histo with number of ESD tracks
42 TH1F* fHistNESDfriendtracks; // histo with number of ESD tracks
4d3da966 43
44 AliAnalysisTaskPt(const AliAnalysisTaskPt&); // not implemented
45 AliAnalysisTaskPt& operator=(const AliAnalysisTaskPt&); // not implemented
46
47 ClassDef(AliAnalysisTaskPt, 1); // example of analysis
48};
49
50#endif