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);
27 std::vector<std::pair<double,double> >
_ranges;
32 "MinPtCutInEtaRanges");
37 const double the_eta = (
_absEta ?
std::abs(cand->eta()) : cand->eta() );
39 for(
unsigned i = 0;
i <
_ranges.size(); ++
i ) {
41 if( the_eta >= range.first && the_eta < range.second &&
VParameterSet const & getParameterSetVector(std::string const &name) const
MinPtCutInEtaRanges(const edm::ParameterSet &c)
std::vector< double > _minPt
double value(const reco::CandidatePtr &cand) const final
Abs< T >::type abs(const T &t)
result_type asCandidate(const argument_type &) const final
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< std::pair< double, double > > _ranges