Hi,
I have some simple ntuples written with ROOT 5.20. For reasons that shall go unexplained, I would like to run ROOT 5.18e, and copy a subset of events and create a new output file. Here’s what I’m doing:
root [0] TFile f(“allGamma-GR-v17r4-allE-OVRLY-000010-merit.root”,“READ”)
root [1] TTree t=(TTree)f.Get(“MeritTuple”)
root [2] TFile f2(“newOutput.root”,“RECREATE”)
root [3] TTree *t2 = t->CopyTree(“ObfGamState==0”)
This results in failure:
#0 0x002a651e in __waitpid_nocancel () from /lib/tls/libc.so.6
#1 0x0023b1d4 in do_system () from /lib/tls/libc.so.6
#2 0x001f7d7f in system () from /lib/tls/libpthread.so.0
#3 0x005ff377 in TUnixSystem::Exec ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libCore.so
#4 0x005ff797 in TUnixSystem::StackTrace ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libCore.so
#5 0x005fd625 in TUnixSystem::DispatchSignals ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libCore.so
#6 0x005fb755 in SigHandler ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libCore.so
#7 0x00602119 in sighandler ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libCore.so
#8
#9 0x0027750c in memcpy () from /lib/tls/libc.so.6
#10 0x045b0113 in TBasket::ReadBasketBuffers ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libTree.so
#11 0x045b4eed in TBranch::GetBasket ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libTree.so
#12 0x045b3f00 in TBranch::Fill ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libTree.so
#13 0x045f545c in TTree::Fill ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libTree.so
#14 0x01212fbd in TTreePlayer::CopyTree ()
from /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/ROOT/v5.18.00e-gl1/root/lib/libTreePlayer.so
This works just fine obviously if I run ROOT 5.20, and do the same set of instructions. Should I be surprised that I cannot do this? Is there a way around it?
Thanks,
Heather