]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/RESONANCES/AliRsnLoopEffPair.h
For backward compatibility changed the method AliVTrack::GetIntegratedTimes(double...
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnLoopEffPair.h
1 //
2 // Class AliRsnLoopEffPair
3 //
4 // Inherits from basic AliRsnAnalysisTaskEff for efficiency,
5 // and computed efficiencies for pairs
6 // using cut sets definition
7 //
8 // author: Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
9 //
10
11 #ifndef ALIRSNLOOPEFFPAIR_H
12 #define ALIRSNLOOPEFFPAIR_H
13
14 #include "AliRsnMother.h"
15 #include "AliRsnDaughter.h"
16 #include "AliRsnLoopEff.h"
17
18 class AliMCEvent;
19 class AliAODEvent;
20 class AliRsnPairDef;
21
22 class AliRsnLoopEffPair : public AliRsnLoopEff {
23
24 public:
25
26    AliRsnLoopEffPair(const char *name = "default", AliRsnPairDef *def = 0x0);
27    AliRsnLoopEffPair(const AliRsnLoopEffPair &copy);
28    AliRsnLoopEffPair &operator=(const AliRsnLoopEffPair &copy);
29    virtual ~AliRsnLoopEffPair() {;}
30
31    AliRsnPairDef *GetDef()                   {return fDef;}
32    void           SetDef(AliRsnPairDef *def) {fDef = def;}
33    virtual Int_t  DoLoop(AliRsnEvent *main, AliRsnDaughterSelector *smain = 0, AliRsnEvent *mix = 0, AliRsnDaughterSelector *smix = 0);
34
35    Bool_t         AssignMotherAndDaughters   (AliRsnEvent *event, Int_t ipart);
36    Bool_t         AssignMotherAndDaughtersESD(AliRsnEvent *event, Int_t ipart);
37    Bool_t         AssignMotherAndDaughtersAOD(AliRsnEvent *event, Int_t ipart);
38
39 protected:
40
41    AliRsnPairDef  *fDef;         //  used pair definition
42    AliRsnMother    fMother;      //! check object (mother)
43    AliRsnDaughter  fDaughter[2]; //! check object (daughter)
44
45    ClassDef(AliRsnLoopEffPair, 1)
46 };
47
48 #endif
49
50