REST version : v2.3.7
REST commit : a556b20
I wrote a Metadata class which I want to use to add a std::map
to a root file. The map contains for example the calibration factors for each veto, or assigns a name to a particular signalID.
The class you can find on github:
How do I have to format the .rml file to execute this class and to save the map to the root file? I want to execute something like restManager --c MapGroup.rml --f data/R01221_0-91_merged.root
.
In the example below, I tried to use addProcess
, but this obviously doesnāt work (because the class is not a processā¦). I also tried to use addMetadata
, but then just nothing happens when launching the rml. What do I have to do differently?
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<TRestManager>
<globals>
<parameter name="mainDataPath" value="/home/konrad/iaxo-quickana/data" />
</globals>
<TRestRun name="vetoMapGroups" title="vetoMapGroups" verboseLevel="info">
<parameter name="outputFileName" value="test.root" />
</TRestRun>
// Veto Group Names
<addProcess type="TRestMapGroup" name="vetoNames" value="ON" verboseLevel="info">
<MapGroup key="top_1" value="4692,4709,4723,4740"/>
<MapGroup key="top_2" value="4688,4705,4728,4744"/>
<MapGroup key="top_3" value="4713,4719,4735"/>
</addProcess>
// Calibration Factors
<addProcess type="TRestMapGroup" name="vetoCalibration" value="ON" verboseLevel="info">
<MapGroup key="4612" value="1"/>
<MapGroup key="4616" value="1"/>
</addProcess>
</TRestManager>