]>
Commit | Line | Data |
---|---|---|
c865cb1d | 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 | ||
f34f960b | 17 | class AliMCEvent; |
18 | class AliAODEvent; | |
c865cb1d | 19 | class AliRsnPairDef; |
20 | ||
21 | class AliRsnLoopEffPair : public AliRsnLoopEff { | |
22 | ||
23 | public: | |
24 | ||
f34f960b | 25 | AliRsnLoopEffPair(const char *name = "default", AliRsnPairDef *def = 0x0); |
c865cb1d | 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); | |
f34f960b | 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); | |
c865cb1d | 37 | |
38 | protected: | |
39 | ||
f34f960b | 40 | AliRsnPairDef *fDef; // used pair definition |
41 | AliRsnMother fMother; //! check object (mother) | |
42 | AliRsnDaughter fDaughter[2]; //! check object (daughter) | |
c865cb1d | 43 | |
44 | ClassDef(AliRsnLoopEffPair, 1) | |
45 | }; | |
46 | ||
47 | #endif | |
48 | ||
49 |