User Tools

Site Tools


root:componentspyrootroofit

Drawing components of pdfs in RooFit with pyRoot

Instead of doing:

sum.plotOn(xframe, RooFit.Components(RooFit.RooArgSet(BG)), RooFit.LineColor(2)) 

you have to do:

argset = RooArgSet(BG)
sum.plotOn(xframe, RooFit.Components(argset), RooFit.LineColor(2))
root/componentspyrootroofit.txt · Last modified: 2011/10/19 15:40 by decianm