53 isolAlgo_(config.getParameter<edm::
ParameterSet>(
"isolCfg")) {
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);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool isNonnull() const
Checks for non-null.
#define DEFINE_FWK_MODULE(type)
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)
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
const edm::EDGetTokenT< reco::ElectronCollection > elesToken_
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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
tuple config
parse the configuration file
~EgammaHLTEleL1TrackIsolProducer() override=default
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::pair< int, double > calIsol(const reco::TrackBase &trk, const L1TrackCollection &l1Tks) const
const edm::EDGetTokenT< L1TrackCollection > l1TrksToken_