91 produces<reco::RecoEcalCandidateIsolationMap>();
100 desc.
add<
bool>((
"countTracks"),
false);
101 desc.
add<
double>((
"egTrkIsoPtMin"), 1.0);
102 desc.
add<
double>((
"egTrkIsoConeSize"), 0.29);
103 desc.
add<
double>((
"egTrkIsoZSpan"), 999999.0);
104 desc.
add<
double>((
"egTrkIsoRSpan"), 999999.0);
105 desc.
add<
double>((
"egTrkIsoVetoConeSize"), 0.06);
106 desc.
add<
double>((
"egTrkIsoStripBarrel"), 0.03);
107 desc.
add<
double>((
"egTrkIsoStripEndcap"), 0.03);
108 descriptions.
add((
"hltEgammaHLTPhotonTrackIsolationProducersRegional"), desc);
126 for (
unsigned int iRecoEcalCand = 0; iRecoEcalCand < recoecalcandHandle->size(); iRecoEcalCand++) {
129 bool usePhotonVertex =
false;
135 isol =
test_->
photonPtSum(&(*recoecalcandref), trackCollection, usePhotonVertex);
138 isoMap.
insert(recoecalcandref, isol);
141 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(isoMap));
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Track > TrackCollection
collection of Tracks
int photonTrackCount(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
EgammaHLTTrackIsolation * test_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const double egTrkIsoZSpan_
const double egTrkIsoConeSize_
const double egTrkIsoVetoConeSize_
#define DEFINE_FWK_MODULE(type)
const double egTrkIsoStripBarrel_
EgammaHLTPhotonTrackIsolationProducersRegional(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~EgammaHLTPhotonTrackIsolationProducersRegional() override
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
const double egTrkIsoPtMin_
T const * product() const
void insert(const key_type &k, const data_type &v)
insert an association
const double egTrkIsoRSpan_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
const edm::EDGetTokenT< reco::TrackCollection > trackProducer_
const double egTrkIsoStripEndcap_
float photonPtSum(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)