]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnLoopEffPair.h
Some bug fixes, removal of some duplicates and clarified the logic of some pieces...
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnLoopEffPair.h
1 //
2 // Class AliRsnLoopEffPair
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 ALIRSNLOOPEFFPAIR_H
11 #define ALIRSNLOOPEFFPAIR_H
12
13 #include "AliRsnMother.h"
14 #include "AliRsnDaughter.h"
15 #include "AliRsnLoopEff.h"
16
17 class AliMCEvent;
18 class AliAODEvent;
19 class AliRsnPairDef;
20
21 class AliRsnLoopEffPair : public AliRsnLoopEff {
22
23 public:
24
25    AliRsnLoopEffPair(const char *name = "default", AliRsnPairDef *def = 0x0);
26    AliRsnLoopEffPair(const AliRsnLoopEffPair& copy);
27    AliRsnLoopEffPair& operator=(const AliRsnLoopEffPair& copy);
28    virtual ~AliRsnLoopEffPair() {;}
29
30    AliRsnPairDef* GetDef()                   {return fDef;}
31    void           SetDef(AliRsnPairDef *def) {fDef = def;}
32    virtual Int_t  DoLoop(AliRsnEvent *main, AliRsnDaughterSelector *smain = 0, AliRsnEvent *mix = 0, AliRsnDaughterSelector *smix = 0);
33    
34    Bool_t         AssignMotherAndDaughters   (AliRsnEvent *event, Int_t ipart);
35    Bool_t         AssignMotherAndDaughtersESD(AliRsnEvent *event, Int_t ipart);
36    Bool_t         AssignMotherAndDaughtersAOD(AliRsnEvent *event, Int_t ipart);
37
38 protected:
39
40    AliRsnPairDef  *fDef;         //  used pair definition
41    AliRsnMother    fMother;      //! check object (mother)
42    AliRsnDaughter  fDaughter[2]; //! check object (daughter)
43
44    ClassDef(AliRsnLoopEffPair, 1)
45 };
46
47 #endif
48
49