Main Page
Namespaces
Classes
Package Documentation
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
38
~BPHParticleEtaSelect
()
override
{}
39
42
bool
accept
(
const
reco::Candidate
&
cand
)
const override
{
return
(fabs(cand.
p4
().eta()) <
etaMax
); }
44
46
void
setEtaMax
(
double
eta
) {
47
etaMax
=
eta
;
48
return
;
49
}
50
52
double
getEtaMax
()
const
{
return
etaMax
; }
53
54
private
:
55
// private copy and assigment constructors
56
BPHParticleEtaSelect
(
const
BPHParticleEtaSelect
&
x
) =
delete
;
57
BPHParticleEtaSelect
&
operator=
(
const
BPHParticleEtaSelect
& x) =
delete
;
58
59
double
etaMax
;
60
};
61
62
#endif
reco::Candidate
Definition:
Candidate.h:28
BPHParticleEtaSelect::BPHParticleEtaSelect
BPHParticleEtaSelect(double eta)
Definition:
BPHParticleEtaSelect.h:34
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
BPHParticleEtaSelect::operator=
BPHParticleEtaSelect & operator=(const BPHParticleEtaSelect &x)=delete
BPHRecoSelect
Definition:
BPHRecoSelect.h:34
BPHParticleEtaSelect::accept
bool accept(const reco::Candidate &cand) const override
select particle
Definition:
BPHParticleEtaSelect.h:43
reco::Candidate::p4
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
BPHRecoSelect.h
BPHParticleEtaSelect::setEtaMax
void setEtaMax(double eta)
set eta max
Definition:
BPHParticleEtaSelect.h:46
BPHParticleEtaSelect
Definition:
BPHParticleEtaSelect.h:30
cand
Definition:
decayParser.h:34
BPHParticleEtaSelect::getEtaMax
double getEtaMax() const
get current eta max
Definition:
BPHParticleEtaSelect.h:52
DDAxes::x
BPHParticleEtaSelect::~BPHParticleEtaSelect
~BPHParticleEtaSelect() override
Definition:
BPHParticleEtaSelect.h:38
RecoCandidate.h
BPHParticleEtaSelect::etaMax
double etaMax
Definition:
BPHParticleEtaSelect.h:59
Generated for CMSSW Reference Manual by
1.8.11