Adding task for like-sign bkg for D0->Kpi (Carmelo)
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AliAnalysisTaskSEBkgLikeSignD0.h
1 #ifndef AliAnalysisTaskSEBkgLikeSignD0_H
2 #define AliAnalysisTaskSEBkgLikeSignD0_H
3
4 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //*************************************************************************
8 // Class AliAnalysisTaskSEBkgLikeSignD0
9 // AliAnalysisTaskSE for reading both reconstructed D0 -> Kpi candidates
10 // and like sign pairs and for drawing corresponding distributions
11 // Author: C.Di Giglio, carmelo.digiglio@ba.infn.it
12 //*************************************************************************
13
14 #include <TROOT.h>
15 #include <TSystem.h>
16 #include <TList.h>
17 #include <TH1F.h>
18 #include <TH2F.h>
19
20 #include "AliAnalysisTaskSE.h"
21 #include "AliAnalysisVertexingHF.h"
22
23 class AliAnalysisTaskSEBkgLikeSignD0 : public AliAnalysisTaskSE
24 {
25  public:
26
27   AliAnalysisTaskSEBkgLikeSignD0();
28   AliAnalysisTaskSEBkgLikeSignD0(const char *name);
29   virtual ~AliAnalysisTaskSEBkgLikeSignD0();
30
31
32   // Implementation of interface methods
33   virtual void UserCreateOutputObjects();
34   virtual void Init();
35   virtual void LocalInit() {Init();}
36   virtual void UserExec(Option_t *option);
37   virtual void Terminate(Option_t *option);
38
39  private:
40
41   AliAnalysisTaskSEBkgLikeSignD0(const AliAnalysisTaskSEBkgLikeSignD0 &source);
42   AliAnalysisTaskSEBkgLikeSignD0& operator=(const AliAnalysisTaskSEBkgLikeSignD0& source); 
43
44   TList   *fOutput;                //! list send on output slot 0
45   TH1F    *fHistMassD0;            //! output histograms
46   TH1F    *fHistMassLS;            //!
47   TH1F    *fHistCtsD0;             //! Cosine of decay angle
48   TH1F    *fHistCtsLS;             //!
49   TH1F    *fHistCtsLSpos;          //!
50   TH1F    *fHistCtsLSneg;          //!
51   TH1F    *fHistCPtaD0;            //! Cosine of pointing angle
52   TH1F    *fHistCPtaLS;            //!
53   TH1F    *fHistd0d0D0;            //! Product of impact parameters
54   TH1F    *fHistd0d0LS;            //!
55   TH1F    *fHistDCAD0;             //! Distance of closest approach
56   TH1F    *fHistDCALS;             //! like-sign
57   AliAnalysisVertexingHF *fVHF;    // Vertexer heavy flavour (used to pass the cuts)
58
59   Int_t fTotPosPairs;              //
60   Int_t fTotNegPairs;              // normalization
61   Double_t fLsNormalization;       //
62  
63   ClassDef(AliAnalysisTaskSEBkgLikeSignD0,1); // comparison of unlike-sign and like-sign background for D0->Kpi
64 };
65
66 #endif