Can any one please send me a simple macro of bifurcated gaussian.
this will get you started:
using namespace RooFit; RooWorkspace w("w") ; w.factory("RooBifurGauss::model(x[-10,10],mean[0.5,0,10],sigmaL[1,0,10],sigmaR[4,0,10])") ; auto model = w.pdf("model"); auto x = w.var("x"); auto data = model->generate(*x,1000) ; model->fitTo(*data); auto xframe = x->frame(); data->plotOn(xframe); model->plotOn(xframe); xframe->Draw();
If you have doubts about the individual lines, you can always have a look to the reference guide: https://root.cern.ch/doc/master/classRooBifurGauss.html
In case you would like to see more RooFit examples, you can have a look to our set of tutorials here: https://root.cern/doc/master/group__tutorial__roofit.html
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.