--- myst: substitutions: bloc1: python: 1-4,11-32,35-77 cpp: 5-7,10-27,30-73 bloc2: python: 15-25 cpp: 10-20 bloc3: python: 37-46 cpp: 32-41 bloc4: python: 67-71 cpp: 62-66 bloc5: python: 7- cpp: 9- dedent: python: ":dedent:\n" cpp: "" --- (use_cases_macro_relauncher_sequential_constant)= # Macro "**relauncherCodeFlowrateSequential_ConstantVar.{{extension}}**" ## Objective The goal of this macro is to show how to set one of the evaluator's input attribute to a constant value, with a sequential runner. The `flowrate` code is provided with {{uranie}} and has been also used and discussed throughout these macros. ## Macro {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/relauncher/use_cases/" + language + "/relauncherCodeFlowrateSequential_ConstantVar." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc1[language] + "\n" + "```" }} Here again, a comparison is drawn with the first {{Relaun}} macro (see [](#use_cases_macro_relauncher_sequential_macro)) and only the differences are pointed out. The first obvious one, in the very first steps in defining the dataserver and the attributes, is that instead of reading a database-file, we are generating a {{doe}} with one big specificity: all the input attributes are properly defined, but **r**. {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/relauncher/use_cases/" + language + "/relauncherCodeFlowrateSequential_ConstantVar." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc2[language] + "\n" + "```" }} A simple {{doe}} is generated and all the input attributes are provided to the input file of the assessor, event the constant one **r**. {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/relauncher/use_cases/" + language + "/relauncherCodeFlowrateSequential_ConstantVar." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc3[language] + "\n" + "```" }} The rest is fairly common, up to the `TMaster`-inheriting object specification: the `addConstantValue` method is called to specify that **r** is about to be constant for all ongoing estimation, and it provides it value. The last argument states that the value under consideration should be stored in the ntuple of the dataserver object, as shown in the next section (from the `scan` method). {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/relauncher/use_cases/" + language + "/relauncherCodeFlowrateSequential_ConstantVar." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc4[language] + "\n" + dedent[language] + "```" }} ```{raw} latex \begin{landscape} ``` (use_cases_macro_relauncher_sequential_constant_console)= ## Console {{ "```{literalinclude} " + parent_dir + "/roottest/build/uranie/doc/relauncher/use_cases/" + language + "/relauncherCodeFlowrateSequential_ConstantVar.log" + "\n" + ":language: none\n" + ":lines: " + bloc5[language] + "\n" + "```" }} ```{raw} latex \end{landscape} ```