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
particleFlowDisplacedVertexCandidate_cff.py imports MessageLogger_cfi #32161
Comments
assign reconstruction, dqm, l1, simulation |
New categories assigned: dqm,simulation,reconstruction,l1 @mdhildreth,@jfernan2,@slava77,@andrius-k,@fioriNTU,@rekovic,@perrotta,@jmduarte,@jpata,@kmaeshima,@ErnestaP,@civanch you have been requested to review this Pull request/Issue and eventually sign? Thanks |
A new Issue was created by @Dr15Jones Chris Jones. @Dr15Jones, @dpiparo, @silviodonato, @smuzaffar, @makortel, @qliphy can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
This was discovered when I was reviewing changes to the MessageLogger configurations caused by a conversion script I'm using to move to the new MessageLogger syntax. |
@Dr15Jones what would be the recommendation in this case: to modify particleFlowDisplacedVertexCandidate_cff.py or all the other files? |
I would think editting particleFlowDisplacedVertexCandidate_cff.py would cause the least amount of surprise for the future. That change would require finding out why the MessageLogger is being configured there and if the reason could be solved by doing something else. |
OK, adding @hatakeyamak and @bendavid into the loop then |
We are talking about: I think we can remove this suppression with no or minimal change to particleFlowDisplacedVertexCandidate. Will try to do this cleanup. |
after somewhat cursory check I think that the line with I did not find Log[EW] in PFDisplacedVertexCandidateFinder or PFDisplacedVertexCandidateProducer. |
RecoParticleFlow/PFTracking/src/PFTrackTransformer.cc may come in with LogWarning, but it looks to me LogWarning is already suppressed by another bool msgwarning. Can we just go ahead and remove MessageLogger.suppressWarning from https://cmssdt.cern.ch/lxr/source/RecoParticleFlow/PFTracking/python/particleFlowDisplacedVertexCandidate_cff.py, and confirm that we don't create unnecessary LogWarning via jenkins tests? |
Thank you for checking deeper.
@hatakeyamak |
Will do today. |
It is the call In general, since Services are a process wide tool, it is not a good idea to load them in _cfi or _cff files and instead best to only do it in _cfg files. |
@Dr15Jones
The former is not always practical, the latter sounds like a maintenance problem |
If we follow with similar route, I'd prefer the configuration-to-be-edited to outside of |
Thanks for clarification and discussions. |
+1 resolved in #32265 |
+1 |
The configuration RecoParticleFlow/PFTracking/python/particleFlowDisplacedVertexCandidate_cff.py imports the FWCore.MessageLogger.MessageLogger_cfi and then modifies one of its parameters. The unexpected loading of the MessageLogger service by a low level _cff file is overriding the explicit setting of the Service done earlier in the files
DQM/TrackingMonitor/test/TrackingMonitor_AllTrackingSequences_cfg.py
DQM/TrackingMonitor/test/TrackingMonitor_SeedMonitor_cfg.py
DQM/TrackingMonitor/test/TrackingMonitor_StandAlone_cfg.py
DQMOffline/CalibTracker/test/SiStripBadComponentsDQMServiceReader_cfg.py
DQMOffline/CalibCalo/test/HOAlCaRecoMonStream_cfg.py
FastSimulation/Validation/test/MultiTrackValidator_cfg.py
L1Trigger/L1TCommon/test/runStandardSequences.py
RecoLocalTracker/SiStripClusterizer/test/shotTest_withReClustering_cfg.py
RecoLocalTracker/SiStripClusterizer/test/testClusterToDigi_cfg.py
Validation/RecoTrack/test/MultiTrackValidator_cfg.py
as particleFlowDisplacedVertexCandidate_cff.py is indirectly loaded by those files after they had setup the Service.
The text was updated successfully, but these errors were encountered: