Re: [ROOT] Problems merging ntuples with Version 3.05/07

From: Alessio Sarti (Alessio.Sarti@lnf.infn.it)
Date: Fri Sep 24 2004 - 10:30:08 MEST


> On Fri, 24 Sep 2004, Rene Brun wrote:
> 
> > Hi Alessio,
> > 
> > Move to a more recent version, eg 4.01/02
> 
> After switching to version 4.01/02 I have encountered now a more severe
> problem: at run time my code causes a bad crash.

I forgot to put the crash log:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1099192544 (LWP 19105)]
0x4101297c in G__G__Matrix_262_6_1(G__value*, char const*, G__param*, int)
() from /home/Packages/root/lib/libMatrix.so
(gdb) where
#0  0x4101297c in G__G__Matrix_262_6_1(G__value*, char const*, G__param*,
int) () from /home/Packages/root/lib/libMatrix.so
#1  0x40755dc6 in G__CallFunc::Exec(void*) () from
/home/Packages/root/lib/libCint.so
#2  0x401a55f0 in TClass::BuildRealData(void*) () from
/home/Packages/root/lib/libCore.so
#3  0x40e106b5 in TTree::BuildStreamerInfo(TClass*, void*) () from
/home/Packages/root/lib/libTree.so
#4  0x40df6b39 in TBranchObject::TBranchObject(char const*, char const*,
void*, int, int, int) ()
   from /home/Packages/root/lib/libTree.so
#5  0x40e100dd in TTree::Bronch(char const*, char const*, void*, int, int)
() from /home/Packages/root/lib/libTree.so
#6  0x40e0efc3 in TTree::Branch(char const*, char const*, void*, int, int)
() from /home/Packages/root/lib/libTree.so
#7  0x41553592 in UnMapASCII::addAdc(TTree*) (this=0xbfffeec0,
ntpT=0x8a22f80) at UnMapASCII.cc:196
#8  0x41552715 in UnMapASCII::UnMapFile(int) (this=0xbfffeec0, debug=0) at
UnMapASCII.cc:44
#9  0x0804901d in main (argc=3, argv=0xbffff704) at EfficiencyTest.cc:24
#10 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) quit

Thanks again,
alessio

> 
> I'm trying to fill an ntuple with TVectors:
>   TVector *ch;
>   TVector *hit;
> 
>   ntpT->Branch("hit","TVector",&hit,32000,0);
>   ntpT->Branch("ch", "TVector",&ch ,32000,0);
> 
> This code did ran just fine with Version 3.05/07.
> Do I need to use a different syntax?
> 
> Thanks again for your help.
> Alessio
> 
> > 
> > Rene Brun
> > 
> > Alessio Sarti wrote:
> > > 
> > > Hi all,
> > > I'm trying to merge some ntuples with Version 3.05/07 and I'm having
> > > problems with the produced ntuple.
> > > The merging of the trees shows no problem:
> > > the macro runs fine and I can open the "merged" file.
> > > I can even call the Draw() function on the merged TTree.
> > > But when I try to use the Scan() function or the Show or the Loop one I
> > > have problems.
> > > 
> > > The merged ntuple contains TVectors (below I show the content of my
> > > ntuple...)
> > > 
> > > //Declaration of leaves types
> > >    Int_t           evt;
> > >    Int_t           nadc;
> > >    Int_t           ntdc;
> > >    Int_t           ntdc128;
> > >    Int_t           adcM[8][1];
> > >    Int_t           tdcM[8][1];
> > >    TVector         *Shit;
> > >    TVector         *Sch;
> > > 
> > > //List of branches
> > >    TBranch        *b_evt;   //!
> > >    TBranch        *b_nadc;   //!
> > >    TBranch        *b_ntdc;   //!
> > >    TBranch        *b_ntdc128;   //!
> > >    TBranch        *b_adcM;   //!
> > >    TBranch        *b_tdcM;   //!
> > >    TBranch        *b_Shit;   //!
> > >    TBranch        *b_Sch;   //!
> > > 
> > > Here's my problem..
> > > 
> > > root [1] ((TTree*)gDirectory->Get("data"))->Scan();
> > > ************************************************************************************************************
> > > *    Row   *       evt *      nadc *      ntdc *   ntdc128 *      adcM *
> > > tdcM *      Shit *       Sch *
> > > ************************************************************************************************************
> > > 
> > >  *** Break *** segmentation violation
> > >  Generating stack trace...
> > > /usr/bin/c++filt: unknown demangling style `gnu-new-abi'
> > > Root >
> > > 
> > > I've used the merging routine to merge other root files and everything
> > > works fine: am I doing something wrong or there's a problem merging
> > > TVectors?
> > > 
> > > Thanks for any advice or help,
> > > alessio
> > > 
> > > ______________________________________________________
> > > Alessio Sarti     INFN Frascati
> > > 
> > > >>>I'm in Frascati<<<
> > > 
> > > Cell   +39-06-94038166
> > > Office +39-06-94032776
> > > Fax    +39-06-94032427
> > > 
> > > "... e a un Dio 'fatti il culo' non credere mai..."
> > > (F. De Andre')
> > > 
> > > "He was turning over in his mind an intresting new concept in
> > > Thau-dimensional physics which unified time, space, magnetism, gravity
> > > and, for some reason, broccoli".  (T. Pratchett: "Pyramids")
> > 
> 



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