Main Page
Namespaces
Classes
Package Documentation
src
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
// ---------------------
28
// -- Class Interface --
29
// ---------------------
30
31
class
BPHParticlePtSelect
:
public
BPHRecoSelect
{
32
33
public
:
34
37
BPHParticlePtSelect
(
double
pt
):
ptMin
( pt ) {}
38
41
~BPHParticlePtSelect
()
override
{}
42
45
bool
accept
(
const
reco::Candidate
&
cand
)
const override
{
47
return
( cand.
p4
().pt() >
ptMin
);
48
}
49
51
void
setPtMin
(
double
pt
) {
ptMin
=
pt
;
return
; }
52
54
double
getPtMin
()
const
{
return
ptMin
; }
55
56
private
:
57
58
// private copy and assigment constructors
59
BPHParticlePtSelect
(
const
BPHParticlePtSelect
&
x
) =
delete
;
60
BPHParticlePtSelect
&
operator=
(
const
BPHParticlePtSelect
& x ) =
delete
;
61
62
double
ptMin
;
63
64
};
65
66
67
#endif
68
BPHParticlePtSelect::~BPHParticlePtSelect
~BPHParticlePtSelect() override
Definition:
BPHParticlePtSelect.h:41
BPHParticlePtSelect
Definition:
BPHParticlePtSelect.h:31
BPHParticlePtSelect::BPHParticlePtSelect
BPHParticlePtSelect(double pt)
Definition:
BPHParticlePtSelect.h:37
reco::Candidate
Definition:
Candidate.h:28
BPHParticlePtSelect::ptMin
double ptMin
Definition:
BPHParticlePtSelect.h:62
BPHParticlePtSelect::setPtMin
void setPtMin(double pt)
set pt min
Definition:
BPHParticlePtSelect.h:51
EnergyCorrector.pt
pt
Definition:
EnergyCorrector.py:46
BPHRecoSelect
Definition:
BPHRecoSelect.h:35
BPHParticlePtSelect::getPtMin
double getPtMin() const
get current pt min
Definition:
BPHParticlePtSelect.h:54
reco::Candidate::p4
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
BPHRecoSelect.h
BPHParticlePtSelect::operator=
BPHParticlePtSelect & operator=(const BPHParticlePtSelect &x)=delete
BPHParticlePtSelect::accept
bool accept(const reco::Candidate &cand) const override
select particle
Definition:
BPHParticlePtSelect.h:46
cand
Definition:
decayParser.h:34
DDAxes::x
RecoCandidate.h
Generated for CMSSW Reference Manual by
1.8.11