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  virtual ~BPHMassSelect() {}
44 
47  virtual bool accept( const BPHDecayMomentum& cand ) const {
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 );
58 
59 };
60 
61 
62 #endif
63 
BPHMassSelect(double minMass, double maxMass)
Definition: BPHMassSelect.h:38
virtual ~BPHMassSelect()
Definition: BPHMassSelect.h:43
virtual bool accept(const BPHDecayMomentum &cand) const
select particle
Definition: BPHMassSelect.h:48
double mMax
Definition: BPHMassCuts.h:64
BPHMassSelect & operator=(const BPHMassSelect &x)
double mMin
Definition: BPHMassCuts.h:63
virtual const pat::CompositeCandidate & composite() const
get a composite by the simple sum of simple particles
double mass() const final
mass