-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
drop type specs in RecoTracker #30947
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30947/17378
|
A new Pull Request was created by @jeongeun (JeongEun Lee) for master. It involves the following packages: RecoTracker/CkfPattern @perrotta, @jpata, @cmsbuild, @slava77 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.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
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.
"#inport copy" can also get removed from
- RecoTracker/Configuration/python/RecoTrackerTopBottom_cff.py
@@ -15,9 +15,9 @@ | |||
import copy |
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 can be removed, as you did in the previous files
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.
Error occur when I remove this copy here :
File "/afs/cern.ch/work/j/jelee/ServiceWork/EventContent/CMSSW_11_2_X_2020-07-20-2300/python/RecoMuon/MuonIdentification/cosmics_id.py", line 12, in <module>
cosmicsVetoTrackCandidates = copy.deepcopy(ckfTrackCandidatesP5)
NameError: name 'copy' is not defined
from RecoTracker.CkfPattern.CkfTrackCandidatesP5_cff import * |
(I will remove this copy and update RecoMuon/MuonIdentification/cosmics_id.p)
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.
Updating RecoMuon/MuonIdentification/python/cosmics_id.py seems to be rather straightforward: I think you should do it right now, for that specific file, so that you won't forget to clean up this one later on.
|
||
from RecoTracker.CkfPattern.CkfTrackCandidatesP5_cff import * | ||
ckfTrackCandidatesP5.src = cms.InputTag('combinedP5SeedsForCTF') | ||
ckfTrackCandidatesP5.src = 'combinedP5SeedsForCTF' | ||
#backward compatibility 2.2/3.1 | ||
#ckfTrackCandidatesP5.SeedProducer = 'combinedP5SeedsForCTF' |
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 also do not exists any more, and it could be probably removed from this config
@@ -44,8 +43,8 @@ | |||
# TRACK INFO | |||
#include "AnalysisAlgos/TrackInfoProducer/data/TrackInfoProducerP5.cff" |
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.
It does not exists: you can remove
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 same for RSFinalTrackSelectorP5_cff here above
TrajectoryBuilderPSet = dict(refToPSet_ = 'GroupedCkfTrajectoryBuilderP5Bottom'), | ||
NavigationSchool = 'CosmicNavigationSchool', | ||
src = 'combinedP5SeedsForCTFBottom', #ok for 32X | ||
#SeedProducer = 'combinedP5SeedsForCTFBottom', #ok for 22X |
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.
obsolete
TrajectoryBuilderPSet = dict(refToPSet_ = 'GroupedCkfTrajectoryBuilderP5Top'), | ||
NavigationSchool = 'CosmicNavigationSchool', | ||
src = 'combinedP5SeedsForCTFTop', #ok for 32X | ||
#SeedProducer = 'combinedP5SeedsForCTFTop', #ok for 22X |
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.
obsolete
@@ -84,16 +84,17 @@ | |||
#recHitMatcher | |||
#include "RecoLocalTracker/SiStripRecHitConverter/data/SiStripRecHitMatcher.cfi" |
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 exists any more since a while, already: it can be removed
src = cms.InputTag("ctfWithMaterialTracksP5"), | ||
Fitter = cms.string('FittingSmootherRKP5'), | ||
src = "ctfWithMaterialTracksP5", | ||
Fitter = 'FittingSmootherRKP5', | ||
#TTRHBuilder = cms.string('WithAngleAndTemplate'), |
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.
you can remove the type specification even if you let it commented out
We are noticing that the Maybe Tracker DPG (@mmusich ...) is more indicated that AlCa to understand whether those modules and downhill sequences are still needed or obsolete, and if they are still used in some "private" CalibTracker script, it would be good to know how to test them for correctness after the updates. Again, I will sign this PR if there are no objections: but it would be good to clean up things, if it can be done |
@perrotta.. |
Thank you @mmusich ! |
@mmusich @pieterdavid @robervalwalsh: did you have time to look at the combinatorialcosmicseedfinderP5Top/Bottom modules and the Strip cross-talk measurement related sequences which include it? Any suggestion about how to test their correctness? |
@perrotta, I started looking into that but did not get a conclusion yet. |
@perrotta I personally haven't checked, though can you clarify something about:
as far as I can see that's not used only there, but also elsewhere e.g. in the Pixel / Strip online clients: link.
but looking in RecoTracker/Configuration/python/RecoTrackerP5_cff.py, I don't see where these sequences enter |
Thank you @robervalwalsh |
You are right @mmusich , i messed up the lines while trying to reconstruct the path: the sequence they enter is |
@robervalwalsh @mmusich |
@perrotta please go ahead, no objections on our side. |
+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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Update the safer syntax for existing parameter :
(1) drop type specifications where the original parameter exists.
(2) using "clone" instead of "deepcopy"
(3) move all parameter inside the clone
Instead of modifying parameters with full type specs, which can be interpreted as an insertion of a new parameter, it is a safer way to protect from parameter name mistakes and will also help in possible parameter migrations.
(The references were PR#30353, PR#30556, PR#30671, PR#30700, PR#30827)
In this PR, total 24 files updated.
PR validation:
Event Content comparison check was also done and there is no change with these updates.
Tested in CMSSW_11_2_X, the basic test all passed in the CMSSW PR instructions.