]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/RESONANCES/AliRsnLoopEffDaughter.h
Bug fix for MC mother label
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnLoopEffDaughter.h
1 //
2 // Class AliRsnLoopEffDaughter
3 //
4 // Inherits from basic AliRsnAnalysisTaskEff for efficiency,
5 // and computed efficiencies for single-tracks
6 //
7 // author: Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
8 //
9
10 #ifndef ALIRSNLOOPEFFDAUGHTER_H
11 #define ALIRSNLOOPEFFDAUGHTER_H
12
13 #include "AliRsnLoopEff.h"
14
15 class AliRsnDaughterDef;
16
17 class AliRsnLoopEffDaughter : public AliRsnLoopEff {
18
19 public:
20
21    AliRsnLoopEffDaughter(const char *name, AliRsnDaughterDef *def);
22    AliRsnLoopEffDaughter(const AliRsnLoopEffDaughter &copy);
23    AliRsnLoopEffDaughter &operator=(const AliRsnLoopEffDaughter &copy);
24    virtual ~AliRsnLoopEffDaughter() {;};
25
26    AliRsnDaughterDef *GetDef()                       {return fDef;}
27    void               SetDef(AliRsnDaughterDef *def) {fDef = def;}
28
29    virtual Bool_t     OkStepMC(TObject *checked, Int_t step);
30    virtual Bool_t     OkStepRec(TObject *checked, Int_t step);
31
32 protected:
33
34    virtual Int_t ProcessEventESD(AliRsnEvent *rsn);
35    virtual Int_t ProcessEventAOD(AliRsnEvent *rsn);
36
37    AliRsnDaughterDef *fDef;  // used daughter definition
38
39    ClassDef(AliRsnLoopEffDaughter, 1)
40 };
41
42 #endif
43