test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
SelectorUtils
plugins
MaxAbsEtaCut.cc
Go to the documentation of this file.
1
#include "
PhysicsTools/SelectorUtils/interface/CutApplicatorBase.h
"
2
3
class
MaxAbsEtaCut
:
public
CutApplicatorBase
{
4
public
:
5
MaxAbsEtaCut
(
const
edm::ParameterSet
&
c
) :
6
CutApplicatorBase
(c),
7
_maxEta
(c.getParameter<double>(
"maxEta"
)) { }
8
9
result_type
asCandidate
(
const
argument_type& cand)
const
override
final
{
10
return
std::abs
(cand->eta()) <
_maxEta
;
11
}
12
13
private
:
14
const
double
_maxEta
;
15
};
16
17
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
MaxAbsEtaCut
,
"MaxAbsEtaCut"
);
18
MaxAbsEtaCut
Definition:
MaxAbsEtaCut.cc:3
MaxAbsEtaCut::asCandidate
result_type asCandidate(const argument_type &cand) const overridefinal
Definition:
MaxAbsEtaCut.cc:9
MaxAbsEtaCut::MaxAbsEtaCut
MaxAbsEtaCut(const edm::ParameterSet &c)
Definition:
MaxAbsEtaCut.cc:5
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
MaxAbsEtaCut::_maxEta
const double _maxEta
Definition:
MaxAbsEtaCut.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
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.5