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 **************************************************************************/
17 // Using AliHFEpidQA and AliHFEMCpidQA
18 // More information can be found in the source file
20 #ifndef ALIANALYSISTASKCHECKV0TENDERII_H
21 #define ALIANALYSISTASKCHECKV0TENDERII_H
23 #ifndef ALIANALYSISTASKSE_H
24 #include "AliAnalysisTaskSE.h"
29 class AliHFEcollection;
30 class AliESDv0KineCuts;
33 class AliAnalysisTaskCheckV0tenderII : public AliAnalysisTaskSE{
35 enum{ // Reconstructed V0
42 enum{ // Identified Daughter particles
49 AliAnalysisTaskCheckV0tenderII();
50 AliAnalysisTaskCheckV0tenderII(const Char_t *name);
51 ~AliAnalysisTaskCheckV0tenderII();
53 virtual void UserCreateOutputObjects();
54 virtual void UserExec(Option_t *);
55 virtual void Terminate(Option_t *);
59 void ProcessDaughters(AliESDv0 * const v0);
60 void ProcessV0sMC(AliESDv0 * const v0);
61 void ProcessDaughtersMC(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;
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
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)
83 TH1 *fEvents; //! Number of Events
85 ClassDef(AliAnalysisTaskCheckV0tenderII, 1)