I’m interested in finding the maximum of the the entries in a RooDataSet.
I’ve had a look and didn’t find a native RooFit method for this. Instead I tried to acccess the maximum with
maximum=data->tree().GetMaximum(“variable name”);
This works fine interactively, but ACLiC complains about const-ness problems:
error: passing const TTree' asthis’ argument of `virtual Double_t TTree::GetMaximum(const char*)’ discards qualifiers
Making TTree::GetMaximum, GetMinimum const is quite difficult. The functions are overloaded in TChain where constness is difficult to implement without cheating.