roofit 2.95 versus roofit 3.00

From: Marc Escalier <escalier_at_lal.in2p3.fr>
Date: Tue, 29 Dec 2009 19:13:13 +0100


Dear root talkers,

*i did a minimum example of using roofit that works with roofit 2.95, but that crashes for roofit 3.00.

{ //works with roofit2.95, crash with roofit 3.00

   //example of program here :/afs/cern.ch/user/e/escalier/public/Minimum/    TFile f_test("mydata.root");
   TTree* mytree=(TTree *)f_test.Get("PAUReco");    RooRealVar ph_shwr_fracm("ph_shwr_fracm","ph_shwr_fracm",0.,1.,"GeV");    RooDataSet roodataset_test("roodataset_test","roodataset_test",mytree,ph_shwr_fracm);    cout << "entries=" << roodataset_test.numEntries() << endl; }

Would somebody know what is the problem ?

with 2.95, it works
(Unfortunately, the computer (not my computer) i wish to use has roofit 3.00 only installed)

with 3.00, it gives a crash :
CINT/ROOT C/C++ Interpreter version 5.17.00, Dec 21, 2008 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }.

RooFit v3.00 -- Developed by Wouter Verkerke and David Kirkbym

                 Copyright (C) 2000-2009 NIKHEF, University of California 
& Stanford University
                 All rights reserved, please read 
http://roofit.sourceforge.net/license.txt

(no debugging symbols found)
Attaching to program: /proc/2045/exe, process 2045 (no debugging symbols found)...done.
(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled] [New Thread 0x2b05a0c77460 (LWP 2045)]

(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.

0x00002b05a0781325 in waitpid () from /lib64/libc.so.6
#1 0x00002b05a07242e1 in do_system () from /lib64/libc.so.6
#2 0x00002b059e145de6 in TUnixSystem::StackTrace () from
/usr/local/root/pro/root/lib/root/libCore.so
#3 0x00002b059e143c23 in TUnixSystem::DispatchSignals () from
/usr/local/root/pro/root/lib/root/libCore.so
#4 <signal handler called>
#5 0x00002b05a2886974 in

ROOT::TCollectionProxyInfo::Type<std::vector<float, std::allocator<float> > >::clear ()

    from /usr/local/root/root_v5.24.00/root/lib/root/libvectorDict.so
#6 0x00002b05a0d5cf5c in TGenCollectionStreamer::Streamer () from
/usr/local/root/root_v5.24.00/root/lib/root/libRIO.so
#7 0x00002b05a0d395d7 in TCollectionStreamer::Streamer () from
/usr/local/root/root_v5.24.00/root/lib/root/libRIO.so
#8 0x00002b05a0d31c88 in TBufferFile::ReadFastArray () from
/usr/local/root/root_v5.24.00/root/lib/root/libRIO.so
#9 0x00002b05a0ddfe02 in TStreamerInfo::ReadBuffer<char**> () from
/usr/local/root/root_v5.24.00/root/lib/root/libRIO.so
#10 0x00002b05a1697956 in TBranchElement::ReadLeaves () from
/usr/local/root/root_v5.24.00/root/lib/root/libTree.so
#11 0x00002b05a168a385 in TBranch::GetEntry () from
/usr/local/root/root_v5.24.00/root/lib/root/libTree.so
#12 0x00002b05a1694765 in TBranchElement::GetEntry () from
/usr/local/root/root_v5.24.00/root/lib/root/libTree.so
#13 0x00002b05a16d793e in TTree::GetEntry () from
/usr/local/root/root_v5.24.00/root/lib/root/libTree.so
#14 0x00002b05a37320b3 in RooTreeDataStore::loadValues () from
/usr/local/root/root_v5.24.00/root/lib/root/libRooFitCore.so
#15 0x00002b05a373237e in RooTreeDataStore::RooTreeDataStore ()

    from /usr/local/root/root_v5.24.00/root/lib/root/libRooFitCore.so
#16 0x00002b05a365de5e in RooDataSet::RooDataSet () from
/usr/local/root/root_v5.24.00/root/lib/root/libRooFitCore.so
#17 0x00002b05a38335c3 in G__G__RooFitCore1_185_0_6 () from
/usr/local/root/root_v5.24.00/root/lib/root/libRooFitCore.so
#18 0x00002b059e92c7ad in Cint::G__ExceptionWrapper () from
/usr/local/root/pro/root/lib/root/libCint.so
#19 0x00002b059e9dd530 in G__execute_call () from
/usr/local/root/pro/root/lib/root/libCint.so
#20 0x00002b059e9de35e in G__call_cppfunc () from
/usr/local/root/pro/root/lib/root/libCint.so
#21 0x00002b059e9b920b in G__interpret_func () from
/usr/local/root/pro/root/lib/root/libCint.so
#22 0x00002b059e9a8bcf in G__getfunction () from
/usr/local/root/pro/root/lib/root/libCint.so
#23 0x00002b059e972b1c in G__define_var () from
/usr/local/root/pro/root/lib/root/libCint.so
#24 0x00002b059ea05c5e in G__exec_statement () from
/usr/local/root/pro/root/lib/root/libCint.so
#25 0x00002b059e96a596 in G__exec_tempfile_core () from
/usr/local/root/pro/root/lib/root/libCint.so
#26 0x00002b059e96a89b in G__exec_tempfile () from
/usr/local/root/pro/root/lib/root/libCint.so
#27 0x00002b059ea183c7 in G__process_cmd () from
/usr/local/root/pro/root/lib/root/libCint.so
#28 0x00002b059e12f917 in TCint::ProcessLine () from
/usr/local/root/pro/root/lib/root/libCore.so
#29 0x00002b059e134943 in TCint::ProcessLineSynch () from
/usr/local/root/pro/root/lib/root/libCore.so
#30 0x00002b059e07088b in TApplication::ExecuteFile () from
/usr/local/root/pro/root/lib/root/libCore.so
#31 0x00002b059e06e6fb in TApplication::ProcessLine () from
/usr/local/root/pro/root/lib/root/libCore.so
#32 0x00002b059f8ff1f3 in TRint::HandleTermInput () from
/usr/local/root/pro/root/lib/root/libRint.so
#33 0x00002b059f8fda47 in TTermInputHandler::Notify () from
/usr/local/root/pro/root/lib/root/libRint.so
#34 0x00002b059f8ffb0d in TTermInputHandler::ReadNotify () from
/usr/local/root/pro/root/lib/root/libRint.so
#35 0x00002b059e143863 in TUnixSystem::CheckDescriptors () from
/usr/local/root/pro/root/lib/root/libCore.so
#36 0x00002b059e143d9a in TUnixSystem::DispatchOneEvent () from
/usr/local/root/pro/root/lib/root/libCore.so
#37 0x00002b059e0c4366 in TSystem::InnerLoop () from
/usr/local/root/pro/root/lib/root/libCore.so
#38 0x00002b059e0c7011 in TSystem::Run () from
/usr/local/root/pro/root/lib/root/libCore.so
#39 0x00002b059e06cf1f in TApplication::Run () from
/usr/local/root/pro/root/lib/root/libCore.so
#40 0x00002b059f8ff710 in TRint::Run () from
/usr/local/root/pro/root/lib/root/libRint.so
#41 0x000000000040100d in main ()

The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/2045/exe, process 2045

*In addition, would somebody has a example on how to create a RooDataSet from a given file with a given Tree inside. I see for example that the example in the roofit users manual 2.07-29, page 8, unbinned dataset, is wrong : ("x" must be after "tree", not the opposite).

==>if i do :
RooRealVar myobservable("myobservable","myobservable",0.,1.,"GeV"); RooArgSet list_of_observables(myobservable); RooDataSet roodataset_test("roodataset_test","MyFileThatContainsTheTree.root","NameOfTheTree",list_of_observables);

it doesn't work (whereas this kind of instruction was working 3 years ago...)

thanks Received on Tue Dec 29 2009 - 19:13:45 CET

This archive was generated by hypermail 2.2.0 : Tue Dec 29 2009 - 23:50:02 CET