1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 // Task for perfomance studies of V0 selection code
17 // More information can be found in the source file
19 #ifndef ALIANALYSISTASKCHECKV0TENDERII_H
20 #define ALIANALYSISTASKCHECKV0TENDERII_H
22 #ifndef ALIANALYSISTASKSE_H
23 #include "AliAnalysisTaskSE.h"
28 class AliHFEcollection;
29 class AliESDv0KineCuts;
32 class AliAnalysisTaskCheckV0tenderII : public AliAnalysisTaskSE{
34 enum{ // Reconstructed V0
41 enum{ // Identified Daughter particles
48 AliAnalysisTaskCheckV0tenderII();
49 AliAnalysisTaskCheckV0tenderII(const Char_t *name);
50 ~AliAnalysisTaskCheckV0tenderII();
52 virtual void UserCreateOutputObjects();
53 virtual void UserExec(Option_t *);
54 virtual void Terminate(Option_t *);
58 void ProcessDaughters(AliESDv0 * const v0);
59 void ProcessV0sMC(AliESDv0 * const v0);
60 void ProcessDaughtersMC(AliESDv0 * const v0);
61 void ProcessBackground(AliESDv0 * const v0);
64 AliAnalysisTaskCheckV0tenderII(const AliAnalysisTaskCheckV0tenderII &ref);
65 AliAnalysisTaskCheckV0tenderII &operator=(const AliAnalysisTaskCheckV0tenderII &ref);
67 Float_t MassV0(AliESDv0 * const v0, Int_t id);
68 Bool_t CheckSigns(AliESDv0 * const v0);
70 Int_t PDGtoPIDv0(Int_t pdgV0) const;
71 Int_t PDGtoPID(Int_t pdg) const;
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
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)
85 TH1 *fEvents; //! Number of Events
87 ClassDef(AliAnalysisTaskCheckV0tenderII, 1)