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
Producer and filter for jet timing trigger #35724
Producer and filter for jet timing trigger #35724
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35724/26048
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-35724/26049
|
A new Pull Request was created by @mcitron for master. It involves the following packages:
@cmsbuild, @missirol, @Martin-Grunewald can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Hi @mcitron , I'll add a review on the code in the next days. In the meantime, I add here two general comments:
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35724/26079
|
Pull request #35724 was updated. @cmsbuild, @missirol, @Martin-Grunewald can you please check and sign again. |
@missirol thanks for the comments. The header and source files have been merged into new files in the plugins directory and a test config has been added. This produces an output that contains an edm::TriggerResults object which accepts 73/722 events of the input file. |
edm::EDGetTokenT<reco::CaloJetCollection> jetInputToken; | ||
edm::EDGetTokenT<edm::ValueMap<float>> jetTimesInputToken; | ||
edm::EDGetTokenT<edm::ValueMap<unsigned int>> jetCellsForTimingInputToken; | ||
edm::EDGetTokenT<edm::ValueMap<float>> jetEcalEtForTimingInputToken; |
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.
All class variables could probably be made const.
// class declaration | ||
// | ||
class HLTCaloJetTimingFilter : public HLTFilter { | ||
public: |
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 filter does not seem to make use of HLTFilter features (eg, filling the filterproduct), so should then just be an EDFilter.
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.
Just noting that this point is still open. For examples on the use of HLTFilter
and filterproduct
, see the many examples in HLTrigger/HLTfilters/
.
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.
thanks for the comment - I have updated the code to use the filterproduct
edm::EDGetTokenT<reco::CaloJetCollection> jetInputToken; | ||
edm::EDGetTokenT<edm::SortedCollection<EcalRecHit, edm::StrictWeakOrdering<EcalRecHit>>> ecalRecHitsEBToken; | ||
edm::EDGetTokenT<edm::SortedCollection<EcalRecHit, edm::StrictWeakOrdering<EcalRecHit>>> ecalRecHitsEEToken; | ||
}; |
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.
As above, member variables look like they could be const.
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.
@mcitron, here are the suggested changes. They partly overlap with Martin's. They are largely technical (outputs should be unchanged), but they were done on GH without testing (the code may very well not compile). Please review them carefully, and retest the code.
Applying all suggested changes for testing/updating as needed Co-authored-by: Marino Missiroli <m.missiroli@cern.ch>
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35724/26317
|
Pull request #35724 was updated. @cmsbuild, @missirol, @Martin-Grunewald can you please check and sign again. |
Just a note: I remembered from #33204 (comment) that
I don't think I have any further comments; I'll re-trigger the tests (which are anyway not testing this new module beyond compiling). |
please test with #35890 the other PR is only needed in order to avoid a timeout in wf |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c4be56/20095/summary.html Comparison SummarySummary:
|
+hlt
|
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) |
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.
Not fundamental comments, but since I already wrote them...
#include "HLTrigger/HLTcore/interface/HLTFilter.h" | ||
|
||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" |
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.
If you want to keep separated .h and .cc files, this can be included in the implementation file
#include "FWCore/Framework/interface/stream/EDProducer.h" | ||
|
||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" |
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.
If you want to keep separated .h and .cc files, this can be included in the implementation file
+1 |
PR description:
This PR adds the producer and filter needed to define an HLT path for delayed jets. The necessary information is added via value maps.
TSG presentation: https://indico.cern.ch/event/1080507/#39-delayed-jet-hlt-trigger
PR validation:
runTheMatrix.py -l limited -i all --ibeos
32 0 0 0 0 0 0 0 0 tests passed, 8 32 0 0 0 0 0 0 0 failed