]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnCutMomentumComparison.h
fixed implementation of destructor
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutMomentumComparison.h
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 // author: Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
9 //
10
11 #ifndef ALIRSNCUTMOMENTUMCOMPARISON_H
12 #define ALIRSNCUTMOMENTUMCOMPARISON_H
13
14 #include "AliRsnCut.h"
15
16 class AliRsnCutMomentumComparison : public AliRsnCut {
17 public:
18
19    enum EMode {
20       kFirstLargerP,
21       kFirstSmallerP,
22       kFirstLargerPt,
23       kFirstSmallerPt
24    };
25
26    AliRsnCutMomentumComparison(const char *name = "cutMomComparison", EMode mode = kFirstLargerPt);
27    AliRsnCutMomentumComparison(const AliRsnCutMomentumComparison& copy);
28    AliRsnCutMomentumComparison& operator=(const AliRsnCutMomentumComparison& copy);
29    virtual ~AliRsnCutMomentumComparison() {;};
30
31    virtual Bool_t IsSelected(TObject *object);
32
33 protected:
34
35    EMode fMode;     // comparison mode
36
37    ClassDef(AliRsnCutMomentumComparison, 1)
38 };
39
40 #endif