Main Page
Namespaces
Classes
Package Documentation
src
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
// ---------------------
28
// -- Class Interface --
29
// ---------------------
30
31
class
BPHParticleEtaSelect
:
public
BPHRecoSelect
{
32
33
public
:
34
37
BPHParticleEtaSelect
(
double
eta
):
etaMax
( eta ) {}
38
41
virtual
~BPHParticleEtaSelect
() {}
42
45
virtual
bool
accept
(
const
reco::Candidate
&
cand
)
const
{
47
return
( fabs( cand.
p4
().eta() ) <
etaMax
);
48
}
49
51
void
setEtaMax
(
double
eta
) {
etaMax
=
eta
;
return
; }
52
54
double
getEtaMax
()
const
{
return
etaMax
; }
55
56
private
:
57
58
// private copy and assigment constructors
59
BPHParticleEtaSelect
(
const
BPHParticleEtaSelect
&
x
);
60
BPHParticleEtaSelect
&
operator=
(
const
BPHParticleEtaSelect
& x );
61
62
double
etaMax
;
63
64
};
65
66
67
#endif
68
BPHParticleEtaSelect::accept
virtual bool accept(const reco::Candidate &cand) const
select particle
Definition:
BPHParticleEtaSelect.h:46
reco::Candidate
Definition:
Candidate.h:28
BPHParticleEtaSelect::BPHParticleEtaSelect
BPHParticleEtaSelect(double eta)
Definition:
BPHParticleEtaSelect.h:37
PVValHelper::eta
Definition:
PVValidationHelpers.h:49
BPHRecoSelect
Definition:
BPHRecoSelect.h:35
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:51
BPHParticleEtaSelect::~BPHParticleEtaSelect
virtual ~BPHParticleEtaSelect()
Definition:
BPHParticleEtaSelect.h:41
BPHParticleEtaSelect::operator=
BPHParticleEtaSelect & operator=(const BPHParticleEtaSelect &x)
BPHParticleEtaSelect
Definition:
BPHParticleEtaSelect.h:31
cand
Definition:
decayParser.h:34
BPHParticleEtaSelect::getEtaMax
double getEtaMax() const
get current eta max
Definition:
BPHParticleEtaSelect.h:54
DDAxes::x
RecoCandidate.h
BPHParticleEtaSelect::etaMax
double etaMax
Definition:
BPHParticleEtaSelect.h:62
Generated for CMSSW Reference Manual by
1.8.11