7 _absEta(c.getParameter<bool>(
"useAbsEta")) {
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");
25 std::vector<std::pair<
double,
double> >
_ranges;
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
std::vector< std::pair< double, double > > _ranges
Abs< T >::type abs(const T &t)
EtaMultiRangeCut(const edm::ParameterSet &c)
result_type asCandidate(const argument_type &) const overridefinal
#define DEFINE_EDM_PLUGIN(factory, type, name)
double value(const reco::CandidatePtr &cand) const overridefinal