]>
Commit | Line | Data |
---|---|---|
e2bafbbc | 1 | // |
2 | // Class AliRsnCutMgr | |
3 | // | |
4 | // The cut manager: contains a complete set of cut definitions | |
5 | // to be applied to all possible targets (one for each target), | |
6 | // in order to ease the set-up procedure of cuts and allow to | |
7 | // pass them at once to each object which must use them | |
8 | // | |
9 | // author: Martin Vala (martin.vala@cern.ch) | |
10 | // | |
11 | ||
12 | #ifndef ALIRSNCUTMGR_H | |
13 | #define ALIRSNCUTMGR_H | |
06351446 | 14 | |
4fbb2459 | 15 | #include <TNamed.h> |
06351446 | 16 | |
17 | #include "AliRsnCut.h" | |
e2bafbbc | 18 | |
06351446 | 19 | class AliRsnCutSet; |
20 | ||
06351446 | 21 | class AliRsnCutMgr : public TNamed |
22 | { | |
23 | public: | |
8ecf98c4 | 24 | |
06351446 | 25 | AliRsnCutMgr(); |
26 | AliRsnCutMgr(const char *name, const char* title); | |
06351446 | 27 | ~AliRsnCutMgr(); |
8ecf98c4 | 28 | |
4fbb2459 | 29 | void SetCutSet(AliRsnCut::ETarget type, AliRsnCutSet*const cutset); |
9477aa42 | 30 | AliRsnCutSet* GetCutSet(AliRsnCut::ETarget type) const {return fCutSets[type];} |
4fbb2459 | 31 | Bool_t IsSelected(AliRsnCut::ETarget type, TObject *const obj); |
413bbf44 | 32 | void SetEvent(AliRsnEvent *event); |
06351446 | 33 | |
34 | private: | |
35 | ||
e2bafbbc | 36 | // dummy constructors |
37 | AliRsnCutMgr(const AliRsnCutMgr &cut) : TNamed(cut) {} | |
8ecf98c4 | 38 | AliRsnCutMgr& operator=(const AliRsnCutMgr& /*cut*/) {return *this;} |
39 | ||
e2bafbbc | 40 | AliRsnCutSet *fCutSets[AliRsnCut::kLastCutTarget]; // cut definitions for all targets |
8ecf98c4 | 41 | |
e0baff8c | 42 | ClassDef(AliRsnCutMgr, 1) // dictionary |
06351446 | 43 | }; |
44 | ||
45 | #endif |