New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bsunanda:Run2 alca14 Get rid of unused variables and avoid explicit names #9062
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,7 +104,7 @@ class AlCaIsoTracksProducer : public edm::EDProducer { | |
int nRun, nAll, nGood; | ||
edm::InputTag labelTriggerEvent_, labelTriggerResults_; | ||
edm::InputTag labelGenTrack_, labelRecVtx_, labelHltGT_; | ||
edm::InputTag labelEB_, labelEE_, labelHBHE_; | ||
edm::InputTag labelEB_, labelEE_, labelHBHE_, labelBS_; | ||
const MagneticField *bField; | ||
const CaloGeometry *geo; | ||
double ptL1, etaL1, phiL1; | ||
|
@@ -149,6 +149,7 @@ AlCaIsoTracksProducer::AlCaIsoTracksProducer(const edm::ParameterSet& iConfig) : | |
eIsolation_ = iConfig.getParameter<double>("IsolationEnergy"); | ||
labelGenTrack_ = iConfig.getParameter<edm::InputTag>("TrackLabel"); | ||
labelRecVtx_ = iConfig.getParameter<edm::InputTag>("VertexLabel"); | ||
labelBS_ = iConfig.getParameter<edm::InputTag>("BeamSpotLabel"); | ||
labelEB_ = iConfig.getParameter<edm::InputTag>("EBRecHitLabel"); | ||
labelEE_ = iConfig.getParameter<edm::InputTag>("EERecHitLabel"); | ||
labelHBHE_ = iConfig.getParameter<edm::InputTag>("HBHERecHitLabel"); | ||
|
@@ -162,7 +163,7 @@ AlCaIsoTracksProducer::AlCaIsoTracksProducer(const edm::ParameterSet& iConfig) : | |
tok_trigRes_ = consumes<edm::TriggerResults>(labelTriggerResults_); | ||
tok_genTrack_ = consumes<reco::TrackCollection>(labelGenTrack_); | ||
tok_recVtx_ = consumes<reco::VertexCollection>(labelRecVtx_); | ||
tok_bs_ = consumes<reco::BeamSpot>(edm::InputTag("offlineBeamSpot")); | ||
tok_bs_ = consumes<reco::BeamSpot>(labelBS_); | ||
tok_EB_ = consumes<EcalRecHitCollection>(labelEB_); | ||
tok_EE_ = consumes<EcalRecHitCollection>(labelEE_); | ||
tok_hbhe_ = consumes<HBHERecHitCollection>(labelHBHE_); | ||
|
@@ -195,10 +196,11 @@ AlCaIsoTracksProducer::AlCaIsoTracksProducer(const edm::ParameterSet& iConfig) : | |
trigKount = trigPass = dummy; | ||
|
||
//create also IsolatedPixelTrackCandidateCollection which contains isolation info and reference to primary track | ||
produces<reco::HcalIsolatedTrackCandidateCollection>("HcalIsolatedTrackCollection"); | ||
static const std::string labelIsoTk = "HcalIsolatedTrackCollection"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bsunanda almost there.
|
||
produces<reco::HcalIsolatedTrackCandidateCollection>(labelIsoTk); | ||
produces<reco::VertexCollection>(labelRecVtx_.label()); | ||
produces<EcalRecHitCollection>("EcalRecHitsEB"); | ||
produces<EcalRecHitCollection>("EcalRecHitsEE"); | ||
produces<EcalRecHitCollection>(labelEB_.instance()); | ||
produces<EcalRecHitCollection>(labelEE_.instance()); | ||
produces<HBHERecHitCollection>(labelHBHE_.label()); | ||
|
||
edm::LogInfo("HcalIsoTrack") << " Expected to produce the collections:\n" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bsunanda IIUC the tests you perform are:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - we need events with at least one high pt jet and one high pt photon. The assumption of ordering was found to be incorrect - so the code is optimized this way.
From: Salvatore Di Guida [notifications@github.com]
Sent: 13 May 2015 10:17
To: cms-sw/cmssw
Cc: Sunanda Banerjee
Subject: Re: [cmssw] bsunanda:Run2 alca13 Get rid of unused variables and avoid explicit names (#9062)
In Calibration/HcalAlCaRecoProducers/src/AlCaGammaJetProducer.cchttps://github.com//pull/9062#discussion_r30210248:
@bsunandahttps://github.com/bsunanda IIUC the tests you perform are:
—
Reply to this email directly or view it on GitHubhttps://github.com//pull/9062/files#r30210248.