2 // Class AliRsnCutRange
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.
8 // authors: Martin Vala (martin.vala@cern.ch)
9 // Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
12 #ifndef ALIRSNCUTVALUE_H
13 #define ALIRSNCUTVALUE_H
15 #include "AliRsnCut.h"
21 class AliRsnCutValue : public AliRsnCut
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() { }
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);
39 AliRsnPairDef *fPairDef;
41 ClassDef(AliRsnCutValue, 1)