Removing useless flag.
[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),
23 fTrackletSPD(-99999), fClustersSPD(-99999), fNcont(-99999), fNcontTPC(-99999),
24 fVertex(-99999), fVertexcalc(-99999), fVertexSPD(-99999), fVertexTPC(-99999),
25 fMeanAC(-99999), fMeanA(-99999),fMeanC(-99999), fMeanACcalc(-99999), fMeanAcalc(-99999), fMeanCcalc(-99999),
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),
30 fcentralityV0M(0), fcentralityZDC(0), fcentralityTRK(0), fcentralityCLA(0),
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;
53 Int_t fClustersSPD;
54 Int_t fNcont;
55 Int_t fNcontTPC;
56 Float_t fVertex;
57 Float_t fVertexcalc;
58 Float_t fVertexSPD;
59 Float_t fVertexTPC;
60 Float_t fMeanAC;
61 Float_t fMeanA;
62 Float_t fMeanC;
63 Float_t fMeanACcalc;
64 Float_t fMeanAcalc;
65 Float_t fMeanCcalc;
66 Float_t fMultV0A;
67 Float_t fMultV0C;
68 Float_t fTimeV0A;
69 Float_t fTimeV0C;
70 Float_t fSumampA;
71 Float_t fSumampC;
72 UInt_t ftimestamp;
73 Float_t fSep2;
74 Bool_t fZDCcut;
75 Int_t fT0Trigger;
76 Bool_t fpileup;
77 TObjString fTrigger;
78 TH1F **fT0_amplitude; //! Amplitudes
79 TH1F **fT0_time; //! Time
80 Float_t fcentralityV0M;
81 Float_t fcentralityZDC;
82 Float_t fcentralityTRK;
83 Float_t fcentralityCLA;
84 Int_t fESDtracks;
85 Float_t fOrA[5];
86 Float_t fOrC[5];
87 Float_t fTVDC[5];
88
89 Float_t famp[24];
90 Float_t ftime[24];
91 Float_t fRawTime[24][5];
92 Bool_t fT0pileup[3];
93 Int_t fMultiplicity;
94 TObjString fTriggerinput ;
95 Bool_t fZDCbg; //ZDC BG flag
96 Int_t fTOFtracks;
97 Float_t fT0tofTrack;
98 AliESDpid* fESDpid; //! esd pid
99
4c0e429d 100 Double_t fampfriend[24]; //from ESDfriend
101 Double_t ftimefriend[24]; //from ESDfriend
102 Double_t fampledfriend[24]; //from ESDfriend
103
a65a7e70 104 AliT0CalibAnalysisTask(const AliT0CalibAnalysisTask&); // not implemented
105 AliT0CalibAnalysisTask& operator=(const AliT0CalibAnalysisTask&); // not implemented
106
107 ClassDef(AliT0CalibAnalysisTask, 1); // example of analysis
108};
109
110#endif