restG4 file name parameter substitution not working

REST version : v2.2.11_dev (6478b03a)

Hello in the latest dev version when defining a simulation output file via <parameter name="outputFile" value="RUN__[fRunTag]_n[REST_N_EVENTS]_[fRunUser]_v[VERSION]_[fRunNumber].root"/> the substitution of values is not being done correctly and only replacing the variables found inside the RML. in this case the output would be RUN__[fRunTag]_n10_[fRunUser]_v2.11_[fRunNumber].root. I think this issue must have been introduced in the most recent commits.

I confirm the problem, after launching the restG4 example

rest-config --commit = 6478b03a

<parameter name="outputFile" value="RUN_[fRunTag]_[fRunUser]_[fRunNumber].root"/>

I believe the problem is inside TRestRun::FormFormat, maybe it has something to do with the newly introduced REST_Reflection?

Looks likely.

I also got some warning at compilation time

Hi, I’m using REST version v2.2.12.
When I run restG4 I don’t have substitution problems for
<parameter name="outputFile" value="Run_[fRunType]_[fRunTag]_[fRunNumber]_Version_[VERSION].root" />
But, when I run restManager, I get the same problem originally described in this post.

I do not get this problem after restManager.

In the latest development branch v2.2.12_dev I tried with the restG4/examples/01.NLDBD, then REST_v2/example/g4Analysis.rml

Could you try using example/g4Analysis.rml? Do you still have the error in v2.2.12_dev?