]>
Commit | Line | Data |
---|---|---|
27de2dfb | 1 | #ifndef ALIHFESIGNALCUTS_H |
2 | #define ALIHFESIGNALCUTS_H | |
3 | ||
3a72645a | 4 | /************************************************************************** |
5 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
6 | * * | |
7 | * Author: The ALICE Off-line Project. * | |
8 | * Contributors are mentioned in the code where appropriate. * | |
9 | * * | |
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 | **************************************************************************/ | |
27de2dfb | 18 | |
19 | /* $Id$ */ | |
20 | ||
3a72645a | 21 | // |
22 | // Signal cuts | |
23 | // Checks whether a particle (reconstructed or MC) is coming from MC Signal | |
24 | // For more information see implementation file | |
25 | // | |
3a72645a | 26 | #ifndef ALIANALYSISCUTS_H |
27 | #include "AliAnalysisCuts.h" | |
28 | #endif | |
29 | ||
30 | class TList; | |
31 | class AliMCEvent; | |
32 | class AliVParticle; | |
33 | class AliHFEmcQA; | |
34 | ||
35 | class AliHFEsignalCuts : public AliAnalysisCuts{ | |
36 | public: | |
37 | AliHFEsignalCuts(); | |
38 | AliHFEsignalCuts(const Char_t *name, const Char_t *title); | |
39 | AliHFEsignalCuts(const AliHFEsignalCuts &ref); | |
40 | AliHFEsignalCuts &operator=(const AliHFEsignalCuts &ref); | |
41 | virtual ~AliHFEsignalCuts(); | |
42 | ||
43 | virtual Bool_t IsSelected(TObject *o); | |
44 | virtual Bool_t IsSelected(TList * /*l*/) { return kTRUE; }; | |
45 | ||
46 | Bool_t IsCharmElectron(const TObject * const o) const; | |
47 | Bool_t IsBeautyElectron(const TObject * const o) const; | |
48 | Bool_t IsGammaElectron(const TObject * const o) const; | |
49 | ||
50 | //void SetMCEvent(AliMCEvent *mc) { fMC = mc; } | |
51 | void SetMCEvent(AliMCEvent *mc); | |
52 | ||
53 | protected: | |
54 | Int_t GetMotherPDG(const AliVParticle * const track) const; | |
55 | Int_t GetTrackPDG(const AliVParticle * const track) const; | |
56 | Int_t GetElecSource(const AliVParticle * const track) const ; | |
57 | ||
58 | private: | |
59 | AliMCEvent *fMC; //! MC event | |
60 | AliHFEmcQA *fMCQA; //! MC QA | |
61 | ||
62 | ClassDef(AliHFEsignalCuts, 2) | |
63 | }; | |
64 | #endif | |
65 |