54 produces<reco::RecoEcalCandidateIsolationMap>();
63 descriptions.
add(
"hltEgammaHLTEleL1TrackIsolProducer",
desc);
72 auto recoEcalCandMap = std::make_unique<reco::RecoEcalCandidateIsolationMap>(
ecalCands);
74 for (
size_t candNr = 0; candNr <
ecalCands->size(); candNr++) {
77 for (
size_t eleNr = 0; eleNr <
eles->size(); eleNr++) {
78 if ((*
eles)[eleNr].superCluster() == recoEcalCandRef->superCluster()) {
87 recoEcalCandMap->insert(recoEcalCandRef, isol);
#define DEFINE_FWK_MODULE(type)
bool isNonnull() const
Checks for non-null.
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > ecalCandsToken_
edm::Ref< ElectronCollection > ElectronRef
reference to an object in a collection of Electron objects
EgammaL1TkIsolation isolAlgo_
static edm::ParameterSetDescription makePSetDescription()
U second(std::pair< T, U > const &p)
const edm::EDGetTokenT< reco::ElectronCollection > elesToken_
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
std::pair< int, double > calIsol(const reco::TrackBase &trk, const L1TrackCollection &l1Tks) const
std::vector< Electron > ElectronCollection
collectin of Electron objects
EgammaHLTEleL1TrackIsolProducer(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
~EgammaHLTEleL1TrackIsolProducer() override=default
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< L1TrackCollection > l1TrksToken_