Main Page
Namespaces
Classes
Package Documentation
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
) :
6
CutApplicatorBase
(c),
7
_minPt
(c.getParameter<double>(
"minPt"
)) { }
8
9
double
value
(
const
reco::CandidatePtr
&
cand
)
const
final
{
10
return
cand
->pt();
11
}
12
13
result_type
asCandidate
(
const
argument_type&
cand
)
const
final
{
14
return
cand
->pt() >
_minPt
;
15
}
16
17
private
:
18
const
double
_minPt
;
19
};
20
21
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
MinPtCut
,
"MinPtCut"
);
22
MinPtCut::MinPtCut
MinPtCut(const edm::ParameterSet &c)
Definition:
MinPtCut.cc:5
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
edmplugin::PluginFactory
Definition:
PluginFactory.h:32
edm::Ptr< Candidate >
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
MinPtCut::value
double value(const reco::CandidatePtr &cand) const final
Definition:
MinPtCut.cc:9
MinPtCut::_minPt
const double _minPt
Definition:
MinPtCut.cc:18
MinPtCut::asCandidate
result_type asCandidate(const argument_type &cand) const final
Definition:
MinPtCut.cc:13
edm::ParameterSet
Definition:
ParameterSet.h:36
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:109
cand
Definition:
decayParser.h:34
MinPtCut
Definition:
MinPtCut.cc:3
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.11