System : MacOs
REST version : v2.2.10
When I produce a Monte Carlo Geant4 file I find the metadata entries are duplicated. It must be that now TRestRun calls Write twice.
For example, when I launch the example at example/restG4template
and open it to look inside I find.
root [6] run->GetMetadataStructureNames()
(std::vector<std::string>) { "DBDsimulation", "default", "DBDsimulation", "default" }
and the results of .ls
TFile* example_output.root
OBJ: TRestAnalysisTree AnalysisTree AnalysisTree : 0 at: 0x7fdcba88aab0
OBJ: TTree EventTree EventTree : 0 at: 0x7fdcba9d33e0
KEY: TRestG4Metadata DBDsimulation;1 A dummy DBD simulation
KEY: TRestPhysicsLists default;1 First physics list implementation.
KEY: TRestG4Metadata Historic_TRestG4Metadata;1 A dummy DBD simulation
KEY: TRestPhysicsLists Historic_TRestPhysicsLists;1 First physics list implementation.
KEY: TRestAnalysisTree AnalysisTree;1 AnalysisTree
KEY: TRestRun Run metadata;1 REST Metadata run info (template)
KEY: TTree EventTree;1 EventTree
KEY: TGeoManager Geometry;1 Geometry imported from GDML