47 produces<edm::ValueMap<float> >(
"eleFull5x5SigmaIEtaIEta");
48 produces<edm::ValueMap<float> >(
"eleFull5x5SigmaIEtaIPhi");
49 produces<edm::ValueMap<float> >(
"eleFull5x5E1x5" );
50 produces<edm::ValueMap<float> >(
"eleFull5x5E2x5" );
51 produces<edm::ValueMap<float> >(
"eleFull5x5E5x5" );
52 produces<edm::ValueMap<float> >(
"eleFull5x5R9" );
53 produces<edm::ValueMap<float> >(
"eleFull5x5Circularity" );
68 std::vector<float> eleFull5x5SigmaIEtaIEta, eleFull5x5SigmaIEtaIPhi;
69 std::vector<float> eleFull5x5R9, eleFull5x5Circularity;
70 std::vector<float> eleFull5x5E1x5,eleFull5x5E2x5,eleFull5x5E5x5;
73 for (
const auto &ele : *
src) {
74 const auto& theseed = *(ele.superCluster()->seed());
78 const float sep = vCov[1];
79 eleFull5x5SigmaIEtaIEta.push_back(see);
80 eleFull5x5SigmaIEtaIPhi.push_back(sep);
81 eleFull5x5R9.push_back(lazyToolnoZS.e3x3( theseed ) / ele.superCluster()->rawEnergy() );
83 const float e1x5 = lazyToolnoZS.e1x5( theseed );
84 const float e2x5 = lazyToolnoZS.e2x5Max( theseed );
85 const float e5x5 = lazyToolnoZS.e5x5( theseed );
86 const float circularity = (e5x5 != 0.) ? 1.-e1x5/e5x5 : -1;
88 eleFull5x5E1x5.push_back(e1x5);
89 eleFull5x5E2x5.push_back(e2x5);
90 eleFull5x5E5x5.push_back(e5x5);
91 eleFull5x5Circularity.push_back(circularity);
94 writeValueMap(iEvent, src, eleFull5x5SigmaIEtaIEta,
"eleFull5x5SigmaIEtaIEta");
95 writeValueMap(iEvent, src, eleFull5x5SigmaIEtaIPhi,
"eleFull5x5SigmaIEtaIPhi");
100 writeValueMap(iEvent, src, eleFull5x5Circularity,
"eleFull5x5Circularity");
114 descriptions.
add(
"electronIDValueMapProducer", desc);
const MultiTokenT< edm::View< reco::GsfElectron > > src_
#define DEFINE_FWK_MODULE(type)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const MultiTokenT< EcalRecHitCollection > eeRecHits_
edm::Handle< T > getValidHandle(const edm::Event &iEvent) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
ElectronIDValueMapProducer(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~ElectronIDValueMapProducer() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const MultiTokenT< EcalRecHitCollection > esRecHits_
const MultiTokenT< EcalRecHitCollection > ebRecHits_