CMS 3D CMS Logo

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 
39  ~BPHMassSelect() override {}
40 
43  bool accept(const BPHDecayMomentum& cand) const override {
45  double mass = cand.composite().mass();
46  return ((mass > mMin) && (mass < mMax));
47  }
48 
49 private:
50  // private copy and assigment constructors
51  BPHMassSelect(const BPHMassSelect& x) = delete;
52  BPHMassSelect& operator=(const BPHMassSelect& x) = delete;
53 };
54 
55 #endif
BPHMassSelect(double minMass, double maxMass)
Definition: BPHMassSelect.h:35
bool accept(const BPHDecayMomentum &cand) const override
select particle
Definition: BPHMassSelect.h:44
~BPHMassSelect() override
Definition: BPHMassSelect.h:39
double mMax
Definition: BPHMassCuts.h:63
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