How to get the fit values and errors from RooMCStudy and put these values into a TTree

Dear experts,
I am wondering how to get the fit values and error of each fit in RooMCStudy and put the output into a TTree . Then I can see which fit is bad, which is good and get the pull myself only using the good fit.
Since I get some bad fits, which affact the final pull using RooMCStudy

RooMCStudy* mcstudy = new RooMCStudy(simNew, *observables, Binned(kTRUE),Silence(),Extended(),ExternalConstraints(*constraints),FitOptions(Save(kTRUE),PrintEvalErrors(0),Minos(kTRUE))) ;

many thanks!
Lingzhu

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.