]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnCutMgr.h
Corrections, bug fixes and a class name change
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutMgr.h
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
14
15 #include "TNamed.h"
16 #include "TObjArray.h"
17
18 #include "AliRsnCut.h"
19
20 class AliRsnCutSet;
21
22 class AliRsnCutMgr : public TNamed
23 {
24   public:
25
26     AliRsnCutMgr();
27     AliRsnCutMgr(const char *name, const char* title);
28     ~AliRsnCutMgr();
29
30     void          SetCutSet(AliRsnCut::ETarget type, AliRsnCutSet* cutset);
31     AliRsnCutSet* GetCutSet(AliRsnCut::ETarget type) {return fCutSets[type];}
32     Bool_t        IsSelected(AliRsnCut::ETarget type, TObject *obj);
33
34   private:
35
36     // dummy constructors
37     AliRsnCutMgr(const AliRsnCutMgr &cut) : TNamed(cut) {}
38     AliRsnCutMgr& operator=(const AliRsnCutMgr& /*cut*/) {return *this;}
39
40     AliRsnCutSet *fCutSets[AliRsnCut::kLastCutTarget];  // cut definitions for all targets
41
42     ClassDef(AliRsnCutMgr, 1)  // dictionary
43 };
44
45 #endif