31 static std::map<std::string, EEA::ElectronEffectiveAreaType>
EEA_type();
32 static std::map<std::string, EEA::ElectronEffectiveAreaTarget>
EEA_target();
39 rhoIsoToken(consumes<double>(config.getParameter<edm::
InputTag>(
"rhoIso"))),
40 modeEEA(EEA_type()[config.getParameter<std::
string>(
"EffectiveAreaType")]),
41 targetEEA(EEA_target()[config.getParameter<std::
string>(
"EffectiveAreaTarget")]) {
54 produces<CandDoubleMap>();
67 std::vector<double> gsfCorrectionsEA;
69 for (reco::GsfElectronCollection::const_iterator it = gsfElectrons->begin(); it != gsfElectrons->end(); ++it)
70 gsfCorrectionsEA.push_back((*rho) *
72 filler.
insert(gsfElectrons, gsfCorrectionsEA.begin(), gsfCorrectionsEA.end());
79 std::vector<double> pfCorrectionsEA;
81 for (reco::PFCandidateCollection::const_iterator it = pfElectrons->begin(); it != pfElectrons->end(); ++it)
82 pfCorrectionsEA.push_back(
84 filler.
insert(pfElectrons, pfCorrectionsEA.begin(), pfCorrectionsEA.end());
91 std::vector<double> patCorrectionsEA;
93 for (pat::ElectronCollection::const_iterator it = patElectrons->begin(); it != patElectrons->end(); ++it)
94 patCorrectionsEA.push_back((*rho) *
96 filler.
insert(patElectrons, patCorrectionsEA.begin(), patCorrectionsEA.end());
108 std::map<std::string, EEA::ElectronEffectiveAreaType>
m;
114 std::map<std::string, ElectronEffectiveArea::ElectronEffectiveAreaTarget>
116 std::map<std::string, EEA::ElectronEffectiveAreaTarget>
m;
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
static std::map< std::string, EEA::ElectronEffectiveAreaTarget > EEA_target()
static std::map< std::string, EEA::ElectronEffectiveAreaType > EEA_type()
bool filter(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
static Double_t GetElectronEffectiveArea(ElectronEffectiveAreaType type, Double_t SCEta, ElectronEffectiveAreaTarget EffectiveAreaTarget=kEleEAData2011)
edm::EDGetTokenT< pat::ElectronCollection > patElectronToken
ElectronEffectiveAreaTarget
const EEA::ElectronEffectiveAreaType modeEEA
ElectronEffectiveArea EEA
edm::InputTag gsfElectronTag
ElectronIsolatorFromEffectiveArea(const edm::ParameterSet &)
edm::ValueMap< double > CandDoubleMap
edm::InputTag patElectronTag
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::PFCandidateCollection > pfElectronToken
tuple config
parse the configuration file
edm::EDGetTokenT< double > rhoIsoToken
ElectronEffectiveAreaType
const EEA::ElectronEffectiveAreaTarget targetEEA
edm::InputTag pfElectronTag
edm::EDGetTokenT< reco::GsfElectronCollection > gsfElectronToken