test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
result_type
asCandidate
(
const
argument_type& cand)
const
override
final
{
10
return
cand->pt() >
_minPt
;
11
}
12
13
private
:
14
const
double
_minPt
;
15
};
16
17
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
MinPtCut
,
"MinPtCut"
);
18
MinPtCut::MinPtCut
MinPtCut(const edm::ParameterSet &c)
Definition:
MinPtCut.cc:5
MinPtCut::asCandidate
result_type asCandidate(const argument_type &cand) const overridefinal
Definition:
MinPtCut.cc:9
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
MinPtCut::_minPt
const double _minPt
Definition:
MinPtCut.cc:14
trackerHits.c
tuple c
Definition:
trackerHits.py:26
edm::ParameterSet
Definition:
ParameterSet.h:35
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:101
MinPtCut
Definition:
MinPtCut.cc:3
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.5