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
Remove inappropriate use of provenance in EcalDeadCellTriggerPrimitiveFilter #24387
Remove inappropriate use of provenance in EcalDeadCellTriggerPrimitiveFilter #24387
Conversation
It is best to avoid holding onto information from the Event.
Removed use of getAllStableProvenance. The consumes calls were already forcing the prefetching of the different data products. Switched to using callWhenNewProductsRegistered and only call 'consumes' if the alternate data product is actually available and the prefered product has not been seen.
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-24387/6160 |
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages: RecoMET/METFilters @perrotta, @monttj, @cmsbuild, @slava77, @gpetruc, @arizzi can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
void loadEcalRecHits(edm::Event& iEvent, const edm::EventSetup& iSetup); | ||
void loadEcalDigis(edm::Event& iEvent, | ||
edm::Handle<EcalTrigPrimDigiCollection>& pTPDigis | ||
); |
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.
please close this on the previous line to preserve indentation
@Dr15Jones if( !hastpDigiCollection_ && !hasReducedRecHits_ ){ useTPmethod_ = false; useHITmethod_ = false; }
else if( hastpDigiCollection_ ){ useTPmethod_ = true; useHITmethod_ = false; }
else if( majorV >=5 || (majorV==4 && minorV >=2) ){ useTPmethod_ = false; useHITmethod_ = true; }
else{ useTPmethod_ = false; useHITmethod_ = false;
// kind of fail here Was your comment to remove the last else because logically this code will never get there assuming there are no more inputs ? Or was your comment to drop the logic of the version detection because it has no effect (assuming all inputs are already after version 4_2)? |
I was asking if we can drop the entire version detection because CMSSW_10_3 will never be used to run on reconstruction from before CMSSW_4_2. |
Comparison not run due to runTheMatrix errors (RelVals and Igprof tests were also skipped) |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1
@Dr15Jones please update the PR description to clarify that the old version detection logic was removed. |
@slava77 comment updated |
+1 |
merge |
The code was calling edm::Event::getAllStableProvenance to try to determine if some data products were available in the Event. This did not help performance since the consumes calls would already prefetch all the data. To try to keep the same functionality, I switched to using callWhenNewProductsRegistered.
The logic which changed the movule's behavior for data older than CMSSW_4_2 was also removed.