User Tools

Site Tools


root:componentspyrootroofit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

root:componentspyrootroofit [2011/10/19 15:40] (current)
decianm created
Line 1: Line 1:
 +====== Drawing components of pdfs in RooFit with pyRoot ====== 
 +Instead of doing: 
 +<code python>​ 
 +sum.plotOn(xframe,​ RooFit.Components(RooFit.RooArgSet(BG)),​ RooFit.LineColor(2))  
 +</​code>​ 
 +you have to do: 
 +<code python>​ 
 +argset = RooArgSet(BG) 
 +sum.plotOn(xframe,​ RooFit.Components(argset),​ RooFit.LineColor(2)) 
 +</​code>​
root/componentspyrootroofit.txt · Last modified: 2011/10/19 15:40 by decianm