Main Page
Namespaces
Classes
Package Documentation
HeavyFlavorAnalysis
SpecificDecay
interface
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
//----------------------
15
#include "
HeavyFlavorAnalysis/RecoDecay/interface/BPHMomentumSelect.h
"
16
#include "
HeavyFlavorAnalysis/SpecificDecay/interface/BPHMassCuts.h
"
17
18
//------------------------------------
19
// Collaborating Class Declarations --
20
//------------------------------------
21
#include "
HeavyFlavorAnalysis/RecoDecay/interface/BPHDecayMomentum.h
"
22
23
//---------------
24
// C++ Headers --
25
//---------------
26
27
// ---------------------
28
// -- Class Interface --
29
// ---------------------
30
31
class
BPHMassSelect
:
public
BPHMomentumSelect
,
public
BPHMassCuts
{
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
BPHMassCuts
Definition:
BPHMassCuts.h:31
BPHMassSelect::BPHMassSelect
BPHMassSelect(double minMass, double maxMass)
Definition:
BPHMassSelect.h:35
BPHMassSelect::accept
bool accept(const BPHDecayMomentum &cand) const override
select particle
Definition:
BPHMassSelect.h:44
BPHMassCuts.h
BPHMassSelect::~BPHMassSelect
~BPHMassSelect() override
Definition:
BPHMassSelect.h:39
BPHMassCuts::mMax
double mMax
Definition:
BPHMassCuts.h:63
B2GTnPMonitor_cfi.minMass
minMass
Definition:
B2GTnPMonitor_cfi.py:54
EgHLTOffHistBins_cfi.mass
mass
Definition:
EgHLTOffHistBins_cfi.py:34
BPHMassCuts::mMin
double mMin
Definition:
BPHMassCuts.h:62
BPHDecayMomentum
Definition:
BPHDecayMomentum.h:35
BPHDecayMomentum::composite
virtual const pat::CompositeCandidate & composite() const
get a composite by the simple sum of simple particles
Definition:
BPHDecayMomentum.cc:65
BPHMomentumSelect
Definition:
BPHMomentumSelect.h:29
BPHMassSelect::operator=
BPHMassSelect & operator=(const BPHMassSelect &x)=delete
B2GTnPMonitor_cfi.maxMass
maxMass
Definition:
B2GTnPMonitor_cfi.py:55
BPHMomentumSelect.h
cand
Definition:
decayParser.h:34
BPHDecayMomentum.h
DDAxes::x
BPHMassSelect
Definition:
BPHMassSelect.h:31
reco::LeafCandidate::mass
double mass() const final
mass
Definition:
LeafCandidate.h:131
Generated for CMSSW Reference Manual by
1.8.11