I have a Roofit example found somewhere.
The following is the code fragment to import the variables in the TNtuple into RooDataSet.
{
gSystem->Load("libRooFit");
using namespace RooFit;
// Create variables to load from the ntuple.
RooRealVar Dmode("Dmode", "decay mode of D candidate", -1, 1000);
RooRealVar DdeltaE("DdeltaE", "delta E of D candidate", -0.1, 0.1, "GeV")
;
RooArgSet ntupleVarSet(Dmode, DdeltaE);
TFile* file1 = new TFile("data33.root");
TTree* tree1 = file1->Get("RooFitExampleProc/nt1");
RooDataSet dataSet("ntuple_of_D_candidates", "ntuple of D candidate", tree1, ntupleVarSet);
}
When I run it, the code issue the following message.
How can I import the variables without the error message?
I attached root file.