Re: TChain::GetEntries

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 4 Sep 2008 10:03:41 +0200


Akira,

Yes, put your file in a public readable area and let me and Philippe know.

Rene Brun

OKUMURA, Akira wrote:
> Hello ROOTers,
>
> This short macro crashes with the error message attached at the end of
> this message.
>
> void flux()
> {
> TChain* chain = new TChain("HondaTuple");
> chain->Add("080731/glast-08073105590*.root");
> Int_t n310 = chain->GetEntries("ptype==310");
> chain->Draw("log10(E-mass)>>htemp(100,1,4)", "(ptype==110)*2");
> }
>
> If I comment out the line of TChain::GetEntries, it runs as I
> expected. How can I avoid this problem?
>
> I am using
> ROOT 5.20.00 w/ OS X 10.5.4 (Intel 64 bit)
> and
> ROOT 5.20.00 w/ Fedora 8 (64 bit)
>
> Please let me know if you need the input ROOT file to investigate the
> problem, I will upload them at private area.
>
> Regards,
>
> OKUMURA, Akira oxon_at_ceres.phys.s.u-tokyo.ac.jp
> Department of Physics, The University of Tokyo
> 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
> TEL/FAX +81 3-5841-4173/4059
> Skype : okumura.akira
>
> root [1] .x flux.C
>
> *** Break *** bus error
> /Users/oxon/Documents/physics/GLAST/080904FluxCheck/35442: No such
> file or directory.
> Attaching to process 35442.
> Reading symbols for shared libraries . done
> Reading symbols for shared
> libraries .......................................................................................
> done
> 0x94df6f69 in wait4 ()
>
> ========== STACKS OF ALL THREADS ==========
>
> Thread 1 (process 35442 thread 0x10b):
> #0 0x94df6f69 in wait4 ()
> #1 0x94df4abc in system$UNIX2003 ()
> #2 0x0086cd61 in TUnixSystem::StackTrace ()
> #3 0x008700b5 in TUnixSystem::DispatchSignals ()
> #4 0x00870228 in SigHandler ()
> #5 <signal handler called>
> #6 0x02326b7c in TChain::LoadTree ()
> #7 0x02324de9 in TChain::Draw ()
> #8 0x02369d77 in G__G__Tree_103_0_41 ()
> #9 0x00f633e2 in Cint::G__ExceptionWrapper ()
> #10 0x0102e813 in G__execute_call ()
> #11 0x0103538d in G__call_cppfunc ()
> #12 0x01009b5e in G__interpret_func ()
> #13 0x00ff4f6b in G__getfunction ()
> #14 0x011064fb in G__getstructmem ()
> #15 0x010fc1bb in G__getvariable ()
> #16 0x00fc1d31 in G__getitem ()
> #17 0x00fc4ca9 in G__getexpr ()
> #18 0x0106fc21 in G__exec_statement ()
> #19 0x0100bda5 in G__interpret_func ()
> #20 0x00ff54e5 in G__getfunction ()
> #21 0x00fc1e77 in G__getitem ()
> #22 0x00fc4ca9 in G__getexpr ()
> #23 0x00fd80d9 in G__calc_internal ()
> #24 0x0107a9b1 in G__process_cmd ()
> #25 0x008586e4 in TCint::ProcessLine ()
> #26 0x008588df in TCint::ProcessLineSynch ()
> #27 0x007aed71 in TApplication::ExecuteFile ()
> #28 0x007ac6e6 in TApplication::ProcessLine ()
> #29 0x0002fe46 in TRint::HandleTermInput ()
> #30 0x0002f4e0 in TTermInputHandler::Notify ()
> #31 0x00031444 in TTermInputHandler::ReadNotify ()
> #32 0x008703c0 in TUnixSystem::CheckDescriptors ()
> #33 0x00870aeb in TUnixSystem::DispatchOneEvent ()
> #34 0x007fc670 in TSystem::InnerLoop ()
> #35 0x007fee0b in TSystem::Run ()
> #36 0x007ab433 in TApplication::Run ()
> #37 0x0003073e in TRint::Run ()
> #38 0x00001bae in main ()
> Root > Function flux() busy flag cleared
>
>
Received on Thu Sep 04 2008 - 10:03:54 CEST

This archive was generated by hypermail 2.2.0 : Fri Sep 05 2008 - 05:50:03 CEST