CA tracker - updates
[u/mrichter/AliRoot.git] / MFT / AliAnalysisTaskMFTExample.h
CommitLineData
d30a0b7b 1#ifndef AliAnalysisTaskMFTExample_H
2#define AliAnalysisTaskMFTExample_H
3
4#include "AliAnalysisTaskSE.h"
5#include "TH1D.h"
9aa4fd6b 6#include "TList.h"
d30a0b7b 7
8//====================================================================================================================================================
9
10class AliAnalysisTaskMFTExample : public AliAnalysisTaskSE {
11
12public:
13
14 enum {kGenerated, kReconstructed};
15
16 AliAnalysisTaskMFTExample();
17 AliAnalysisTaskMFTExample(const char *name);
18
19 virtual ~AliAnalysisTaskMFTExample() {
20 delete fHistPtSingleMuons;
21 delete fHistPtSingleMuonsFromJpsi;
22 delete fHistPtDimuonsOS;
23 delete fHistMassDimuonsOS;
24 delete fHistPtDimuonsJpsi;
25 delete fHistMassDimuonsJpsi;
26 delete fHistResidualXVtxJpsi;
27 delete fHistResidualYVtxJpsi;
28 delete fHistResidualZVtxJpsi;
29 }
30
31 void SetVertexMode(Int_t vertexMode) { fVertexMode = vertexMode; }
32 void SetVtxResolutionITS(Double_t sigmaX, Double_t sigmaY, Double_t sigmaZ) {
33 fVtxResolutionITS[0] = sigmaX;
34 fVtxResolutionITS[1] = sigmaY;
35 fVtxResolutionITS[2] = sigmaZ;
36 }
37
38 virtual void UserCreateOutputObjects();
39 virtual void UserExec(Option_t *option);
40 virtual void Terminate(Option_t *);
41
42private:
43
44 Double_t fPrimaryVertex[3], fVtxResolutionITS[3];
45 Int_t fVertexMode;
46
9aa4fd6b 47 TList *fHistogramList;
48
d30a0b7b 49 TH1D *fHistPtSingleMuons, *fHistPtSingleMuonsFromJpsi;
50 TH1D *fHistPtDimuonsOS, *fHistMassDimuonsOS;
51 TH1D *fHistPtDimuonsJpsi, *fHistMassDimuonsJpsi;
52
53 TH1D *fHistResidualXVtxJpsi, *fHistResidualYVtxJpsi, *fHistResidualZVtxJpsi;
54
55 ClassDef(AliAnalysisTaskMFTExample, 1) // example of analysis
56
57};
58
59//====================================================================================================================================================
60
61#endif