8 const std::vector<edm::ParameterSet>&
ranges =
10 for(
const auto& range : ranges ) {
11 const double min = range.getParameter<
double>(
"minEta");
12 const double max = range.getParameter<
double>(
"maxEta");
21 result_type
asCandidate(
const argument_type&)
const final;
25 std::vector<std::pair<double,double> >
_ranges;
30 CutApplicatorBase::result_type
33 const double the_eta = (
_absEta ?
std::abs(cand->eta()) : cand->eta() );
35 for(
const auto& range :
_ranges ) {
36 if( the_eta >= range.first && the_eta < range.second ) {
VParameterSet const & getParameterSetVector(std::string const &name) const
result_type asCandidate(const argument_type &) const final
std::vector< std::pair< double, double > > _ranges
double value(const reco::CandidatePtr &cand) const final
Abs< T >::type abs(const T &t)
EtaMultiRangeCut(const edm::ParameterSet &c)
#define DEFINE_EDM_PLUGIN(factory, type, name)