40 produces < reco::RecoEcalCandidateIsolationMap >();
42 produces < reco::ElectronIsolationMap >();
54 desc.
add<
double>(
"egTrkIsoPtMin", 1.0);
55 desc.
add<
double>(
"egTrkIsoConeSize", 0.3);
56 desc.
add<
double>(
"egTrkIsoZSpan", 0.15);
57 desc.
add<
double>(
"egTrkIsoRSpan", 999999.0);
58 desc.
add<
double>(
"egTrkIsoVetoConeSizeBarrel", 0.03);
59 desc.
add<
double>(
"egTrkIsoVetoConeSizeEndcap", 0.03);
60 desc.
add<
double>(
"egTrkIsoStripBarrel", 0.03);
61 desc.
add<
double>(
"egTrkIsoStripEndcap", 0.03);
62 desc.
add<
bool>(
"useGsfTrack",
false);
63 desc.
add<
bool>(
"useSCRefs",
false);
65 descriptions.
add(
"hltEgammaHLTElectronTrackIsolationProducers", desc);
90 for(reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand = recoEcalCandHandle->begin(); iRecoEcalCand != recoEcalCandHandle->end(); iRecoEcalCand++){
95 for(reco::ElectronCollection::const_iterator eleIt = electronHandle->begin(); eleIt != electronHandle->end(); eleIt++){
96 if(eleIt->superCluster()==recoEcalCandRef->superCluster()){
102 if(eleRef.isNonnull()){
104 isol = isoAlgo.
getIso(eleTrk).second;
106 recoEcalCandMap.
insert(recoEcalCandRef,isol);
109 for(reco::ElectronCollection::const_iterator iElectron = electronHandle->begin(); iElectron != electronHandle->end(); iElectron++){
112 float isol = isoAlgo.
getIso(eleTrk).second;
113 eleMap.
insert(eleRef, isol);
119 iEvent.
put(mapForEvent);
122 iEvent.
put(mapForEvent);
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
virtual void produce(edm::Event &, const edm::EventSetup &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Track > TrackCollection
collection of Tracks
double egTrkIsoVetoConeSizeEndcap_
math::XYZPoint Point
point in the space
edm::Ref< ElectronCollection > ElectronRef
reference to an object in a collection of Electron objects
edm::EDGetTokenT< reco::TrackCollection > trackProducer_
EgammaHLTElectronTrackIsolationProducers(const edm::ParameterSet &)
edm::EDGetTokenT< reco::BeamSpot > beamSpotProducer_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double egTrkIsoVetoConeSizeBarrel_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::pair< int, double > getIso(const reco::GsfElectron *) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~EgammaHLTElectronTrackIsolationProducers()
double egTrkIsoStripEndcap_
edm::EDGetTokenT< reco::ElectronCollection > electronProducer_
void insert(const key_type &k, const data_type &v)
insert an association
void add(std::string const &label, ParameterSetDescription const &psetDescription)
T const * product() const
double egTrkIsoStripBarrel_