]>
Commit | Line | Data |
---|---|---|
aac12889 | 1 | #ifndef ALIANALYSISTASKTOFQA_h |
2 | #define ALIANALYSISTASKTOFQA_h | |
3 | ||
4 | class TString; | |
5 | class TList; | |
6 | class AliESDEvent; | |
7 | class AliAnalysisFilter; | |
154404b2 | 8 | class AliCDBManager; |
9 | class AliTOFcalib; | |
10 | class AliTOFT0maker; | |
11 | class AliTOFT0v1; | |
aac12889 | 12 | |
13 | #include "AliAnalysisTaskSE.h" | |
14 | ||
15 | class AliAnalysisTaskTOFqa : public AliAnalysisTaskSE { | |
16 | public: | |
17 | AliAnalysisTaskTOFqa(); | |
18 | AliAnalysisTaskTOFqa(const char *name); | |
19 | AliAnalysisTaskTOFqa(const AliAnalysisTaskTOFqa& copy); | |
20 | AliAnalysisTaskTOFqa& operator= (const AliAnalysisTaskTOFqa& copy); | |
21 | virtual ~AliAnalysisTaskTOFqa(); | |
22 | ||
aac12889 | 23 | virtual void UserCreateOutputObjects(); |
24 | virtual void UserExec(Option_t *option); | |
25 | virtual void Terminate(Option_t *); | |
26 | ||
27 | ||
28 | Int_t GetStripIndex(const Int_t * const in); | |
29 | void SetTrackFilter(AliAnalysisFilter *filter) {fTrackFilter = filter;}; | |
4170635c | 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;}; | |
c9232487 | 34 | void FillStartTimeMaskHisto(); |
154404b2 | 35 | Bool_t ComputeTimeZeroByTOF1GeV(); |
36 | ||
aac12889 | 37 | private: |
154404b2 | 38 | Int_t fRunNumber; //run number |
aac12889 | 39 | AliESDEvent *fESD; //ESD object |
40 | AliAnalysisFilter *fTrackFilter; //track filter object | |
41 | AliESDVertex *fVertex; //pointer to the vertex object | |
e866f574 | 42 | AliESDpid *fESDpid; //pointer to the PID object |
7a9f204e | 43 | // AliTOFT0v1 *fTOFT0v1; // TOF-T0 v1 |
aac12889 | 44 | Int_t fNTOFtracks; //number of tracks matching with TOF |
e866f574 | 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 | |
4170635c | 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 | |
154404b2 | 54 | Double_t fMyTimeZeroTOF, fMyTimeZeroTOFsigma; //timeZero by TOF recomputed |
55 | Int_t fMyTimeZeroTOFtracks; // number of tracks used to recompute TOF_T0 | |
4170635c | 56 | |
aac12889 | 57 | //output objects |
58 | TList *fHlist; //list of general histos | |
e866f574 | 59 | TList *fHlistTimeZero; //list of timeZero related histos |
60 | TList *fHlistPID; //list of PID-related histos | |
4170635c | 61 | TList *fHpos; //list of general histos for positive tracks |
62 | TList *fHneg; //list of general histos for negative tracks | |
63 | ||
aac12889 | 64 | |
7a9f204e | 65 | ClassDef(AliAnalysisTaskTOFqa, 5); // example of analysis |
aac12889 | 66 | }; |
67 | ||
68 | #endif |