1 #ifndef ALIANALYSISTASKTOFQA_h
2 #define ALIANALYSISTASKTOFQA_h
7 class AliAnalysisFilter;
13 #include "AliAnalysisTaskSE.h"
15 class AliAnalysisTaskTOFqa : public AliAnalysisTaskSE {
17 AliAnalysisTaskTOFqa();
18 AliAnalysisTaskTOFqa(const char *name);
19 AliAnalysisTaskTOFqa(const AliAnalysisTaskTOFqa& copy);
20 AliAnalysisTaskTOFqa& operator= (const AliAnalysisTaskTOFqa& copy);
21 virtual ~AliAnalysisTaskTOFqa();
23 virtual void UserCreateOutputObjects();
24 virtual void UserExec(Option_t *option);
25 virtual void Terminate(Option_t *);
28 Int_t GetStripIndex(const Int_t * const in);
29 void SetTrackFilter(AliAnalysisFilter *filter) {fTrackFilter = filter;};
30 void EnableAdvancedCheck(Bool_t enable){fEnableAdvancedCheck=enable;};
31 void SetExpTimeHistoRange(Float_t min, Float_t max){fExpTimeRangeMin=min; fExpTimeRangeMax=max;return;};
32 void SetExpTimeHistoSmallRange(Float_t min, Float_t max){fExpTimeSmallRangeMin=min; fExpTimeSmallRangeMax=max;return;};
33 void SetExpTimeBinWidth(Float_t width){fExpTimeBinWidth=width;return;};
34 void FillStartTimeMaskHisto();
35 Bool_t ComputeTimeZeroByTOF1GeV();
38 Int_t fRunNumber; //run number
39 AliESDEvent *fESD; //ESD object
40 AliAnalysisFilter *fTrackFilter; //track filter object
41 AliESDVertex *fVertex; //pointer to the vertex object
42 AliESDpid *fESDpid; //pointer to the PID object
43 // AliTOFT0v1 *fTOFT0v1; // TOF-T0 v1
44 Int_t fNTOFtracks; //number of tracks matching with TOF
45 //Int_t fNPrimaryTracks; //number of primary tracks
46 Float_t fT0[3]; //event time
47 Float_t fSigmaSpecie[5]; //number of TOF PID sigmas, ie.fSigmaPion, fSigmaKaon, fSigmaProton;
48 Double_t fTrkExpTimes[5]; //expected times from tracking for 5 mass hypothesis
49 Double_t fThExpTimes[5]; //theoretical expected times for 5 mass hypothesis
50 Bool_t fEnableAdvancedCheck; //flag to enable advanced checks
51 Float_t fExpTimeBinWidth;//bin width for t-texp histos
52 Float_t fExpTimeRangeMin, fExpTimeRangeMax; //range of t-texp histogram
53 Float_t fExpTimeSmallRangeMin, fExpTimeSmallRangeMax; //reduced range of t-texp histogram
54 Double_t fMyTimeZeroTOF, fMyTimeZeroTOFsigma; //timeZero by TOF recomputed
55 Int_t fMyTimeZeroTOFtracks; // number of tracks used to recompute TOF_T0
58 TList *fHlist; //list of general histos
59 TList *fHlistTimeZero; //list of timeZero related histos
60 TList *fHlistPID; //list of PID-related histos
61 TList *fHpos; //list of general histos for positive tracks
62 TList *fHneg; //list of general histos for negative tracks
65 ClassDef(AliAnalysisTaskTOFqa, 5); // example of analysis