]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/hfe/AliAnalysisTaskCheckV0tenderII.h
Corrections for Coverity warnings
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliAnalysisTaskCheckV0tenderII.h
1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 *                                                                        *
4 * Author: The ALICE Off-line Project.                                    *
5 * Contributors are mentioned in the code where appropriate.              *
6 *                                                                        *
7 * Permission to use, copy, modify and distribute this software and its   *
8 * documentation strictly for non-commercial purposes is hereby granted   *
9 * without fee, provided that the above copyright notice appears in all   *
10 * copies and that both the copyright notice and this permission notice   *
11 * appear in the supporting documentation. The authors make no claims     *
12 * about the suitability of this software for any purpose. It is          *
13 * provided "as is" without express or implied warranty.                  *
14 **************************************************************************/
15 //
16 // Task for perfomance studies of V0 selection code
17 // More information can be found in the source file
18 //
19 #ifndef ALIANALYSISTASKCHECKV0TENDERII_H
20 #define ALIANALYSISTASKCHECKV0TENDERII_H
21
22 #ifndef ALIANALYSISTASKSE_H
23 #include "AliAnalysisTaskSE.h"
24 #endif
25
26 class TH1F;
27 class TList;
28 class AliHFEcollection;
29 class AliESDv0KineCuts;
30 class AliKFVertex;
31
32 class AliAnalysisTaskCheckV0tenderII : public AliAnalysisTaskSE{
33  public:
34    enum{ // Reconstructed V0
35       kRecoGamma = 0,
36       kRecoK0 = 1,
37       kRecoLambda = 2,
38       kRecoALambda = 3
39       
40       };
41   enum{ // Identified Daughter particles
42     kRecoElectron = 0,
43       kRecoPionK0 = 1,
44       kRecoPionL = 2,
45       kRecoProton = 3
46       };
47
48   AliAnalysisTaskCheckV0tenderII();
49   AliAnalysisTaskCheckV0tenderII(const Char_t *name);
50   ~AliAnalysisTaskCheckV0tenderII();
51   
52   virtual void UserCreateOutputObjects();
53   virtual void UserExec(Option_t *);
54   virtual void Terminate(Option_t *);
55  
56   
57   void ProcessV0s();
58   void ProcessDaughters(AliESDv0 * const v0);
59   void ProcessV0sMC(AliESDv0 * const v0);
60   void ProcessDaughtersMC(AliESDv0 * const v0);
61   void ProcessBackground(AliESDv0 * const v0);
62
63  private:
64   AliAnalysisTaskCheckV0tenderII(const AliAnalysisTaskCheckV0tenderII &ref);
65   AliAnalysisTaskCheckV0tenderII &operator=(const AliAnalysisTaskCheckV0tenderII &ref);
66
67   Float_t MassV0(AliESDv0 * const v0, Int_t id);
68   Bool_t  CheckSigns(AliESDv0 * const v0);
69
70   Int_t   PDGtoPIDv0(Int_t pdgV0) const;
71   Int_t   PDGtoPID(Int_t pdg) const;  
72   
73   void    ResetPDGcodes();
74   
75   TList              *fOutput;        //! Container for output histos
76   AliHFEcollection   *fColl;          //! collection of Data output
77   AliHFEcollection   *fCollMC;        //! collection of MC output
78   AliESDv0KineCuts   *fV0cuts;        //! standalone V0 selection class
79   AliKFVertex        *fPrimaryVertex; //! primary vertex of the current event
80
81   Int_t               fpdgV0;  // PDG code of the reconstructed V0
82   Int_t               fpdgP;   // PDG code of the positive daughter (sign corrected)
83   Int_t               fpdgN;   // PDG code of the negative daughter (sign coreccted)
84   
85   TH1 *fEvents;              //! Number of Events
86
87   ClassDef(AliAnalysisTaskCheckV0tenderII, 1)
88
89 };
90
91
92 #endif