7 for (
const auto&
range : ranges) {
8 const double minEta =
range.getParameter<
double>(
"minEta");
9 const double maxEta =
range.getParameter<
double>(
"maxEta");
10 const double minPt =
range.getParameter<
double>(
"minPt");
11 _ranges.emplace_back(minEta, maxEta);
29 const double the_eta = (_absEta ?
std::abs(cand->eta()) : cand->eta());
31 for (
unsigned i = 0;
i < _ranges.size(); ++
i) {
32 const auto&
range = _ranges[
i];
33 if (the_eta >=
range.first && the_eta < range.second && cand->
pt() > _minPt[
i]) {
VParameterSet const & getParameterSetVector(std::string const &name) const
const edm::EventSetup & c
MinPtCutInEtaRanges(const edm::ParameterSet &c)
std::vector< double > _minPt
const uint16_t range(const Frame &aFrame)
std::vector< std::pair< double, double > > _ranges
Abs< T >::type abs(const T &t)
reco::CandidatePtr argument_type
result_type asCandidate(const argument_type &) const final
#define DEFINE_EDM_PLUGIN(factory, type, name)
double value(const reco::CandidatePtr &cand) const final