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 // ---------------------
29 // -- Class Interface --
30 // ---------------------
31 
33 
34  public:
35 
38  BPHMassSelect( double minMass, double maxMass ): BPHMassCuts( minMass,
39  maxMass ) {}
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  private:
54 
55  // private copy and assigment constructors
56  BPHMassSelect ( const BPHMassSelect& x ) = delete;
57  BPHMassSelect& operator=( const BPHMassSelect& x ) = delete;
58 
59 };
60 
61 
62 #endif
63 
BPHMassSelect(double minMass, double maxMass)
Definition: BPHMassSelect.h:38
bool accept(const BPHDecayMomentum &cand) const override
select particle
Definition: BPHMassSelect.h:48
~BPHMassSelect() override
Definition: BPHMassSelect.h:43
double mMax
Definition: BPHMassCuts.h:64
double mMin
Definition: BPHMassCuts.h:63
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