I try to hadd files …
I have the following error:
Target file: goo.root
Source file 1: MainAnalysis2.xml_run_101881_carbon_omega_prime.zebra.gz_ThreeOne
All_folder_with_timecut_w_ac_3_1__signal.tree.root
Warning in TClass::TClass: no dictionary for class CBTParticle is available
Warning in TClass::TClass: no dictionary for class CBIEnergyData is available
Warning in TClass::TClass: no dictionary for class CBITimeData is available
Warning in TClass::TClass: no dictionary for class CBTRefArray is available
Source file 2: MainAnalysis2.xml_run_101881_carbon_omega_prime.zebra.gz_ThreeOne
All_folder_with_timecut_w_ac_4_1__signal.tree.root
Target path: goo.root:/
Found subdirectory ThreeOneAll_folder_with_timecut_w_ac_3_1__signal
Target path: goo.root:/ThreeOneAll_folder_with_timecut_w_ac_3_1__signal
Error in TBufferFile::ReadVersion: Could not find the StreamerInfo with a chec
ksum of 1073741832 for the class “TAttLine” in MainAnalysis2.xml_run_101881_carb
on_omega_prime.zebra.gz_ThreeOneAll_folder_with_timecut_w_ac_3_1__signal.tree.ro
ot.
Error in TBufferFile::CheckByteCount: object of class TParticle read too few b
ytes: 146 instead of 301
Error in TBufferFile::ReadVersion: Could not find the StreamerInfo with a chec
ksum of 1073741832 for the class “TAttLine” in MainAnalysis2.xml_run_101881_carb
on_omega_prime.zebra.gz_ThreeOneAll_folder_with_timecut_w_ac_3_1__signal.tree.ro
ot.
Error in TBufferFile::CheckByteCount: object of class TParticle read too few b
ytes: 146 instead of 1677
Error in TBufferFile::ReadVersion: Could not find the StreamerInfo with a chec
ksum of 1073741832 for the class “TAttLine” in MainAnalysis2.xml_run_101881_carb
on_omega_prime.zebra.gz_ThreeOneAll_folder_with_timecut_w_ac_3_1__signal.tree.ro
ot.
Error in TBufferFile::CheckByteCount: object of class TParticle read too few b
ytes: 146 instead of 1647
Error in TBufferFile::ReadVersion: Could not find the StreamerInfo with a chec
ksum of 1073741832 for the class “TAttLine” in MainAnalysis2.xml_run_101881_carb
on_omega_prime.zebra.gz_ThreeOneAll_folder_with_timecut_w_ac_3_1__signal.tree.ro
ot.
Error in TBufferFile::CheckByteCount: object of class TParticle read too few b
ytes: 146 instead of 1647
Error in TBufferFile::ReadVersion: Could not find the StreamerInfo with a chec
ksum of 1073741832 for the class “TAttLine” in MainAnalysis2.xml_run_101881_carb
on_omega_prime.zebra.gz_ThreeOneAll_folder_with_timecut_w_ac_3_1__signal.tree.ro
ot.
Error in TBufferFile::CheckByteCount: object of class TParticle read too few b
ytes: 146 instead of 320
Fatal in TClass::: i==info->GetClassVersion() || (i==-1&&info->GetClassVersion
()==1) violated at line 4428 of `meta/src/TClass.cxx’
aborting
MainAnalysis2.xml_run_101881_carbon_omega_prime.zebra.gz_ThreeOneAll_folder_with
timecut_w_ac_3_1__signal.tree.root tree:ThreeOneAll_folder_with_timecut_w_ac_3
1__signal/tree entries=1234567890
Using host libthread_db library “/lib/libthread_db.so.1”.
Attaching to program: /proc/25998/exe, process 25998
[Thread debugging using libthread_db enabled]
[New Thread 47771506664640 (LWP 25998)]
0x00002b72ab814715 in waitpid () from /lib/libc.so.6
#1 0x00002b72ab7bd721 in strtold_l () from /lib/libc.so.6
#2 0x00002b72a8da494a in TUnixSystem::StackTrace ()
from /dsk/tr16/software/builds3rdParty/64bit/root_v5.18_geant4.9.1/lib/root/l
ibCore.so.5.18
#3 0x00002b72a8d06190 in DefaultErrorHandler ()
from /dsk/tr16/software/builds3rdParty/64bit/root_v5.18_geant4.9.1/lib/root/l
ibCore.so.5.18
#4 0x00002b72a8d05c56 in ErrorHandler ()
from /dsk/tr16/software/builds3rdParty/64bit/root_v5.18_geant4.9.1/lib/root/l
ibCore.so.5.18
#5 0x00002b72a8d12182 in TObject::Fatal ()
from /dsk/tr16/software/builds3rdParty/64bit/root_v5.18_geant4.9.1/lib/root/l
ibCore.so.5.18
#6 0x00002b72a8d7dbc9 in TClass::FindStreamerInfo ()
from /dsk/tr16/software/builds3rdParty/64bit/root_v5.18_geant4.9.1/lib/root/l
ibCore.so.5.18
#7 0x00002b72aab36fba in TTreeCloner::CopyStreamerInfos ()
from /dsk/tr16/software/builds3rdParty/64bit/root_v5.18_geant4.9.1/lib/root/l
ibTree.so.5.18
#8 0x00002b72aab37349 in TTreeCloner::Exec ()
from /dsk/tr16/software/builds3rdParty/64bit/root_v5.18_geant4.9.1/lib/root/l
ibTree.so.5.18
#9 0x00002b72aab1b395 in TChain::Merge ()
from /dsk/tr16/software/builds3rdParty/64bit/root_v5.18_geant4.9.1/lib/root/l
ibTree.so.5.18
#10 0x0000000000402ca0 in MergeRootfile ()
#11 0x0000000000402d69 in MergeRootfile ()
#12 0x0000000000403c89 in main ()
I am trying my best to write out every every important:
outputFile = new TFile(ofile.Data(), "recreate");
outputFile->MakeProject("src", "*", "recreate++");
outputFile->mkdir(lFolderName);
outputFile->cd(lFolderName);
....
outputFile->Write();
outputFile->WriteStreamerInfo();
outputFile->Close();
Can you give some advice how to solve this problem?