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:
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
BPHMomentumSelect
Definition: BPHMomentumSelect.h:29
BPHDecayMomentum.h
DDAxes::x
BPHMassCuts.h
BPHMassCuts::mMax
double mMax
Definition: BPHMassCuts.h:63
BPHMassSelect::BPHMassSelect
BPHMassSelect(double minMass, double maxMass)
Definition: BPHMassSelect.h:35
BPHMassSelect
Definition: BPHMassSelect.h:31
BPHMassSelect::operator=
BPHMassSelect & operator=(const BPHMassSelect &x)=delete
BPHDecayMomentum
Definition: BPHDecayMomentum.h:35
BPHMassSelect::~BPHMassSelect
~BPHMassSelect() override
Definition: BPHMassSelect.h:43
B2GTnPMonitor_cfi.maxMass
maxMass
Definition: B2GTnPMonitor_cfi.py:55
BPHMomentumSelect.h
cand
Definition: decayParser.h:34
BPHMassCuts::mMin
double mMin
Definition: BPHMassCuts.h:62
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
B2GTnPMonitor_cfi.minMass
minMass
Definition: B2GTnPMonitor_cfi.py:54
BPHMassSelect::accept
bool accept(const BPHDecayMomentum &cand) const override
select particle
Definition: BPHMassSelect.h:48
BPHMassCuts
Definition: BPHMassCuts.h:31