RICH in DD4HEP: Issue for gas pressure, temperature conditions in Gauss and Moore
Message from @jonrob on 07-02-2025 Hi Sajan (et. al.)
Apologies for the group mail but I just wanted to start a discussion on the issue you have mentioned a couple of times now Sajan, with DD4HEP Gauss in terms of the incorrect T and P values being used by G4 to generate the RICH CK photons.
Am I correct that the crux of the issue is that the correct values, as specified in the input conditions used by the Gauss job are not being respected correctly and G4 is using some other (default?) values during generation. So then, when the reconstruction runs which does respect the conditions values, there is a mis-match ? Is that basically what the problem is ?
If that is the problem, have any steps been taken, or on going to address it. What needs to be done to fix the issue, as without a fix the RICH will never work proper in production MC.
Reply from @seaso on 07-02-2025 Dear Chris,
The crux of the issue is the following.
In ‘Detector’ when the ‘material properties’ of the gases are created, one uses the P,T values which we may label as ‘basic-default’ and the values used here are those that we had from back in the old days in the ‘mist of time’. At present, they exist in ..Detector/../compact/Rich/version-label/Rich1/DetElem/RichPropertySpecParam.xml. The ref-index tables are based on these ‘material properties’ and these tables are created in DD4HEP and then subsequently sent by DD4HEP to GEANT4. These are slightly different than the default P,T in lhcb-conditions-database and therefore in its ‘sim10/run3-ideal’ branch. They can be labelled ‘online-default’ and are in …/Conditions/Rich1(2)/online.yml.
As I understand, until recently in the new framework Gauss does not use CondDB updates and hence it ends up using the ‘basic-default’. When we run Moore from this simulated data, it picks up the ‘online-default’ which causes some problems in the shift of ‘Rec-expected’ plots, as you gather. My current ‘workaround’ is to download the lhcb-conditions-db (run3/sim10-ideal) to my area and modify the ‘online default’ to be same as ‘basic-default’. This results in the reconstructed Cherenkov angles from Moore to be slightly shifted to the right compared to those normally seen in real data. Since the upper limit of these Moore-histograms are not changed yet, these plots also appear to have a sharp cut-off at the upper end. I figured this would be the only practical solution in the short term.
I can think of a few solutions in the longer term as listed below, and I am OK with any of them.
a) Wait for Gauss to use the CondDB and ensure they are actually picked up before creating the materials in DD4HEP or at least it triggers the modification of the P,T and the creation of the corresponding ref-index tables in DD4HEP.
b) Modify the ‘basic-default’ in Detector with an MR. However, as you know this would get accepted only in the ‘trunk geometry version’ and even for this, I have no idea how long the ‘merging process’ would take.
c) I am guessing in general the ‘online-default’ is frozen, but there may be scope to modify it in the ‘sim10/run3-ideal’ branch. However, this would still need an update in Moore for the histograms. Alternately we can get Moore to use the ‘basic-default’ for simulated data, in some other way. I do not think there is any perfect solution. In this context, (b) may a good solution, but not sure if it can be made to materialize.
Reply from @jonrob on 07-02-2025 Hi Sajan,
(a) Wait for Gauss to use the CondDB and ensure they are actually picked up before creating the materials in DD4HEP or at least it triggers the modification of the P,T and the creation of the corresponding ref-index tables in DD4HEP.
For me this is the only solution that makes any sense. Even if you do (b) or (c) below you still do not guarantee the simulation and subsequent reconstruction agree on the values used, for instance if the values in the Condition DB change later on for whatever reason. (a) is the only solution where, as long as you give the Gauss and Moore steps the same condDB tag to use, they will always agree.
(b) Modify the ‘basic-default’ in Detector with an MR. However, as you know this would get accepted only in the ‘trunk geometry version’ and even for this, I have no idea how long the ‘merging process’ would take. (c) I am guessing in general the ‘online-default’ is frozen, but there may be scope to modify it in the ‘sim10/run3-ideal’ branch. However, this would still need an update in Moore for the histograms.
Alternately we can get Moore to use the ‘basic-default’ for simulated data, in some other way.
Moore (aka the reconstruction) will always use the values as specified in whatever condition DB branch/tag its been told to use. For instance
That is because I do not want the reconstruction to do anything different to what it does for real data. So this suggestion is for me a non starter.
I do not think there is any perfect solution. In this context, (b) may a good solution, but not sure if it can be made to materialize.
For me a) is the perfect (only) solution. Gauss/G4 should just respect whatever conditions versions its been configured to run using.
cheers Chris