]>
Commit | Line | Data |
---|---|---|
d731501a | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
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 * | |
7 | ||
8 | /// @file AliDxHFEParticleSelectionMCD0.h | |
9 | /// @author Hege Erdal, Matthias Richter | |
10 | /// @date 2012-07-19 | |
11 | /// @brief D0 MC selection for D-HFE correlations | |
12 | /// | |
13 | ||
14 | #ifndef ALIDXHFEPARTICLESELECTIONMCD0_H | |
15 | #define ALIDXHFEPARTICLESELECTIONMCD0_H | |
16 | ||
17 | #include "AliDxHFEParticleSelectionD0.h" | |
18 | #include "AliDxHFEToolsMC.h" | |
19 | ||
dfe96b90 | 20 | class TH1; |
21 | ||
d731501a | 22 | /** |
23 | * @class AliDxHFEParticleSelectionMCD0 | |
24 | * Monte Carlo D0 selection for D-HFE correlations, implements the specific | |
25 | * selection criteria. | |
26 | */ | |
27 | class AliDxHFEParticleSelectionMCD0 : public AliDxHFEParticleSelectionD0 { | |
28 | public: | |
29 | /// constructor | |
30 | AliDxHFEParticleSelectionMCD0(const char* opt=""); | |
31 | /// destructor | |
32 | virtual ~AliDxHFEParticleSelectionMCD0(); | |
33 | ||
34 | /// overloaded from AliDxHFEParticleSelection: check particle | |
35 | virtual int IsSelected(AliVParticle* p, const AliVEvent *pEvent=NULL); | |
b4779749 | 36 | virtual int InitControlObjects(); |
d731501a | 37 | |
dcf83226 | 38 | virtual THnSparse* DefineTHnSparse(); |
39 | virtual int FillParticleProperties(AliVParticle* p, Double_t* date, int dimension) const; | |
dfe96b90 | 40 | virtual AliVParticle* CreateParticle(AliVParticle* track); |
d731501a | 41 | |
42 | /// check MC criteria | |
43 | int CheckMC(AliVParticle* p, const AliVEvent* pEvent); | |
44 | ||
dfe96b90 | 45 | /// Flag to run over MC "stack". Not used at the moment |
46 | void SetUseKine(bool kine){fUseKine=kine;} | |
47 | ||
d731501a | 48 | /// clear internal memory |
49 | virtual void Clear(const char* option=""); | |
50 | ||
51 | protected: | |
b4779749 | 52 | virtual int HistogramParticleProperties(AliVParticle* p, int selected=1); |
d731501a | 53 | |
54 | private: | |
55 | /// copy contructor prohibited | |
56 | AliDxHFEParticleSelectionMCD0(const AliDxHFEParticleSelectionMCD0&); | |
57 | /// assignment operator prohibited | |
58 | AliDxHFEParticleSelectionMCD0& operator=(const AliDxHFEParticleSelectionMCD0&); | |
59 | ||
60 | AliDxHFEToolsMC fMCTools; // MC selction tools | |
dfe96b90 | 61 | TH1* fPDGnotMCD0; // holds PDG of not MC truth D0s |
d731501a | 62 | int fResultMC; // Result on MC check |
63 | int fOriginMother; // Holds info on the original mother particle | |
dfe96b90 | 64 | bool fUseKine; // Whether to run over MC particles (true) or Reco (false) |
b4779749 | 65 | THnSparse* fD0PropertiesKine; //the particle properties of selected particles |
d731501a | 66 | |
b4779749 | 67 | ClassDef(AliDxHFEParticleSelectionMCD0, 3); |
d731501a | 68 | }; |
69 | ||
70 | #endif |