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