]>
Commit | Line | Data |
---|---|---|
c865cb1d | 1 | #ifndef ALIRSNDAUGHTERSELECTOR_H |
2 | #define ALIRSNDAUGHTERSELECTOR_H | |
3 | ||
4 | #include <TNamed.h> | |
5 | #include <TClonesArray.h> | |
6 | ||
7 | class TEntryList; | |
8 | ||
9 | class AliRsnCutSet; | |
10 | class AliRsnEvent; | |
11 | ||
12 | class AliRsnDaughterSelector : public TNamed { | |
13 | ||
14 | public: | |
15 | ||
16 | AliRsnDaughterSelector(const char *name = "name", const char *title = "title"); | |
61f275d1 | 17 | AliRsnDaughterSelector(const AliRsnDaughterSelector ©); |
c865cb1d | 18 | AliRsnDaughterSelector &operator=(const AliRsnDaughterSelector ©); |
19 | virtual ~AliRsnDaughterSelector(); | |
20 | ||
21 | void Init(); | |
22 | void Reset(); | |
23 | Int_t Add(AliRsnCutSet *cuts, Bool_t charged); | |
24 | Int_t GetID(const char *cutSetName, Bool_t charged); | |
61f275d1 | 25 | TEntryList *GetSelected(Int_t i, Char_t charge); |
26 | TEntryList *GetSelected(Int_t i, Short_t charge); | |
c865cb1d | 27 | void ScanEvent(AliRsnEvent *ev); |
61f275d1 | 28 | |
29 | virtual void Print(Option_t *option = "") const; | |
30 | ||
31 | TClonesArray *GetCutSetC() {return &fCutSetsC;} | |
32 | TClonesArray *GetCutSetN() {return &fCutSetsN;} | |
57bd06e2 | 33 | |
34 | void SetLabelCheck(Bool_t useLabelCheck = kTRUE) { fUseLabelCheck = useLabelCheck;} | |
c865cb1d | 35 | |
36 | private: | |
37 | ||
38 | TClonesArray fCutSetsN; // cuts for neutral daughters | |
39 | TClonesArray fCutSetsC; // cuts for charged daughters (usually, the same) | |
61f275d1 | 40 | |
c865cb1d | 41 | TClonesArray fEntryListsN; // entry lists for neutrals |
42 | TClonesArray fEntryListsP; // entry lists for charged (one per sign) | |
43 | TClonesArray fEntryListsM; // entry lists for charged (one per sign) | |
57bd06e2 | 44 | |
45 | Bool_t fUseLabelCheck; // flag is reapiting of label should be checked | |
c865cb1d | 46 | |
57bd06e2 | 47 | ClassDef(AliRsnDaughterSelector, 2) |
c865cb1d | 48 | }; |
49 | ||
50 | #endif |