2 // Class AliRsnCutPIDNSigma
4 // General implementation of a single cut strategy, which can be:
5 // - a value contained in a given interval [--> IsBetween() ]
6 // - a value equal to a given reference [--> MatchesValue()]
8 // In all cases, the reference value(s) is (are) given as data members
9 // and each kind of cut requires a given value type (Int, UInt, Double),
10 // but the cut check procedure is then automatized and chosen thanks to
11 // an enumeration of the implemented cut types.
12 // At the end, the user (or any other point which uses this object) has
13 // to use the method IsSelected() to check if this cut has been passed.
15 // authors: Martin Vala (martin.vala@cern.ch)
16 // Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
19 #include "AliRsnPIDRange.h"
21 ClassImp(AliRsnPIDRange)
23 //_____________________________________________________________________________
24 AliRsnPIDRange::AliRsnPIDRange(Double_t nsigma, Double_t pmin, Double_t pmax) : TObject() ,
30 // Default constructor
35 //_____________________________________________________________________________
36 AliRsnPIDRange::AliRsnPIDRange(const AliRsnPIDRange ©) : TObject(copy),
39 fNSigmaCut(copy.fNSigmaCut)
47 //_____________________________________________________________________________
48 AliRsnPIDRange &AliRsnPIDRange::operator=(const AliRsnPIDRange ©)
51 // Assignment operator.
54 TObject::operator=(copy);
59 fNSigmaCut = copy.fNSigmaCut;