]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/STRANGENESS/LambdaK0PbPb/AliAnalysisTaskCTauPbPbaod.h
Possibility to vary the boundaries of the fiducial volume
[u/mrichter/AliRoot.git] / PWGLF / STRANGENESS / LambdaK0PbPb / AliAnalysisTaskCTauPbPbaod.h
1 #ifndef AliAnalysisTaskCTauPbPbaod_h
2 #define AliAnalysisTaskCTauPbPbaod_h
3
4 #include "AliAnalysisTaskSE.h"
5
6 class TH1F;
7 class TH2F;
8 class TH3F;
9 class TList;
10
11 class AliAODEvent;
12 class AliAODTrack;
13 class AliAODv0;
14 class AliAODcascade;
15
16 //
17 //  This is a little task for checking the c*tau of the strange particles 
18 //
19
20 class AliAnalysisTaskCTauPbPbaod : public AliAnalysisTaskSE {
21
22 public:
23
24   AliAnalysisTaskCTauPbPbaod(const char *name = "AliAnalysisTaskCTauPbPbaod");
25   virtual ~AliAnalysisTaskCTauPbPbaod() {}
26
27   void SetCentrality(Double_t min, Double_t max) {fCMin=min;fCMax=max;} 
28   void SetMC(Bool_t isMC=kTRUE) {fIsMC=isMC;}
29
30   void SetCosPA(Double_t cospa) {fCPA=cospa;} 
31   void SetDtrDCA(Double_t cospa){fDCA=cospa;} 
32   void SetTPCrows(Double_t cospa){fTPCcr=cospa;} 
33   void SetTPCratio(Double_t cospa){fTPCcrfd=cospa;} 
34   void SetPrimDCA(Double_t cospa){fDCApv=cospa;} 
35   void SetRmin(Double_t rmin){fRmin=rmin;} 
36   void SetRmax(Double_t rmax){fRmax=rmax;} 
37
38  
39   virtual void   UserCreateOutputObjects();
40   virtual void   UserExec(Option_t *option);
41   virtual void   Terminate(Option_t *);  
42
43
44 private:
45
46   AliAnalysisTaskCTauPbPbaod(const AliAnalysisTaskCTauPbPbaod&);           //not implemented
47   AliAnalysisTaskCTauPbPbaod& operator=(const AliAnalysisTaskCTauPbPbaod&);//not implemented 
48
49   Bool_t AcceptTrack(const AliAODTrack *t); 
50   Bool_t AcceptV0(const AliAODv0 *v0, const AliAODEvent *aod);
51   Bool_t AcceptCascade(const AliAODcascade *cs, const AliAODEvent *aod);
52
53   Bool_t fIsMC;
54   Double_t fCMin;       // Min centrality
55   Double_t fCMax;       // Max centrality
56   Double_t fCPA;        // cos(PA) threshold
57   Double_t fDCA;        // threshold for the DCA between V0 daughters
58   Double_t fTPCcr;      // threshold for the number of crossed TPC pad rows
59   Double_t fTPCcrfd;    // threshold for the ratio of TPC crossed/findable rows
60   Double_t fDCApv;      // threshold for the DCA wrt the primary vertex
61   Double_t fRmin;       // Min radius of the fiducial volume
62   Double_t fRmax;       // Max radius of the fiducial volume
63
64   TList       *fOutput; //! The list of histograms
65
66   TH1F *fMult;       //! Track multiplicity
67
68   TH1F *fCosPA;      //! cos(PA)
69   TH1F *fDtrDCA;     //! DCA between V0 daughters
70   TH1F *fTPCrows;    //! number of crossed TPC pad rows
71   TH1F *fTPCratio;   //! ratio of TPC crossed/findable rows
72   TH1F *fPrimDCA;    //! DCA wrt the primary vertex
73   TH1F *fR;          //! Radial positions of the V0 vertices
74
75   TH2F* fdEdx;       //! dEdx
76   TH2F* fdEdxPid;    //! dEdx with PID
77
78
79   TH2F* fK0sM;       //! Mass for K0s
80   TH2F* fK0sSi;      //! Side-band subtracted LvsP  for K0s 
81   TH2F* fK0sMC;      //! LvsP for the K0s from the Monte Carlo stack 
82   TH2F* fK0sAs;      //! LvsP for the K0s associated with the Monte Carlo 
83
84
85   TH2F* fLambdaM;    //! Mass for Lambdas
86   TH2F* fLambdaSi;   //! Side-band subtrated LvsP for Lambda
87   TH2F* fLambdaMC;   //! LvsP for Lambdas from the Monte Carlo stack
88   TH2F* fLambdaAs;   //! LvsP for Lambdas associated with the Monte Carlo
89
90   TH1D* fLambdaEff;  //! Efficiency for Lambda  
91   TH1D* fLambdaPt;   //! Pt spectrum for Lambda
92
93   TH2F* fLambdaBarM;  //! Mass for anti-Lambdas
94   TH2F* fLambdaBarSi; //! Side-band subtrated LvsP for anti-Lambda
95   TH2F* fLambdaBarMC; //! LvsP for anti-Lambdas from the Monte Carlo stack
96   TH2F* fLambdaBarAs; //! LvsP for anti-Lambdas associated with the Monte Carlo
97
98   TH1D* fLambdaBarEff;  //! Efficiency for anti-Lambda  
99   TH1D* fLambdaBarPt;   //! Pt spectrum for anti-Lambda
100
101   TH3F* fLambdaFromXi;//! LvsPvsPxi for Lambdas from Xis associated with MC 
102   TH2F* fXiM;         //! Mass for Xis
103   TH1F* fXiSiP;       //! Side-band subtracted Pt for reconstructed Xi
104
105   TH3F* fLambdaBarFromXiBar;//! LvsPvsPxi for anti-Lambdas from anti-Xis associated with MC 
106   TH2F* fXiBarM;         //! Mass for anti-Xis
107   TH1F* fXiBarSiP;       //! Side-band subtracted Pt for reconstructed anti-Xi
108
109   ClassDef(AliAnalysisTaskCTauPbPbaod,5);
110 };
111
112 #endif