Problems with normalization using Components() in plotOn

Dear all.
I was using, in roofit 2.10, the call to Compontents() command inside plotOn() to plot a component of a PDF.
With my code I obtained the plot showed in attachment. (plot1)
Then I switched to roofit 2.22 and with the same code the PDF components are no longer properly normalized. (plot2)
How can I change the syntax in order to get back the plot properly normalized?

Another question:
is there any updated manual or documentation that stress the differences btw 2.10 and new roofit (2.22)? Where I can easily get access to that information?

Thanks and cheers,
alessio



Wouter will answer your question once he will back online.

Rene

Hi Alessio,

Can you try once more with RooFit 2.30 (i.e. ROOT 5.17/08). If this
still fails, please send a macro that reproduces the problem and
I’ll fix it.

Wouter

Dear Wouter.
Thanks for the hint.
I’ve tried with roofit 2.30 but this does not help.
The plot is still the same: the normalization is not properly compuetd when I try the Components() command. Maybe this is my fault (problem building the PDF).
The code I use is rather complex and It will take a bit of time to pack up a macro to reproduce the problem.
I’ll try to make it ASAP, and post it here.

Thanks and cheers,
alessio

Ok.
Seems that packing the macro was not that long job.
I’m attaching the code (I ran it with root -b -q ProblemMacro.C) and the plot.
The same macro runs fine under 2.10.
Any help on understanding what goes wrong will be really appreciated.

Thank you so much.
alessio


ProblemMacro.C (7.45 KB)

Hi all,
I know that there have been holidays in between but I’d like to know if the problem is being addressed or not… Of course if I can do anything to help with the debugging I’ll be happy.

Alessio

Hi Alessio,

I was away for the holidays. I will try your example to debug this a.s.a.p.

Wouter

Hi,

I just ran your ProblemMacro on the SVN head an it seems to run OK for me
(see attached plot).

I think there are no relevant differences between 5.17/08 and the SVN head
so I am somewhat puzzled why it didn’t work for you. Can you try to check
out the SVN head and confirm that that works for you?

Wouter

Hi,

The attachment went missing. I try again.

Wouter

Dear Wouter,
I’ve proceeded using the latest root SVN
svn co root.cern.ch/svn/root/trunk root
getting:


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.17/09 14 December 2007 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

ROOT 5.17/09 (trunk@21358, Jan 10 2008, 11:27:00 on linux)

CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
Processing ProblemMacro.C…

RooFit v2.30 – Developed by Wouter Verkerke and David Kirkby
Copyright © 2000-2007 NIKHEF, University of California & Stanford University
All rights reserved, please read roofit.sourceforge.net/license.txt

But still I get a wrong figure. (attached)
How can I help debugging the problem?

Thank you so much,
alessio