"Setting correct gains for Pb-p in simulation"
[u/mrichter/AliRoot.git] / T0 / AliT0CalibAnalysisTask.h
CommitLineData
a65a7e70 1#ifndef AliT0CalibAnalysisTask_cxx
2#define AliT0CalibAnalysisTask_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
7#include "TH1F.h"
8#include "TH2F.h"
9#include "TList.h"
10#include "TTree.h"
11#include "TString.h"
12
13#define NPMT0 24 //number T0 of photomultipliers
14
15class AliESDEvent;
16#include "AliESDpid.h"
17#include "AliAnalysisTaskSE.h"
18
19class AliT0CalibAnalysisTask : public AliAnalysisTaskSE {
20 public:
21 AliT0CalibAnalysisTask() : AliAnalysisTaskSE(),
22 fESD(0), fOutputList(0), fT0OutTree(0), fEvent(-99999), fOrbit(-99999), fBC(-99999),
36bbdbd3 23 fTrackletSPD(-99999), fNcont(-99999),
24 fVertex(-99999), fVertexSPD(-99999),
25 fMeanAC(-99999), fMeanA(-99999),fMeanC(-99999),
a65a7e70 26 fMultV0A(-99999), fMultV0C(-99999),fTimeV0A(-99999),fTimeV0C(-99999), fSumampA(-99999), fSumampC(-99999),
27 ftimestamp(0), fSep2(0),
28 fZDCcut(kFALSE), fT0Trigger(-99999), fpileup(kFALSE), fTrigger(0x0),
29 fT0_amplitude(0x0), fT0_time(0x0),
36bbdbd3 30 fcentralityV0M(0), fcentralityZDC(0), fcentralityTRK(0),
a65a7e70 31 fESDtracks(-99999),
32 fMultiplicity(-99999),
33 fTriggerinput(0x0), fZDCbg(kFALSE),
34 fTOFtracks(0), fT0tofTrack(0),
35 fESDpid(new AliESDpid())
36 {};
37
38 AliT0CalibAnalysisTask(const char *name);
39 virtual ~AliT0CalibAnalysisTask();
40
41 virtual void UserCreateOutputObjects();
42 virtual void UserExec(Option_t *option);
43 virtual void Terminate(Option_t *);
44 Bool_t UserNotify();
45 private:
46 AliESDEvent *fESD; //! ESD object
47 TList *fOutputList; //! Output list
48 TTree *fT0OutTree; //output tree
49 Int_t fEvent;
50 Int_t fOrbit;
51 Int_t fBC;
52 Int_t fTrackletSPD;
a65a7e70 53 Int_t fNcont;
a65a7e70 54 Float_t fVertex;
a65a7e70 55 Float_t fVertexSPD;
a65a7e70 56 Float_t fMeanAC;
57 Float_t fMeanA;
58 Float_t fMeanC;
a65a7e70 59 Float_t fMultV0A;
60 Float_t fMultV0C;
61 Float_t fTimeV0A;
62 Float_t fTimeV0C;
63 Float_t fSumampA;
64 Float_t fSumampC;
65 UInt_t ftimestamp;
66 Float_t fSep2;
67 Bool_t fZDCcut;
68 Int_t fT0Trigger;
69 Bool_t fpileup;
70 TObjString fTrigger;
71 TH1F **fT0_amplitude; //! Amplitudes
72 TH1F **fT0_time; //! Time
73 Float_t fcentralityV0M;
74 Float_t fcentralityZDC;
75 Float_t fcentralityTRK;
a65a7e70 76 Int_t fESDtracks;
77 Float_t fOrA[5];
78 Float_t fOrC[5];
79 Float_t fTVDC[5];
80
81 Float_t famp[24];
82 Float_t ftime[24];
36bbdbd3 83 Float_t fRawTime[24];
a65a7e70 84 Bool_t fT0pileup[3];
85 Int_t fMultiplicity;
86 TObjString fTriggerinput ;
87 Bool_t fZDCbg; //ZDC BG flag
88 Int_t fTOFtracks;
89 Float_t fT0tofTrack;
90 AliESDpid* fESDpid; //! esd pid
4c0e429d 91
a65a7e70 92 AliT0CalibAnalysisTask(const AliT0CalibAnalysisTask&); // not implemented
93 AliT0CalibAnalysisTask& operator=(const AliT0CalibAnalysisTask&); // not implemented
94
95 ClassDef(AliT0CalibAnalysisTask, 1); // example of analysis
96};
97
98#endif