Filling ttree root6

Dear Experts,

I have a very simple code (attached) to fill a tree in root that works on root v5.34.23 but not on 6.18/04
Test.cc (596 Bytes)

I compile it with:
g++ -o /astro/users/mperrint/KM3NeT/ENTER/ToyBeamLine/bin/Test -pthread -std=c++11 -m64 -I/astro/group/root_versions/SL7_v6.18.04/include /astro/users/mperrint/KM3NeT/ENTER/ToyBeamLine/src/Test.cc -L/astro/group/root_versions/SL7_v6.18.04/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -pthread -lm -ldl -rdynamic

When running I get:

Error in <TExMap::Add>: key 140016020268288 is not unique
Error in <TExMap::Add>: key 140016020789680 is not unique
Error in <TExMap::Add>: key 140016010735360 is not unique

 *** Break *** segmentation violation

which seems to come from the Write() line.
Any idea what changed wrt to root5?

Thanks a lot for you help,

mathieu

ROOT Version: 6.18/04
Built for linuxx8664gcc on Sep 11 2019, 15:38:23
From tags/v6-18-04@v6-18-04

After t->Write();, add:
delete f; // automatically deletes "t", too

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.