argiro
1
Hi,
I am having troubles accessing RooFitResults methods.
a_nevt = RooRealVar ("a","a",6000,0,10000)
b_nevt = RooRealVar ("b","b",2000,0,10000)
result = modelPdf.fitTo(data)
c= result.correlation(a_nevt.GetName(),b_nevt.GetName())
gives
on the other hand if I change to
c= result.correlation(a,b)
I get
Of course I have tried also by spellin the name explcitely (correleation('‘a’,‘b’))
how can help the system find the right binding ?
thanks
Stefano
argiro
2
opps,
I did not realize I am trying to access a null pointer !
result = modelPdf.fitTo(data,RooFit.Save())
is the solution
sorry for the noise
Stefano
Hi,
Do you mean
result = modelPdf.fitTo(data,RooFit::Save())
right? (root.cern.ch/root/html/RooAbsPd … sPdf:fitTo)