Re: [ROOT] Fitting more than once

From: Alberto Garcia Raboso (Alberto.Garcia.Raboso@cern.ch)
Date: Wed Aug 07 2002 - 19:25:20 MEST


Sorry, I forgot. I'm running ROOT v.3.03.02 on lxplus at CERN.

You can find the programs and (part of) the data at
/afs/cern.ch/user/g/graboso/public/progs/. I'll try to explain you a
bit. I wrote a class named TAdjust in which I store the necessary
adjustments to fit the data, and compiled it. The class h1 was generated
with MakeClass, but I modified it a lot. However, it is esentially the
same: reads the data from the tree and perform some tasks. I compiled it
as well.

The macro Analysis.C is what I keep on modifying to get what I want. As
you can see in it, there is a loop that instantiantes some TAdjust
objects and puts them into an TObjArray. Later, I access each element of
this array. Changing the limits of the loop as

for ( Int_t i = 3; i < 4; i++ )

instead of

for ( Int_t i = 0; i < kNFits; i++ )

you should be able to observe this strange behaviour.

Cheers,

Alberto

Rene Brun wrote:
> 
> Please, provide a test case (as short as possible) that reproduces the
> problem.
> Also indicate which version you are running.
> 
> Rene Brun
> 
> On Wed, 7 Aug 2002, Alberto Garcia Raboso wrote:
> 
> > Hi ROOTers,
> >
> > I'm suffering a curious behaviour of ROOT. I have to make some fits, and
> > so I made a loop to make them automatically. One of the fits was not
> > well done, so, to have a look on it, I changed the loop limits to
> > include only this strange fit and something surprising occurred... it
> > fitted OK.
> >
> > Then I tried to put another fit before it, i.e., a loop over 2 fits.
> > Again wrong. Does anybody have an idea about this?
> >
> > Thanks in advance,
> >
> > Alberto
> >



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:03 MET