CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BPHMassSelect.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHMassSelect_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHMassSelect_h
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 
27 // ---------------------
28 // -- Class Interface --
29 // ---------------------
30 
32 public:
35  BPHMassSelect(double minMass, double maxMass) : BPHMassCuts(minMass, maxMass) {}
36 
37  // deleted copy constructor and assignment operator
38  BPHMassSelect(const BPHMassSelect& x) = delete;
39  BPHMassSelect& operator=(const BPHMassSelect& x) = delete;
40 
43  ~BPHMassSelect() override {}
44 
47  bool accept(const BPHDecayMomentum& cand) const override {
49  double mass = cand.composite().mass();
50  return ((mass >= mMin) && (mass <= mMax));
51  }
52 };
53 
54 #endif
BPHMassSelect(double minMass, double maxMass)
Definition: BPHMassSelect.h:35
~BPHMassSelect() override
Definition: BPHMassSelect.h:43
double mMax
Definition: BPHMassCuts.h:63
bool accept(const BPHDecayMomentum &cand) const override
select particle
Definition: BPHMassSelect.h:48
double mMin
Definition: BPHMassCuts.h:62
virtual const pat::CompositeCandidate & composite() const
get a composite by the simple sum of simple particles
BPHMassSelect & operator=(const BPHMassSelect &x)=delete
double mass() const final
mass