Reading friends in analysis framework inside HLT
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskPt.h
CommitLineData
b9f1d917 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;
949fa831 9class AliESDfriend;
6a15ab77 10class AliVVevent;
b9f1d917 11class AliESDtrackCuts;
949fa831 12class TList;
b9f1d917 13
14#include "AliAnalysisTask.h"
15
16class AliAnalysisTaskPt : public AliAnalysisTask {
17 public:
949fa831 18 AliAnalysisTaskPt() : AliAnalysisTask(), fESD(0), fESDfriend(0), fHistPt(0), fCuts(0), fEv(0), fHistQ(0), fListOut(0) {}
b9f1d917 19 AliAnalysisTaskPt(const char *name);
20 virtual ~AliAnalysisTaskPt() {}
21
22 virtual void ConnectInputData(Option_t *);
23 virtual void CreateOutputObjects();
24 virtual void Exec(Option_t *option);
25 virtual void Terminate(Option_t *);
afdb0e0d 26
b9f1d917 27 private:
949fa831 28 AliVVevent* fESD; // ESD object
29 AliESDfriend* fESDfriend; // ESD friend object
30 TH1F* fHistPt; // Pt spectrum
31 AliESDtrackCuts* fCuts; // cuts
b9f1d917 32 Int_t fEv;
949fa831 33 TH1F* fHistQ; // TPC clusters Q spectrum
34 TList* fListOut; // output list
35
b9f1d917 36 AliAnalysisTaskPt(const AliAnalysisTaskPt&); // not implemented
37 AliAnalysisTaskPt& operator=(const AliAnalysisTaskPt&); // not implemented
38
39 ClassDef(AliAnalysisTaskPt, 1); // example of analysis
40};
41
42#endif