]>
Commit | Line | Data |
---|---|---|
c865cb1d | 1 | #ifndef ALIRSNLOOPDAUGHTER_H |
2 | #define ALIRSNLOOPDAUGHTER_H | |
3 | ||
4 | // | |
5 | // Class for computations on single daughters | |
6 | // | |
7 | ||
8 | #include "AliRsnDaughter.h" | |
9 | #include "AliRsnLoop.h" | |
10 | ||
11 | class AliRsnDaughterDef; | |
12 | ||
13 | class AliRsnLoopDaughter : public AliRsnLoop { | |
14 | public: | |
15 | ||
16 | AliRsnLoopDaughter(const char *name = "default", Int_t listID = 0, AliRsnDaughterDef *def = 0); | |
17 | AliRsnLoopDaughter(const AliRsnLoopDaughter ©); | |
18 | AliRsnLoopDaughter& operator=(const AliRsnLoopDaughter&); | |
19 | ~AliRsnLoopDaughter(); | |
20 | ||
21 | Int_t GetListID() {return fListID;} | |
22 | AliRsnDaughterDef* GetDef() {return fDef;} | |
23 | AliRsnDaughter* GetDaughter() {return &fDaughter;} | |
24 | ||
25 | void SetListID(Int_t i) {fListID = i;} | |
26 | void SetDef(AliRsnDaughterDef *def) {fDef = def;} | |
27 | ||
28 | virtual void Print(Option_t *opt = "") const; | |
29 | virtual Bool_t Init(const char *prefix, TList *list); | |
30 | virtual Int_t DoLoop(AliRsnEvent *main, AliRsnDaughterSelector *smain, AliRsnEvent *mix = 0, AliRsnDaughterSelector *smix = 0); | |
31 | ||
32 | protected: | |
33 | ||
34 | Int_t fListID; // index of entry list to use | |
35 | AliRsnDaughterDef *fDef; // definition for selection | |
36 | AliRsnDaughter fDaughter; //! daughter temporary member | |
37 | ||
38 | private: | |
39 | ||
40 | ClassDef(AliRsnLoopDaughter, 3) | |
41 | }; | |
42 | ||
43 | #endif | |
44 |