-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Run3-sim118B Try to replace getByLabel with token in SimCalorimetry/CastorSim #37757
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37757/29631
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37757/29632
|
A new Pull Request was created by @bsunanda (Sunanda Banerjee) for master. It involves the following packages:
@cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild Please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3344b0/24367/summary.html Comparison SummarySummary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
@@ -79,21 +79,24 @@ class CastorDigiAnalyzer : public edm::one::EDAnalyzer<> { | |||
CastorHitFilter castorFilter_; | |||
CaloHitAnalyzer castorHitAnalyzer_; | |||
CastorDigiStatistics castorDigiStatistics_; | |||
edm::InputTag castorDigiCollectionTag_; | |||
const edm::InputTag castorDigiCollectionTag_; |
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.
This does not need to be a class member
castorDigiCollectionTag_(conf.getParameter<edm::InputTag>("castorDigiCollectionTag")), | ||
castordigiToken_(consumes<CastorDigiCollection>(castorDigiCollectionTag_)), |
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.
castorDigiCollectionTag_(conf.getParameter<edm::InputTag>("castorDigiCollectionTag")), | |
castordigiToken_(consumes<CastorDigiCollection>(castorDigiCollectionTag_)), | |
castordigiToken_(consumes<CastorDigiCollection>(conf.getParameter<edm::InputTag>("castorDigiCollectionTag")), |
const edm::ESGetToken<CastorDbService, CastorDbRecord> theConditionsToken; | ||
const edm::ESGetToken<CaloGeometry, CaloGeometryRecord> theGeometryToken; | ||
edm::ESWatcher<CaloGeometryRecord> theGeometryWatcher; | ||
const edm::InputTag theHitsProducerTag; |
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.
This theHitsProducerTag
can also get removed.
Before doing that please notice that one getByLabel
was left in
e.getByLabel(theHitsProducerTag, castorHandle); |
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.
The class PileupEvent has only getByLabel. Once it is upgraded to make use of token, the last reference to getByLabel can be moved out.
@@ -27,21 +27,24 @@ class CastorHitAnalyzer : public edm::one::EDAnalyzer<> { | |||
CastorSimParameterMap simParameterMap_; | |||
CastorHitFilter castorFilter_; | |||
CaloHitAnalyzer castorAnalyzer_; | |||
edm::InputTag castorRecHitCollectionTag_; | |||
const edm::InputTag castorRecHitCollectionTag_; |
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.
Also this class member is not needed
castorRecHitCollectionTag_(conf.getParameter<edm::InputTag>("castorRecHitCollectionTag")), | ||
castorRecHitToken_(consumes<CastorRecHitCollection>(castorRecHitCollectionTag_)), |
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.
castorRecHitCollectionTag_(conf.getParameter<edm::InputTag>("castorRecHitCollectionTag")), | |
castorRecHitToken_(consumes<CastorRecHitCollection>(castorRecHitCollectionTag_)), | |
castorRecHitToken_(consumes<CastorRecHitCollection>(conf.getParameter<edm::InputTag>("castorRecHitCollectionTag"))), |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37757/29650
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37757/29654
|
Pull request #37757 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again. |
@cmsbuild Please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3344b0/24389/summary.html Comparison SummarySummary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Try to replace getByLabel with token in SimCalorimetry/CastorSim
PR validation:
Use the runTheMatrix test workflows
if this PR is a backport please specify the original PR and why you need to backport that PR:
Nothing special