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
// ---------------------
29
// -- Class Interface --
30
// ---------------------
31
32
class
BPHMassSelect
:
public
BPHMomentumSelect
,
public
BPHMassCuts
{
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
);
57
BPHMassSelect
&
operator=
(
const
BPHMassSelect
& x );
58
59
};
60
61
62
#endif
63
BPHMassCuts
Definition:
BPHMassCuts.h:34
BPHMassSelect::BPHMassSelect
BPHMassSelect(double minMass, double maxMass)
Definition:
BPHMassSelect.h:38
BPHMassSelect::~BPHMassSelect
virtual ~BPHMassSelect()
Definition:
BPHMassSelect.h:43
BPHMassCuts.h
BPHMassSelect::accept
virtual bool accept(const BPHDecayMomentum &cand) const
select particle
Definition:
BPHMassSelect.h:48
BPHMassCuts::mMax
double mMax
Definition:
BPHMassCuts.h:64
BPHMassSelect::operator=
BPHMassSelect & operator=(const BPHMassSelect &x)
BPHMassCuts::mMin
double mMin
Definition:
BPHMassCuts.h:63
BPHDecayMomentum
Definition:
BPHDecayMomentum.h:36
BPHDecayMomentum::composite
virtual const pat::CompositeCandidate & composite() const
get a composite by the simple sum of simple particles
Definition:
BPHDecayMomentum.cc:73
PFRecoTauDiscriminationByHPSSelection_cfi.maxMass
maxMass
Definition:
PFRecoTauDiscriminationByHPSSelection_cfi.py:15
BPHMomentumSelect
Definition:
BPHMomentumSelect.h:31
BPHMomentumSelect.h
cand
Definition:
decayParser.h:34
BPHDecayMomentum.h
DDAxes::x
BPHMassSelect
Definition:
BPHMassSelect.h:32
PFRecoTauDiscriminationByHPSSelection_cfi.minMass
minMass
Definition:
PFRecoTauDiscriminationByHPSSelection_cfi.py:14
reco::LeafCandidate::mass
double mass() const final
mass
Definition:
LeafCandidate.h:116
ResonanceBuilder.mass
mass
Definition:
ResonanceBuilder.py:8
Generated for CMSSW Reference Manual by
1.8.11