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 ALIRSNCUTSTD_H
13 #define ALIRSNCUTSTD_H
15 #include "AliRsnCut.h"
17 class AliRsnCutStd : public AliRsnCut
21 // available cut types
22 // some ones work both for pairs and single tracks
43 // cut without reference values
54 AliRsnCutStd(const char *name, EType type, Int_t val1, Int_t val2 = 0, Bool_t useMC = kFALSE);
55 AliRsnCutStd(const char *name, EType type, ULong_t val1, ULong_t val2 = 0, Bool_t useMC = kFALSE);
56 AliRsnCutStd(const char *name, EType type, Double_t val1, Double_t val2 = 0.0, Bool_t useMC = kFALSE);
57 virtual ~AliRsnCutStd() { }
59 virtual Bool_t IsSelected(AliRsnCut::ETarget tgt, AliRsnDaughter*const daughter);
60 virtual Bool_t IsSelected(AliRsnCut::ETarget tgt, AliRsnPairParticle*const pair);
61 virtual Bool_t IsSelected(AliRsnCut::ETarget tgt, AliRsnEvent*const event);
62 virtual Bool_t IsSelected(AliRsnCut::ETarget tgt, AliRsnEvent*const ev1, AliRsnEvent*const ev2);
66 EType fType; // cut type
67 Bool_t fUseMC; // use or not MC values (when applicable)
69 ClassDef(AliRsnCutStd, 1)