7 _absEta(c.getParameter<bool>(
"useAbsEta")) {
8 const std::vector<edm::ParameterSet>&
ranges =
10 for(
const auto& range : ranges ) {
11 const double minEta = range.getParameter<
double>(
"minEta");
12 const double maxEta = range.getParameter<
double>(
"maxEta");
13 const double minPt = range.getParameter<
double>(
"minPt");
14 _ranges.emplace_back(minEta,maxEta);
23 std::vector<std::pair<
double,
double> >
_ranges;
28 "MinPtCutInEtaRanges");
33 const double the_eta = ( _absEta ?
std::abs(cand->eta()) : cand->eta() );
35 for(
unsigned i = 0;
i < _ranges.size(); ++
i ) {
36 const auto& range = _ranges[
i];
37 if( the_eta >= range.first && the_eta < range.second &&
38 cand->pt() > _minPt[
i] ) {
VParameterSet const & getParameterSetVector(std::string const &name) const
result_type asCandidate(const argument_type &) const overridefinal
MinPtCutInEtaRanges(const edm::ParameterSet &c)
std::vector< double > _minPt
Abs< T >::type abs(const T &t)
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< std::pair< double, double > > _ranges