src
PhysicsTools
SelectorUtils
plugins
MinPtCut.cc
Go to the documentation of this file.
1
#include "
PhysicsTools/SelectorUtils/interface/CutApplicatorBase.h
"
2
3
class
MinPtCut
:
public
CutApplicatorBase
{
4
public
:
5
MinPtCut
(
const
edm::ParameterSet
&
c
) :
CutApplicatorBase
(
c
),
_minPt
(
c
.getParameter<double>(
"minPt"
)) {}
6
7
double
value
(
const
reco::CandidatePtr
&
cand
)
const
final
{
return
cand
->pt(); }
8
9
result_type
asCandidate
(
const
argument_type
&
cand
)
const
final
{
return
cand
->pt() >
_minPt
; }
10
11
private
:
12
const
double
_minPt
;
13
};
14
15
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
MinPtCut
,
"MinPtCut"
);
MinPtCut::MinPtCut
MinPtCut(const edm::ParameterSet &c)
Definition:
MinPtCut.cc:5
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:35
edmplugin::PluginFactory
Definition:
PluginFactory.h:35
candidate_functions::CandidateCut::result_type
bool result_type
Definition:
CandidateCut.h:11
edm::Ptr< Candidate >
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
MinPtCut::_minPt
const double _minPt
Definition:
MinPtCut.cc:12
edm::ParameterSet
Definition:
ParameterSet.h:47
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:123
cand
Definition:
decayParser.h:32
MinPtCut
Definition:
MinPtCut.cc:3
MinPtCut::value
double value(const reco::CandidatePtr &cand) const final
Definition:
MinPtCut.cc:7
MinPtCut::asCandidate
result_type asCandidate(const argument_type &cand) const final
Definition:
MinPtCut.cc:9
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.14