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");
21 std::vector<std::pair<
double,
double> >
_ranges;
29 const double the_eta = ( _absEta ?
std::abs(cand->eta()) : cand->eta() );
31 for(
const auto& range : _ranges ) {
32 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)