Coverity
[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 /* $Id$ */ 
8
9 //*************************************************************************
10 // Class AliAnalysisTaskSEBkgLikeSignD0
11 // AliAnalysisTaskSE for reading both reconstructed D0 -> Kpi candidates
12 // and like sign pairs and for drawing corresponding distributions
13 // Author: C.Di Giglio, carmelo.digiglio@ba.infn.it
14 //*************************************************************************
15
16 #include <TROOT.h>
17 #include <TSystem.h>
18 #include <TList.h>
19 #include <TH1F.h>
20 #include <TH2F.h>
21
22 #include "AliAnalysisTaskSE.h"
23 #include "AliAnalysisVertexingHF.h"
24
25 class AliAnalysisTaskSEBkgLikeSignD0 : public AliAnalysisTaskSE
26 {
27  public:
28
29   AliAnalysisTaskSEBkgLikeSignD0();
30   AliAnalysisTaskSEBkgLikeSignD0(const char *name);
31   virtual ~AliAnalysisTaskSEBkgLikeSignD0();
32
33
34   // Implementation of interface methods
35   virtual void UserCreateOutputObjects();
36   virtual void Init();
37   virtual void LocalInit() {Init();}
38   virtual void UserExec(Option_t *option);
39   virtual void Terminate(Option_t *option);
40
41  private:
42
43   AliAnalysisTaskSEBkgLikeSignD0(const AliAnalysisTaskSEBkgLikeSignD0 &source);
44   AliAnalysisTaskSEBkgLikeSignD0& operator=(const AliAnalysisTaskSEBkgLikeSignD0& source); 
45
46   TList   *fOutput;                //! list send on output slot 0
47   TH1F    *fHistMassD0;            //! output histograms
48   TH1F    *fHistMassLS;            //!
49   TH1F    *fHistCtsD0;             //! Cosine of decay angle
50   TH1F    *fHistCtsLS;             //!
51   TH1F    *fHistCtsLSpos;          //!
52   TH1F    *fHistCtsLSneg;          //!
53   TH1F    *fHistCPtaD0;            //! Cosine of pointing angle
54   TH1F    *fHistCPtaLS;            //!
55   TH1F    *fHistd0d0D0;            //! Product of impact parameters
56   TH1F    *fHistd0d0LS;            //!
57   TH1F    *fHistDCAD0;             //! Distance of closest approach
58   TH1F    *fHistDCALS;             //! like-sign
59   AliAnalysisVertexingHF *fVHF;    // Vertexer heavy flavour (used to pass the cuts)
60   TH1F *fNentries;                 //! histogram with number of events
61   Int_t fTotPosPairs;              //
62   Int_t fTotNegPairs;              // normalization
63   Double_t fLsNormalization;       //
64  
65   ClassDef(AliAnalysisTaskSEBkgLikeSignD0,1); // comparison of unlike-sign and like-sign background for D0->Kpi
66 };
67
68 #endif