19 countTracks_ (config.getParameter<
bool>(
"countTracks")),
20 egTrkIsoPtMin_ (config.getParameter<double>(
"egTrkIsoPtMin")),
21 egTrkIsoConeSize_ (config.getParameter<double>(
"egTrkIsoConeSize")),
22 egTrkIsoZSpan_ (config.getParameter<double>(
"egTrkIsoZSpan")),
23 egTrkIsoRSpan_ (config.getParameter<double>(
"egTrkIsoRSpan")),
24 egTrkIsoVetoConeSize_ (config.getParameter<double>(
"egTrkIsoVetoConeSize")),
25 egTrkIsoStripBarrel_ (config.getParameter<double>(
"egTrkIsoStripBarrel")),
26 egTrkIsoStripEndcap_ (config.getParameter<double>(
"egTrkIsoStripEndcap")) {
33 produces < reco::RecoEcalCandidateIsolationMap >();
44 desc.
add<
bool>((
"countTracks"),
false);
45 desc.
add<
double>((
"egTrkIsoPtMin"), 1.0);
46 desc.
add<
double>((
"egTrkIsoConeSize"), 0.29);
47 desc.
add<
double>((
"egTrkIsoZSpan"), 999999.0);
48 desc.
add<
double>((
"egTrkIsoRSpan"), 999999.0);
49 desc.
add<
double>((
"egTrkIsoVetoConeSize"), 0.06);
50 desc.
add<
double>((
"egTrkIsoStripBarrel"), 0.03);
51 desc.
add<
double>((
"egTrkIsoStripEndcap"), 0.03);
52 descriptions.
add((
"hltEgammaHLTPhotonTrackIsolationProducersRegional"), desc);
71 for(
unsigned int iRecoEcalCand=0; iRecoEcalCand<recoecalcandHandle->size(); iRecoEcalCand++) {
75 bool usePhotonVertex =
false;
81 isol =
test_->
photonPtSum(&(*recoecalcandref), trackCollection, usePhotonVertex);
84 isoMap.
insert(recoecalcandref, isol);
88 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_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const double egTrkIsoZSpan_
const double egTrkIsoConeSize_
const double egTrkIsoVetoConeSize_
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)