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 result_type
asCandidate(
const argument_type&)
const override final;
27 std::vector<std::pair<double,double> >
_ranges;
32 "MinPtCutInEtaRanges");
34 CutApplicatorBase::result_type
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
Abs< T >::type abs(const T &t)
#define DEFINE_EDM_PLUGIN(factory, type, name)
double value(const reco::CandidatePtr &cand) const override final
result_type asCandidate(const argument_type &) const override final
std::vector< std::pair< double, double > > _ranges