Problem getting data from gas server

REST version : v2.2.17
REST commit : c8f0edcb

Hi I’m trying to run restManager for converting G4events to hits and then to tracks for analyzing a series of simulations. I’m working on sultan.

Normally I use local files for the gas definition or I just define TRestGas inside the rml file. But I wanted to try changing to the server approach for gasFiles.

Originally in my code I had:

<TRestGas name="Argon-Isobutane 2Pct 10-10E3Vcm" title="Argon-Isobutane Mixture (2Pct Isobutane)">
		<parameter name="pressure" value="0.5"/>
		<parameter name="temperature" value="293.15"/>
		<parameter name="maxElectronEnergy" value="400"/>
		<parameter name="W_value" value="26.238"/>
		<parameter name="nCollisions" value="10"/>
		<eField Emin="10" Emax="1000." nodes="20"/>
		<gasComponent name="ar" fraction="0.98"/>
		<gasComponent name="iC4H10" fraction="0.02"/>
	</TRestGas>

Which generated the output:

– Warning : – Warning : No sucess finding local gas file definition.
– Warning : – Warning : Gas file definition does not exist.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|| TRestGas content ||
|| Config file : null ||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|| Name : Argon-Isobutane 2Pct 10-10E3Vcm ||
|| Title : Argon-Isobutane Mixture (2Pct Isobutane) ||
|| REST Version : 2.2.17 ||
|| REST Commit : c8f0edcb ||
|| REST Library version : 0 ||
----------------------------------------------------------------------------------------------------
|| Status : Configuration loaded ||
|| Gas filename : ar_98.0-iC4H10_2.0-E_vs_P_10.0_1000.0_nodes_20-nCol_10-maxE_400.gas ||
|| Pressure : 0.5 atm ||
|| Temperature : 293.15 K ||
|| Electric Field : 0 V/cm ||
|| W-value : 26.238 eV ||
|| Max. Electron energy : 400 eV ||
|| Field grid nodes : 20 ||
|| Efield range : ( 10 , 1000 ) V/cm ||
|| Number of Gases : 2 ||
|| Gas id : 0, Name : ar, Fraction : 0.98 ||
|| Gas id : 1, Name : iC4H10, Fraction : 0.02 ||
****************************************************************************************************

I changed that part of the code to:

<TRestGas name="Argon-Isobutane 2Pct 10-10E3Vcm" pressure="0.5" file="server"/>

(The name for the gas I have just copy-pasted it from the one appearing on https://sultan.unizar.es/gasFiles/gases.rml )

The output I get in this case is:

                                       [==                                  Launching TRestManager...                                   ==]                                           

– Warning : Failed to expand remote rml components for TRestGas
– Warning : Config file for run 0 not found!
– Warning : trying to use default config
– Warning : Failed to expand remote rml components for TRestGas
– Warning : Default config file not found!
Setting default W-value : 21.9
– Error : TRestGas: No gas components added!
– Warning : – Warning : No sucess finding local gas file definition.
– Warning : – Warning : Gas file definition does not exist.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|| TRestGas content ||
|| Config file : null ||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|| Name : Argon-Isobutane 2Pct 10-10E3Vcm ||
|| Title : defaultTitle ||
|| REST Version : 2.2.17 ||
|| REST Commit : c8f0edcb ||
|| REST Library version : 0 ||
----------------------------------------------------------------------------------------------------
|| Status : Configuration loaded ||
|| Gas filename : -E_vs_P_-1.0_-1.0_nodes_-1-nCol_-1-maxE_040.gas ||
|| Pressure : 0.5 atm ||
|| Temperature : -1e+08 K ||
|| Electric Field : 0 V/cm ||
|| W-value : 21.9 eV ||
|| Max. Electron energy : 40 eV ||
|| Field grid nodes : -1 ||
|| Efield range : ( -1 , -1 ) V/cm ||
|| Number of Gases : 0 ||
****************************************************************************************************
The analysis then carries on but with these data for the gas.

Is there something I have to set on the globals part that I’m missing or some path I have to configure?

Thanks in advance,
Cristian.

Hi Cristian, thanks for signalling this problem. This must be quite recent problem.

The latest release, v2.2.17, that I just compiled at sultan with Garfield support seems to be working properly.

source /programas/REST/stable/v2.2.17_garfield/thisREST.sh
restRoot
TRestGas *gas = new TRestGas("server", "Helium 10-10E3Vcm" );
gas->GetDriftVelocity(100)
(double) 45.647041

Surely, the problem is related to the fact that we are changing to a new scheme, where files are downloaded directly to the user HOME, at $HOME/.rest/download/. We will try to fix asap.

Hi Javier, yes, now it works perfectly.

Thanks for your help.

I just created the following issue to track this problem.

It works fine for me, the download is successful:

version: d758cd94

Maybe you can remove your .rest directory under home directory and try again?

Yes, removing the $HOME/.rest directory and relaunching solves the problem.

So, should not you force the users to update this file? It is this file dataURL not better suited for REST input data space?

Or we may need to customise for each user?

Now, if I want to generate a new gas file I was expecting the following would work.

I copy the gases.rml file to wherever I am working.

Then I create a new gas definition, to generate a new gas:

  <TRestGas name="Xenon 10-10E2Vcm" title="Xenon">
    <parameter name="pressure" value="1" />
    <parameter name="temperature" value="293.15" />
    <parameter name="maxElectronEnergy" value="400" />
    <parameter name="W_value" value="21.9" />
    <parameter name="nCollisions" value="10" />
    <eField Emin="10" Emax="100." nodes="5" />
    <gasComponent name="xe" fraction="1" />
  </TRestGas>

However, if I do

TRestGas *gas = new TRestGas("gases.rml", "Helium 10-10E2Vcm", true);

It tells me that it cannot find the section:

Ok, it works, just many hours in front of the screen. I added Xenon but trying to load Helium …