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
[muon] reco to trigger object matching #23636
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-23636/5283 |
A new Pull Request was created by @drkovalskyi for master. It involves the following packages: DataFormats/PatCandidates @perrotta, @monttj, @cmsbuild, @slava77, @gpetruc, @arizzi can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
The tests are being triggered in jenkins. |
@@ -179,6 +185,10 @@ PATMuonProducer::PATMuonProducer(const edm::ParameterSet & iConfig, PATMuonHeavy | |||
// MC info | |||
simInfo_ = consumes<edm::ValueMap<reco::MuonSimInfo> >(iConfig.getParameter<edm::InputTag>("muonSimInfo")); | |||
|
|||
triggerObjects_ = consumes<std::vector<pat::TriggerObjectStandAlone>>(edm::InputTag("slimmedPatTrigger")); | |||
if (iConfig.exists("hltCollectionNames")) |
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 add a default values to ::fillDescriptions.
This will also drop the need to use ::exists, which is strongly discouraged
if (deltaR(triggerObjects->at(i).p4(),*muonPosition)>0.1) continue; | ||
// printf("muon pt: %4.1f eta: %+5.3f phi: %+5.3f\n", aMuon.pt(), aMuon.eta(), aMuon.phi()); | ||
// if (muonPosition) printf("global direction MB2/ME2: eta: %+5.3f phi: %+5.3f\n",double(muonPosition->eta()), double(muonPosition->phi())); | ||
// printf("L1 pt: %4.1f eta: %+5.3f phi: %+5.3f\n",triggerObjects->at(i).pt(), triggerObjects->at(i).eta(), triggerObjects->at(i).phi()); |
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.
is this commented out code needed?
Please remove or add comments inline in the code why the commented out block is relevant
#include "DataFormats/PatCandidates/interface/TriggerObjectStandAlone.h" | ||
#include "Geometry/Records/interface/GlobalTrackingGeometryRecord.h" | ||
// #include "DataFormats/GeometryVector/interface/GlobalVector.h" | ||
// #include "DataFormats/GeometryVector/interface/LocalVector.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.
is this commented out code needed?
Please remove or add comments inline in the code why the commented out block is relevant
-1 Tested at: 62e79e1 You can see the results of the tests here: I found follow errors while testing this PR Failed tests: UnitTests RelVals AddOn
I found errors in the following unit tests: ---> test runtestTqafTopEventProducers had ERRORS
When I ran the RelVals I found an error in the following worklfows: runTheMatrix-results/135.4_ZEE_13+ZEEFS_13+HARVESTUP15FS+MINIAODMCUP15FS/step3_ZEE_13+ZEEFS_13+HARVESTUP15FS+MINIAODMCUP15FS.log1000.0 step3 runTheMatrix-results/1000.0_RunMinBias2011A+RunMinBias2011A+TIER0+SKIMD+HARVESTDfst2+ALCASPLIT/step3_RunMinBias2011A+RunMinBias2011A+TIER0+SKIMD+HARVESTDfst2+ALCASPLIT.log
I found errors in the following addon tests: cmsRun /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_2_X_2018-06-21-1100/src/PhysicsTools/PatAlgos/test/IntegrationTest_cfg.py : FAILED - time: date Fri Jun 22 08:19:27 2018-date Fri Jun 22 08:18:44 2018 s - exit: 17920 |
Comparison not run due to runTheMatrix errors (RelVals and Igprof tests were also skipped) |
The tests are being triggered in jenkins. |
Comparison job queued. |
+1 |
Comparison is ready Comparison Summary:
|
+1 |
+operations |
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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
This PR implements a proper matching of offline reco muons to L1 and HLT muon objects for trigger studies. L1 matching requires propagation to MB2/ME2, which is avoided by using the muon matching information. HLT matching is complicated by lack of a single muon hlt object producer and name changes of the primary producers during Run2. Fortunately in practice we almost always had just one primary muon producer used in all the main triggers, so the matching is solid and covers majority of use cases (it is not meant to replace results of advanced archaeology that one may want to do in a case of some special triggers).