]>
Commit | Line | Data |
---|---|---|
c865cb1d | 1 | // |
2 | // Class AliRsnLoopEffPair | |
3 | // | |
4 | // Inherits from basic AliRsnAnalysisTaskEff for efficiency, | |
b63357a0 | 5 | // and computed efficiencies for pairs |
6 | // using cut sets definition | |
c865cb1d | 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 | ||
f34f960b | 18 | class AliMCEvent; |
19 | class AliAODEvent; | |
c865cb1d | 20 | class AliRsnPairDef; |
21 | ||
22 | class AliRsnLoopEffPair : public AliRsnLoopEff { | |
23 | ||
24 | public: | |
25 | ||
f34f960b | 26 | AliRsnLoopEffPair(const char *name = "default", AliRsnPairDef *def = 0x0); |
61f275d1 | 27 | AliRsnLoopEffPair(const AliRsnLoopEffPair ©); |
28 | AliRsnLoopEffPair &operator=(const AliRsnLoopEffPair ©); | |
c865cb1d | 29 | virtual ~AliRsnLoopEffPair() {;} |
30 | ||
61f275d1 | 31 | AliRsnPairDef *GetDef() {return fDef;} |
c865cb1d | 32 | void SetDef(AliRsnPairDef *def) {fDef = def;} |
33 | virtual Int_t DoLoop(AliRsnEvent *main, AliRsnDaughterSelector *smain = 0, AliRsnEvent *mix = 0, AliRsnDaughterSelector *smix = 0); | |
61f275d1 | 34 | |
f34f960b | 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); | |
c865cb1d | 38 | |
39 | protected: | |
40 | ||
f34f960b | 41 | AliRsnPairDef *fDef; // used pair definition |
42 | AliRsnMother fMother; //! check object (mother) | |
43 | AliRsnDaughter fDaughter[2]; //! check object (daughter) | |
c865cb1d | 44 | |
45 | ClassDef(AliRsnLoopEffPair, 1) | |
46 | }; | |
47 | ||
48 | #endif | |
49 | ||
50 |