1 #ifndef ALIANALYSISTASKCHECKV0TENDERII_H
2 #define ALIANALYSISTASKCHECKV0TENDERII_H
4 /**************************************************************************
5 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
22 // Task for perfomance studies of V0 selection code
23 // More information can be found in the source file
25 #ifndef ALIANALYSISTASKSE_H
26 #include "AliAnalysisTaskSE.h"
31 class AliHFEcollection;
32 class AliESDv0KineCuts;
35 class AliAnalysisTaskCheckV0tenderII : public AliAnalysisTaskSE{
37 enum{ // Reconstructed V0
44 enum{ // Identified Daughter particles
51 AliAnalysisTaskCheckV0tenderII();
52 AliAnalysisTaskCheckV0tenderII(const Char_t *name);
53 ~AliAnalysisTaskCheckV0tenderII();
55 virtual void UserCreateOutputObjects();
56 virtual void UserExec(Option_t *);
57 virtual void Terminate(Option_t *);
61 void ProcessDaughters(AliESDv0 * const v0);
62 void ProcessV0sMC(AliESDv0 * const v0);
63 void ProcessDaughtersMC(AliESDv0 * const v0);
64 void ProcessBackground(AliESDv0 * const v0);
67 AliAnalysisTaskCheckV0tenderII(const AliAnalysisTaskCheckV0tenderII &ref);
68 AliAnalysisTaskCheckV0tenderII &operator=(const AliAnalysisTaskCheckV0tenderII &ref);
70 Float_t MassV0(AliESDv0 * const v0, Int_t id);
71 Bool_t CheckSigns(AliESDv0 * const v0);
73 Int_t PDGtoPIDv0(Int_t pdgV0) const;
74 Int_t PDGtoPID(Int_t pdg) const;
78 TList *fOutput; //! Container for output histos
79 AliHFEcollection *fColl; //! collection of Data output
80 AliHFEcollection *fCollMC; //! collection of MC output
81 AliESDv0KineCuts *fV0cuts; //! standalone V0 selection class
82 AliKFVertex *fPrimaryVertex; //! primary vertex of the current event
84 Int_t fpdgV0; // PDG code of the reconstructed V0
85 Int_t fpdgP; // PDG code of the positive daughter (sign corrected)
86 Int_t fpdgN; // PDG code of the negative daughter (sign coreccted)
88 TH1 *fEvents; //! Number of Events
90 ClassDef(AliAnalysisTaskCheckV0tenderII, 1)