HeavyFlavorAnalysis
SpecificDecay
interface
BPHParticlePtSelect.h
Go to the documentation of this file.
1
#ifndef HeavyFlavorAnalysis_SpecificDecay_BPHParticlePtSelect_h
2
#define HeavyFlavorAnalysis_SpecificDecay_BPHParticlePtSelect_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
BPHParticlePtSelect
:
public
BPHRecoSelect
{
31
public
:
34
BPHParticlePtSelect
(
double
pt
) :
ptMin
(
pt
) {}
35
36
// deleted copy constructor and assignment operator
37
BPHParticlePtSelect
(
const
BPHParticlePtSelect
&
x
) =
delete
;
38
BPHParticlePtSelect
&
operator=
(
const
BPHParticlePtSelect
&
x
) =
delete
;
39
42
~BPHParticlePtSelect
()
override
=
default
;
43
46
bool
accept
(
const
reco::Candidate
&
cand
)
const override
{
return
(
cand
.p4().pt() >=
ptMin
); }
48
50
void
setPtMin
(
double
pt
) {
51
ptMin
=
pt
;
52
return
;
53
}
54
56
double
getPtMin
()
const
{
return
ptMin
; }
57
58
private
:
59
double
ptMin
;
60
};
61
62
#endif
BPHParticlePtSelect::getPtMin
double getPtMin() const
get current pt min
Definition:
BPHParticlePtSelect.h:56
BPHParticlePtSelect
Definition:
BPHParticlePtSelect.h:30
BPHParticlePtSelect::BPHParticlePtSelect
BPHParticlePtSelect(double pt)
Definition:
BPHParticlePtSelect.h:34
reco::Candidate
Definition:
Candidate.h:27
BPHParticlePtSelect::ptMin
double ptMin
Definition:
BPHParticlePtSelect.h:59
BPHParticlePtSelect::setPtMin
void setPtMin(double pt)
set pt min
Definition:
BPHParticlePtSelect.h:50
DiDispStaMuonMonitor_cfi.pt
pt
Definition:
DiDispStaMuonMonitor_cfi.py:39
BPHRecoSelect
Definition:
BPHRecoSelect.h:34
BPHRecoSelect.h
BPHParticlePtSelect::~BPHParticlePtSelect
~BPHParticlePtSelect() override=default
BPHParticlePtSelect::accept
bool accept(const reco::Candidate &cand) const override
select particle
Definition:
BPHParticlePtSelect.h:47
BPHParticlePtSelect::operator=
BPHParticlePtSelect & operator=(const BPHParticlePtSelect &x)=delete
cand
Definition:
decayParser.h:32
DDAxes::x
RecoCandidate.h
Generated for CMSSW Reference Manual by
1.8.14