HeavyFlavorAnalysis
SpecificDecay
interface
BPHParticleEtaSelect.h
Go to the documentation of this file.
1
#ifndef HeavyFlavorAnalysis_SpecificDecay_BPHParticleEtaSelect_h
2
#define HeavyFlavorAnalysis_SpecificDecay_BPHParticleEtaSelect_h
3
12
//----------------------
13
// Base Class Headers --
14
//----------------------
15
#include "
HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoSelect.h
"
16
17
//------------------------------------
18
// Collaborating Class Declarations --
19
//------------------------------------
20
#include "
DataFormats/RecoCandidate/interface/RecoCandidate.h
"
21
22
//---------------
23
// C++ Headers --
24
//---------------
25
26
// ---------------------
27
// -- Class Interface --
28
// ---------------------
29
30
class
BPHParticleEtaSelect
:
public
BPHRecoSelect
{
31
public
:
34
BPHParticleEtaSelect
(
double
eta
) :
etaMax
(
eta
) {}
35
36
// deleted copy constructor and assignment operator
37
BPHParticleEtaSelect
(
const
BPHParticleEtaSelect
&
x
) =
delete
;
38
BPHParticleEtaSelect
&
operator=
(
const
BPHParticleEtaSelect
&
x
) =
delete
;
39
42
~BPHParticleEtaSelect
()
override
{}
43
46
bool
accept
(
const
reco::Candidate
&
cand
)
const override
{
return
(fabs(
cand
.p4().eta()) <=
etaMax
); }
48
50
void
setEtaMax
(
double
eta
) {
51
etaMax
=
eta
;
52
return
;
53
}
54
56
double
getEtaMax
()
const
{
return
etaMax
; }
57
58
private
:
59
double
etaMax
;
60
};
61
62
#endif
reco::Candidate
Definition:
Candidate.h:27
BPHParticleEtaSelect::BPHParticleEtaSelect
BPHParticleEtaSelect(double eta)
Definition:
BPHParticleEtaSelect.h:34
PVValHelper::eta
Definition:
PVValidationHelpers.h:70
BPHParticleEtaSelect::operator=
BPHParticleEtaSelect & operator=(const BPHParticleEtaSelect &x)=delete
BPHParticleEtaSelect::accept
bool accept(const reco::Candidate &cand) const override
select particle
Definition:
BPHParticleEtaSelect.h:47
BPHRecoSelect
Definition:
BPHRecoSelect.h:35
BPHRecoSelect.h
BPHParticleEtaSelect::setEtaMax
void setEtaMax(double eta)
set eta max
Definition:
BPHParticleEtaSelect.h:50
BPHParticleEtaSelect
Definition:
BPHParticleEtaSelect.h:30
cand
Definition:
decayParser.h:32
DDAxes::x
BPHParticleEtaSelect::~BPHParticleEtaSelect
~BPHParticleEtaSelect() override
Definition:
BPHParticleEtaSelect.h:42
RecoCandidate.h
BPHParticleEtaSelect::etaMax
double etaMax
Definition:
BPHParticleEtaSelect.h:59
BPHParticleEtaSelect::getEtaMax
double getEtaMax() const
get current eta max
Definition:
BPHParticleEtaSelect.h:56
Generated for CMSSW Reference Manual by
1.8.14