71 : recoEcalCandidateProducer_(
74 countTracks_(config.getParameter<bool>(
"countTracks")),
75 egTrkIsoPtMin_(config.getParameter<double>(
"egTrkIsoPtMin")),
76 egTrkIsoConeSize_(config.getParameter<double>(
"egTrkIsoConeSize")),
77 egTrkIsoZSpan_(config.getParameter<double>(
"egTrkIsoZSpan")),
78 egTrkIsoRSpan_(config.getParameter<double>(
"egTrkIsoRSpan")),
79 egTrkIsoVetoConeSize_(config.getParameter<double>(
"egTrkIsoVetoConeSize")),
80 egTrkIsoStripBarrel_(config.getParameter<double>(
"egTrkIsoStripBarrel")),
81 egTrkIsoStripEndcap_(config.getParameter<double>(
"egTrkIsoStripEndcap")) {
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
#define DEFINE_FWK_MODULE(type)
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
std::vector< Track > TrackCollection
collection of Tracks
int photonTrackCount(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
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
tuple config
parse the configuration file
const edm::EDGetTokenT< reco::TrackCollection > trackProducer_
const double egTrkIsoStripEndcap_
float photonPtSum(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)