Re: [ROOT] Call MyC->Draw(); from object which is made by script compiler

From: Rene Brun (brun@pcbrun.cern.ch)
Date: Tue Nov 16 2004 - 08:09:01 MET


Please see :http://root.cern.ch/root/roottalk/RoottalkRules.html

Rene Brun

On Mon, 15 
Nov 2004 dukim@fnal.gov wrote:

> Hello!
> 
> I made a cxx file  and  it dose work well with
> script as below
> -------------------------------------
> root << EOF
> .L Roctb.cxx
> Roctb* t = new Roctb(); 
>  t->looping(); 
> EOF
> -------------------------------------
> But when I run different script to make faster as
> below, then there are  the error with the command
> 'MyC2->cd(1);' or "MyC2->Draw(), MyC2->Update(),..."
> -------------------------------------
> root << EOF
> .L Roctb.cxx+g 
> Roctb* t = new Roctb(); 
>  t->looping(); 
> EOF
> -------------------------------------
> May I know what is the way to display the plots
> during run the object?
> 
> Here is the error message
> -------------------------------------------------------
> .L Roctb.cxx+g 
> Roctb* t = new Roctb(); 
>  t->looping(); 
> 
>  *** Break *** segmentation violation
>  Generating stack trace...
>  0x415979d3 in <unknown> from
> /home/diamond/testkim/./Roctb_cxx.so
>  0x4063f6df in G__call_cppfunc + 0x283 from
> /usr/local/root/lib/libCint.so
>  0x4062e269 in G__interpret_func + 0x899 from
> /usr/local/root/lib/libCint.so
>  0x40613925 in G__getfunction + 0x171d from
> /usr/local/root/lib/libCint.so
>  0x406a5fe3 in G__getstructmem + 0x86b from
> /usr/local/root/lib/libCint.so
>  0x4069ed1e in G__getvariable + 0x636 from
> /usr/local/root/lib/libCint.so
>  0x40608b0d in G__getitem + 0x6e9 from
> /usr/local/root/lib/libCint.so
>  0x406070cd in G__getexpr + 0x8e05 from
> /usr/local/root/lib/libCint.so
>  0x40656dc1 in G__exec_function + 0x169 from
> /usr/local/root/lib/libCint.so
>  0x4065e940 in G__exec_statement + 0x2f54 from
> /usr/local/root/lib/libCint.so
>  0x405ee399 in G__exec_tempfile_core + 0x329 from
> /usr/local/root/lib/libCint.so 0x405ee57a in
> G__exec_tempfile_fp + 0x22 from
> /usr/local/root/lib/libCint.so
>  0x406673af in G__process_cmd + 0x4fff from
> /usr/local/root/lib/libCint.so
>  0x4018fb9e in TCint::ProcessLine(char const *,
> TInterpreter::EErrorCode *) + 0x9a from
> /usr/local/root/lib/libCore.so
>  0x4011026d in TApplication::ProcessLine(char const
> *, bool, int *) + 0x579 from
> /usr/local/root/lib/libCore.so
>  0x40e70e6e in TRint::HandleTermInput(void) + 0x1ba
> from /usr/local/root/lib/libRint.so
>  0x40e700e4 in TTermInputHandler::Notify(void) +
> 0x28 from /usr/local/root/lib/libRint.so
>  0x40e7159f in TTermInputHandler::ReadNotify(void) +
> 0x13 from /usr/local/root/lib/libRint.so
>  0x401f5ecf in TUnixSystem::CheckDescriptors(void) +
> 0x113 from /usr/local/root/lib/libCore.so
>  0x401f55e3 in TUnixSystem::DispatchOneEvent(bool) +
> 0x11b from /usr/local/root/lib/libCore.so
>  0x4015fa19 in TSystem::InnerLoop(void) + 0x1d from
> /usr/local/root/lib/libCore.so
>  0x4015f9ae in TSystem::Run(void) + 0x7e from
> /usr/local/root/lib/libCore.so
>  0x40110e0d in TApplication::Run(bool) + 0x31 from
> /usr/local/root/lib/libCore.so
>  0x40e70906 in TRint::Run(bool) + 0x2ba from
> /usr/local/root/lib/libRint.so
>  0x08048785 in main + 0x55 from
> /usr/local/root/bin/root.exe
>  0x42017499 in __libc_start_main + 0x95 from
> /usr/local/root/bin/root.exe
>  0x08048651 in __register_frame_info + 0x35 from
> /usr/local/root/bin/root.exe
> Root > 
> 
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET