4 //* This file is property of and copyright by the ALICE Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
6 //* See cxx source for full Copyright notice *
8 /// @file AliDxHFEParticleSelectionMCD0.h
9 /// @author Hege Erdal, Matthias Richter
11 /// @brief D0 MC selection for D-HFE correlations
14 #ifndef ALIDXHFEPARTICLESELECTIONMCD0_H
15 #define ALIDXHFEPARTICLESELECTIONMCD0_H
17 #include "AliDxHFEParticleSelectionD0.h"
18 #include "AliDxHFEToolsMC.h"
23 * @class AliDxHFEParticleSelectionMCD0
24 * Monte Carlo D0 selection for D-HFE correlations, implements the specific
27 class AliDxHFEParticleSelectionMCD0 : public AliDxHFEParticleSelectionD0 {
30 AliDxHFEParticleSelectionMCD0(const char* opt="");
32 virtual ~AliDxHFEParticleSelectionMCD0();
34 /// overloaded from AliDxHFEParticleSelection: check particle
35 virtual int IsSelected(AliVParticle* p, const AliVEvent *pEvent=NULL);
36 virtual int InitControlObjects();
38 virtual THnSparse* DefineTHnSparse();
39 virtual int FillParticleProperties(AliVParticle* p, Double_t* date, int dimension) const;
40 virtual AliVParticle* CreateParticle(AliVParticle* track);
43 int CheckMC(AliVParticle* p, const AliVEvent* pEvent);
45 /// Flag to run over MC "stack". Not used at the moment
46 void SetUseKine(bool kine){fUseKine=kine;}
48 /// clear internal memory
49 virtual void Clear(const char* option="");
52 virtual int HistogramParticleProperties(AliVParticle* p, int selected=1);
55 /// copy contructor prohibited
56 AliDxHFEParticleSelectionMCD0(const AliDxHFEParticleSelectionMCD0&);
57 /// assignment operator prohibited
58 AliDxHFEParticleSelectionMCD0& operator=(const AliDxHFEParticleSelectionMCD0&);
60 AliDxHFEToolsMC fMCTools; // MC selction tools
61 TH1* fPDGnotMCD0; // holds PDG of not MC truth D0s
62 int fResultMC; // Result on MC check
63 int fOriginMother; // Holds info on the original mother particle
64 bool fUseKine; // Whether to run over MC particles (true) or Reco (false)
65 THnSparse* fD0PropertiesKine; //the particle properties of selected particles
67 ClassDef(AliDxHFEParticleSelectionMCD0, 3);