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
[CMS] Certain warnings not needed because they report intended behavior #844
Comments
Are the Which are the XML files used? Just to be sure there isn't any overwriting done, and one of the placed could be removed. |
And I can see that you wrote this isn't in any CMS xml files in the issue you linked. |
For the CLIC detector were we set the world_x/y/z in the XML I don't get warnings for the world
that second warning is what I remember adding and mentioned in the meeting. (it doesn't matter for us because we use the same value in both cases, but easer to have it twice |
@andresailer - we do not define these constants in XML. Does it mean that |
Is the full detector construction log somewhere visible? |
|
This warning comes before we parse out xml description where we would have another definition of a non-box volume that we'd like to be the World one. We cannot define it in the dd4hep configuration xml because it is too complex, so we try to make the World box be big enough to hold this other volume.
I think, the
Do you mean we must define then in xml? Or we must have defined them in xml? |
@ianna |
thanks @MarkusFrankATcernch , I'll need to do some debugging |
@ianna |
@MarkusFrankATcernch CMS creates two instances of a |
I submitted a PR to prevent the "Overwriting variable" messages when DD4hep is called in CMSSW: cms-sw/cmssw#35594. |
There are still two unnecessary messages with DD4hep v01-19:
The unit system message should be INFO or DEBUG, while the reflection message should be DEBUG. |
As used by CMS, DD4hep issues these warnings and info messages:
These messages reported intended behavior. The world variables need to be overwritten for use by CMS, CMS wants to use the Geant4 unit system, and the EFAW assembly should be reflected. In these cases, only a debug message would be needed, not a warning or info. Of course, in other cases, warnings should still appear, just not for intended behavior.
See here for the source of the overwriting warning:
DD4hep/DDParsers/src/Evaluator/Evaluator.cpp
Line 650 in 9bbe12b
As CMS moves to production use of DD4hep, it would be nice to remove unnecessary warnings from our logs.
These messages have been appearing for a long time and are still present with version 1.17.0.
The text was updated successfully, but these errors were encountered: