]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/hfe/AliAnalysisTaskCheckV0tenderII.h
Commit modifications done to take care of the problems
[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 PID QA
17 // Using AliHFEpidQA and AliHFEMCpidQA
18 // More information can be found in the source file
19 //
20 #ifndef ALIANALYSISTASKCHECKV0TENDERII_H
21 #define ALIANALYSISTASKCHECKV0TENDERII_H
22
23 #ifndef ALIANALYSISTASKSE_H
24 #include "AliAnalysisTaskSE.h"
25 #endif
26
27 class TH1F;
28 class TList;
29 class AliHFEcollection;
30 class AliESDv0KineCuts;
31 class AliKFVertex;
32
33 class AliAnalysisTaskCheckV0tenderII : public AliAnalysisTaskSE{
34  public:
35    enum{ // Reconstructed V0
36       kRecoGamma = 0,
37       kRecoK0 = 1,
38       kRecoLambda = 2,
39       kRecoALambda = 3
40       
41       };
42   enum{ // Identified Daughter particles
43     kRecoElectron = 0,
44       kRecoPionK0 = 1,
45       kRecoPionL = 2,
46       kRecoProton = 3
47       };
48
49   AliAnalysisTaskCheckV0tenderII();
50   AliAnalysisTaskCheckV0tenderII(const Char_t *name);
51   ~AliAnalysisTaskCheckV0tenderII();
52   
53   virtual void UserCreateOutputObjects();
54   virtual void UserExec(Option_t *);
55   virtual void Terminate(Option_t *);
56  
57   
58   void ProcessV0s();
59   void ProcessDaughters(AliESDv0 * const v0);
60   void ProcessV0sMC(AliESDv0 * const v0);
61   void ProcessDaughtersMC(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   TList              *fOutput;        //! Container for output histos
74   AliHFEcollection   *fColl;          //! collection of Data output
75   AliHFEcollection   *fCollMC;        //! collection of MC output
76   AliESDv0KineCuts   *fV0cuts;        //! standalone V0 selection class
77   AliKFVertex        *fPrimaryVertex; //! primary vertex of the current event
78
79   Int_t               fpdgV0;  // PDG code of teh reconstructed V0
80   Int_t               fpdgP;   // PDG code of the positive daughter (sign corrected)
81   Int_t               fpdgN;   // PDG code of the negative daughter (sign coreccted)
82   
83   TH1 *fEvents;              //! Number of Events
84
85   ClassDef(AliAnalysisTaskCheckV0tenderII, 1)
86
87 };
88
89
90 #endif