8 _absEta(c.getParameter<bool>(
"useAbsEta")) {
9 const std::vector<edm::ParameterSet>&
ranges =
11 for(
const auto& range : ranges ) {
12 const double min = range.getParameter<
double>(
"minEta");
13 const double max = range.getParameter<
double>(
"maxEta");
28 std::vector<std::pair<double,double> >
_ranges;
33 "GsfEleSCEtaMultiRangeCut");
35 CutApplicatorBase::result_type
39 const double the_eta = (
_absEta ?
std::abs(scref->eta()) : scref->eta() );
41 for(
const auto& range :
_ranges ) {
42 if( the_eta >= range.first && the_eta < range.second ) {
double value(const reco::CandidatePtr &cand) const overridefinal
VParameterSet const & getParameterSetVector(std::string const &name) const
GsfEleSCEtaMultiRangeCut(const edm::ParameterSet &c)
CandidateType candidateType() const overridefinal
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
std::vector< std::pair< double, double > > _ranges
Abs< T >::type abs(const T &t)
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
#define DEFINE_EDM_PLUGIN(factory, type, name)