Re: TFraction Fitter extension

From: Rene Brun <brun_at_pcroot.cern.ch>
Date: Wed, 27 Jul 2005 15:38:54 +0200 (MEST)


Hello Art,

Of course, we will support your extensions to TFractionFitter if you do the job. This would be a nice improvement.

I suggest to start from the CVS head, importing the source as described at : http://root.cern.ch/root/Install.html

Add your new class to the hist directory (where TFractionFitter is). Add TBinWeighter.h to $ROOTSYS/hist/inc/ Add TBinWeighter.cxx to $ROOTSYS/hist/src/ Edit the file $ROOTSYS/hist/inc/LinkDef.h adding this line: #pragma link C++ class TBinWeighter+;
after
#pragma link C++ class TFractionFitter+;

then cd $ROOTSYS
gmake

Rene Brun

On
Tue, 26
Jul 2005, Arthur E. Snyder wrote:

> Whoops forgot to change the title so I'm reposting this note with
> a more sensible subject heading.
>
> BTW, If anybody more familiar with the workings of ROOT is interested I
> would love to have a collaborator on this extension. Once it's running and
> tested I think it would be worth publishing a short note on some
> appropriat journal.
>
> -Art S.
>
> A.E. Snyder, Group EC \!c*p?/
> SLAC Mail Stop #95 ((. .))
> Box 4349 |
> Stanford, Ca, USA, 94309 '\|/`
> e-mail:snyder_at_slac.stanford.edu o
> phone:650-926-2701 _
> http://www.slac.stanford.edu/~snyder BaBar
> FAX:650-926-2657 Collaboration
>
>
>
> On Tue, 26 Jul 2005, Arthur E. Snyder wrote:
>
>>
>> I've written an extention to the TFraction fitter that will allow a fit
>> to parameterized weights to be made, thus allowing a binned likelihood
>> fit to be made for parameters with weighted MC as the source of the
>> underlying "PDF".
>>
>> However, I can't figure out how to compile .cxx files. I've checked to
>> ROOT from cvs, modified TFractionFitter.cxx and .hh and written a new
>> class TBinWeighter (which is a TNamed object, so I can put it in list),
>> but when I try to compile it in my usual ROOT enviroment I get a lot
>> of complaints about undefined TDate::operator= and such. It looks like
>> there's some kind of pre-processor that will add some machine dependent
>> functions to my .cxx to produce a .cc that can be compiled. Is that right?
>> How do I do it?
>>
>> -Art S.
>>
>>
>> A.E. Snyder, Group EC \!c*p?/
>> SLAC Mail Stop #95 ((. .))
>> Box 4349 |
>> Stanford, Ca, USA, 94309 '\|/`
>> e-mail:snyder_at_slac.stanford.edu o
>> phone:650-926-2701 _
>> http://www.slac.stanford.edu/~snyder BaBar
>> FAX:650-926-2657 Collaboration
>>
>>
>>
>>
>
Received on Wed Jul 27 2005 - 15:39:03 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:11 MET