REST version : v2.2.14
REST commit : c72d76f9
I am trying to generate new gas mixtures. I have read the documentation of the TRestGas.cxx class where it is explained how to do it, I have also checked this tutorial, and finally the definitions of the gases already available at the server here: https://sultan.unizar.es/gasFiles/gases.rml
I created a new rml file where I define the gas mixtures as:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <gases> <TRestGas name="Xenon-CO2 1Pct 10-10E3Vcm" title="Xenon-CO2 Mixture (1Pct CO2)"> <parameter name="pressure" value="1"/> <parameter name="temperature" value="293.15"/> <parameter name="maxElectronEnergy" value="400"/> <parameter name="W_value" value="22.12"/> <parameter name="nCollisions" value="10"/> <eField Emin="10" Emax="1000." nodes="20"/> <gasComponent name="xe" fraction="0.99"/> <gasComponent name="co2" fraction="0.01"/> </TRestGas> </gases>
But when I try to create a new instance of a TRestGas with this rml file, I get the following error:
root [0] TRestGas *gas1 = new TRestGas("/home/eruizchl/rest_g4data/gasMixtures/gasDefinitions.rml", "Xenon-CO2 1Pct 10-10E3Vcm", true) -- Error : Filename : null -- Error : Config File does not exist. Right path/filename? Press a KEY to continue ...
I have no problem using the “server” option and accessing the already generated gas files, but for some reason I cannot use a gas definition from my local computer. I cannot use the rml that comes with REST installation either (REST_v2/data/definitions/gases.rml).
Any thoughts?