Skip to content

Commit

Permalink
TRestDataSet. Now observables separator is a comma
Browse files Browse the repository at this point in the history
  • Loading branch information
jgalan committed Dec 12, 2022
1 parent 467a25c commit b388349
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions examples/dataset.rml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<parameter name="filePattern" value="../../framework-data/pipeline/dataset/BabyIAXO_TrueWolterMicromegasTest*.root"/>
<filter metadata="TRestRun::fRunNumber" greaterThan="370" lowerThan="375"/>
<filter metadata="TRestRun::fRunTag" contains="Test"/>
<observables list="window_transmission:optics_efficiency:axionPhoton_probability:axionPhoton_transmission:boreExitGate_transmission"/>
<observables list="window_transmission,optics_efficiency,axionPhoton_probability,axionPhoton_transmission,boreExitGate_transmission"/>
<processObservables list="final"/>
<quantity name="Nsim" metadata="TRestProcessRunner::fEventsToProcess" strategy="accumulate" description="The total number of simulated events."/>
<quantity name="SolarFlux" metadata="TRestAxionGeneratorProcess::fTotalFlux" strategy="unique" description="The integrated solar flux at earth (in cm-2 s-1) at the given energy range."/>
<quantity name="GeneratorArea" metadata="3.1416 * axGen::fTargetRadius * axGen::fTargetRadius" strategy="unique" description="The area where the generator launched events (in mm2)."/>
<quantity name="Nsim" metadata="[TRestProcessRunner::fEventsToProcess]" strategy="accumulate" description="The total number of simulated events."/>
<quantity name="SolarFlux" metadata="[axionGen-&gt;fTotalFlux]" strategy="unique" description="The integrated solar flux at earth (in cm-2 s-1) at the given energy range."/>
<quantity name="GeneratorArea" metadata="3.1416 * [axionGen::fTargetRadius]/10 * [axionGen::fTargetRadius]/10" strategy="unique" description="The area where the generator launched events (in cm2)."/>
</TRestDataSet>
4 changes: 2 additions & 2 deletions source/framework/core/src/TRestDataSet.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ void TRestDataSet::InitFromConfigFile() {
exit(1);
}

std::vector<std::string> obsList = REST_StringHelper::Split(observables, ":");
std::vector<std::string> obsList = REST_StringHelper::Split(observables, ",");

for (const auto& l : obsList) fObservablesList.push_back(l);

Expand All @@ -522,7 +522,7 @@ void TRestDataSet::InitFromConfigFile() {
exit(1);
}

std::vector<std::string> obsList = REST_StringHelper::Split(observables, ":");
std::vector<std::string> obsList = REST_StringHelper::Split(observables, ",");

for (const auto& l : obsList) fProcessObservablesList.push_back(l);

Expand Down

0 comments on commit b388349

Please sign in to comment.