]>
Commit | Line | Data |
---|---|---|
69fbb331 | 1 | // |
2 | // Class AliRsnCutRange | |
3 | // | |
4 | // General implementation of cuts which check a value inside a range. | |
5 | // This range can be defined by two integers or two doubles. | |
6 | // A user-friendly enumeration allows to define what is checked. | |
7 | // | |
8 | // authors: Martin Vala (martin.vala@cern.ch) | |
9 | // Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it) | |
10 | // | |
11 | ||
12 | #ifndef ALIRSNCUTVALUE_H | |
13 | #define ALIRSNCUTVALUE_H | |
14 | ||
15 | #include "AliRsnCut.h" | |
16 | ||
17 | class AliRsnDaughter; | |
18 | class AliRsnMother; | |
19 | class AliRsnEvent; | |
20 | ||
21 | class AliRsnCutValue : public AliRsnCut | |
22 | { | |
23 | public: | |
24 | ||
25 | AliRsnCutValue(); | |
26 | AliRsnCutValue(const char *name, ETarget target, Double_t min, Double_t max, AliRsnPairDef *pd = 0x0); | |
27 | AliRsnCutValue(const AliRsnCutValue& copy); | |
28 | AliRsnCutValue& operator=(const AliRsnCutValue& copy); | |
29 | virtual ~AliRsnCutValue() { } | |
30 | ||
31 | void SetPairDef(AliRsnPairDef *pd) {fPairDef = pd;} | |
32 | AliRsnValue* GetRsnValue() {return &fValue;} | |
33 | Double_t GetCutValue() {return fValue.GetValue();} | |
34 | virtual Bool_t IsSelected(TObject *obj1, TObject *obj2 = 0x0); | |
35 | ||
36 | protected: | |
37 | ||
38 | AliRsnValue fValue; | |
39 | AliRsnPairDef *fPairDef; | |
40 | ||
41 | ClassDef(AliRsnCutValue, 1) | |
42 | }; | |
43 | ||
44 | #endif |