Hi ROOTers,
I'm working on a Scientific Linux 3.0.3 machine with ROOT 4.03/01 (compiled
from source last week).
I did MakeClass() on the file at:
http://minoserv.maps.susx.ac.uk/~symes/calibconsts/tmp.root
and put the following code in my resulting Loop() function:
{
if (fChain == 0) return;
fChain->SetBranchStatus("*",1);
Long64_t nentries = fChain->GetEntries();
Int_t nbytes = 0, nb = 0; TH1F* effectOf0PECut = new TH1F("effect0pe","Correction Made By 0 p.e.Method",500,0,0.5);
cout << nentries << endl; for(int ii=0;ii<2;++ii) { effectOf0PECut->Reset(); for (Long64_t jentry=0; jentry<nentries;jentry++) { Long64_t ientry = LoadTree(jentry); if (ientry < 0) break; nb = fChain->GetEntry(jentry); nb=0; effectOf0PECut->Fill(rand()/kMaxUInt); nbytes += nb; if (Cut(ientry) < 0) continue;
TCanvas* EffectOf0PECut = new
TCanvas("EffectOf0PECut","EffectOf0PECut",10,90,640,480);
EffectOf0PECut->cd(); EffectOf0PECut->SetFillColor(0); effectOf0PECut->SetLineColor(4); effectOf0PECut->SetMarkerStyle(3); effectOf0PECut->GetXaxis()->SetTitle("Fractional correction made by cut"); effectOf0PECut->GetYaxis()->SetTitle("Frequency of hits"); effectOf0PECut->Draw(); return;
When I run this in ROOT, if just I do:
.L NtpAlign.C
NtpAlign a
a.Loop()
it complains with:
Error in <TClass::Load>: dictionary of class TTreeIndex not found
Error in <TClass::Load>: dictionary of class TTreeIndex not found
65953
Error in <TClass::Load>: dictionary of class TTreeIndex not found
But if I use ACLiC, the results are more interesting. I do:
.L NtpAlign.C+
NtpAlign a
a.Loop()
I repeated the above several times in different ROOT sessions, and 1 of 3
things happens:
1) sometimes it works, gets the right no. of entries and produces a plot with
a peak at 0, but says:
Error: Unexpected EOF G__exec_statement() FILE:(tmpfile) LINE:1
Advice: You may need to use +P or -p option
Report: Unrecognized string 'r' ignored FILE:(tmpfile) LINE:1
2) sometimes it claims the no. of entries is 1234567890 and produces a plot
with no entries;
3) sometimes it crashes and complains with:
Error in <TClass::Load>: dictionary of class TTreeIndex not found
Error in <TClass::Load>: dictionary of class TTreeIndex not found
65953
Error in <TClass::Load>: dictionary of class TTreeIndex not found
Do you know what has gone wrong? Is this something that could cause more general problems?
Cheers,
Phil
PS:
Here is my GDB session, but it doesn't look all that useful:
[symes_at_minos09 nearmaps]$ gdb root.exe
GNU gdb Red Hat Linux (6.1post-1.20040607.17rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols
found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) r
Starting program: /home/opt/opt/root/bin/root.exe
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...[Thread debugging using
libthread_db enabled]
[New Thread -1218587104 (LWP 23057)]
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...Detaching after
fork from child process 23060.
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...
FreeType Engine v2.1.3 used to render TrueType fonts. Compiled for linux with thread support.
CINT/ROOT C/C++ Interpreter version 5.15.159, Nov 14 2004
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...root [0] .L NtpAlign.C
root [1] NtpAlign a
Warning in <TClass::TClass>: no dictionary for class VldTimeStamp is available Warning in <TClass::TClass>: no dictionary for class VldContext is available Warning in <TClass::TClass>: no dictionary for class NtpAlignmentRecord isavailable
Warning in <TClass::TClass>: no dictionary for class RecRecordImp<RecCandHeader> is available Warning in <TClass::TClass>: no dictionary for class RecRecord is available Warning in <TClass::TClass>: no dictionary for class RecCandHeader isavailable
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218587104 (LWP 23057)]
0x002bf525 in G__interpret_func () from /opt/root/lib/libCint.so
(gdb) where full
#0 0x002bf525 in G__interpret_func () from /opt/root/lib/libCint.so
No symbol table info available.
#1 0x002f6846 in G__exec_asm () from /opt/root/lib/libCint.so
No symbol table info available.
#2 0x002e8f33 in G__exec_loop () from /opt/root/lib/libCint.so
No symbol table info available.
#3 0x002e9306 in G__exec_for () from /opt/root/lib/libCint.so
No symbol table info available.
#4 0x002eb709 in G__exec_statement () from /opt/root/lib/libCint.so
No symbol table info available.
#5 0x002e8c4d in G__exec_loop () from /opt/root/lib/libCint.so
No symbol table info available.
#6 0x002e9306 in G__exec_for () from /opt/root/lib/libCint.so
No symbol table info available.
#7 0x002eb709 in G__exec_statement () from /opt/root/lib/libCint.so
No symbol table info available.
#8 0x002c08c0 in G__interpret_func () from /opt/root/lib/libCint.so
No symbol table info available.
#9 0x002a6d34 in G__getfunction () from /opt/root/lib/libCint.so
No symbol table info available.
#10 0x0032bffb in G__getstructmem () from /opt/root/lib/libCint.so
No symbol table info available.
#11 0x003260e1 in G__getvariable () from /opt/root/lib/libCint.so
No symbol table info available.
#12 0x0029e2c2 in G__getitem () from /opt/root/lib/libCint.so
No symbol table info available.
#13 0x0029ceda in G__getexpr () from /opt/root/lib/libCint.so
No symbol table info available.
#14 0x002e4d5e in G__exec_function () from /opt/root/lib/libCint.so
No symbol table info available.
#15 0x002eb9ab in G__exec_statement () from /opt/root/lib/libCint.so
No symbol table info available.
#16 0x00285f2f in G__exec_tempfile_core () from /opt/root/lib/libCint.so
No symbol table info available.
#17 0x0028610c in G__exec_tempfile_fp () from /opt/root/lib/libCint.so
No symbol table info available.
#18 0x002f3c34 in G__process_cmd () from /opt/root/lib/libCint.so
No symbol table info available.
#19 0x007e0391 in TCint::ProcessLine () from /opt/root/lib/libCore.so
No symbol table info available.
#20 0x0073f45d in TApplication::ProcessLine () from /opt/root/lib/libCore.so
No symbol table info available.
#21 0x001dcfb3 in TRint::HandleTermInput () from /opt/root/lib/libRint.so
No symbol table info available.
#22 0x001dbe0e in TTermInputHandler::Notify () from /opt/root/lib/libRint.so
No symbol table info available.
#23 0x001dd868 in TTermInputHandler::ReadNotify () from
/opt/root/lib/libRint.so
No symbol table info available.
#24 0x0086929d in TUnixSystem::CheckDescriptors () from
/opt/root/lib/libCore.so
No symbol table info available.
#25 0x00868193 in TUnixSystem::DispatchOneEvent () from
/opt/root/lib/libCore.so
---Type <return> to continue, or q <return> to quit---q
-- Philip Symes, MINOS Group, Fermilab & Sussex University. http://minoserv.maps.susx.ac.uk/~symes/Received on Tue Jan 18 2005 - 16:52:30 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET