]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/RESONANCES/AliRsnPIDRange.cxx
Fix in AddTaskXiStar to remove physics selection (not needed)
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnPIDRange.cxx
CommitLineData
2bfbc28d 1//
2// Class AliRsnCutPIDNSigma
3//
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()]
7//
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.
14//
15// authors: Martin Vala (martin.vala@cern.ch)
16// Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
17//
18
19#include "AliRsnPIDRange.h"
20
21ClassImp(AliRsnPIDRange)
22
23//_____________________________________________________________________________
24AliRsnPIDRange::AliRsnPIDRange(Double_t nsigma, Double_t pmin, Double_t pmax) : TObject() ,
25 fPMin(pmin),
26 fPMax(pmax),
27 fNSigmaCut(nsigma)
28{
29//
30// Default constructor
31//
32
33}
34
35//_____________________________________________________________________________
36AliRsnPIDRange::AliRsnPIDRange(const AliRsnPIDRange &copy) : TObject(copy),
37 fPMin(copy.fPMin),
38 fPMax(copy.fPMax),
39 fNSigmaCut(copy.fNSigmaCut)
40{
41//
42// Copy constructor
43//
44
45}
46
47//_____________________________________________________________________________
48AliRsnPIDRange &AliRsnPIDRange::operator=(const AliRsnPIDRange &copy)
49{
50//
51// Assignment operator.
52//
53
54 TObject::operator=(copy);
55 if (this == &copy)
56 return *this;
57 fPMin = copy.fPMin;
58 fPMax = copy.fPMax;
59 fNSigmaCut = copy.fNSigmaCut;
60
61 return (*this);
62}