Hi I have a simple RooFit code which I usually run on ROOT 6.24/02 without any issues. I recently ran the same code on another computer using 6.22/06 and I got the error for RooArgSet:
error: no matching constructor for initialization of ‘RooArgSet’
…RooArgSet(RecCosThetaKK, RecCosTheta_BKK, RecDelRKK, RecDelR_BKK, RecPtKK, RecPt_BKK, RecMassKK, RecMass_BKK, RecMassLambdaKK, RecMassLambda_BKK, invMKK…
Here is the bit of code that concerns me:
TChain* ch = new TChain("KsValidation");
ch->Add("/people/apaul/Data/data1501.root");
RooRealVar RecCosThetaKK("RecCosThetaKK", "RecCosThetaKK", 0.9998,1.);
RooRealVar RecCosTheta_BKK("RecCosTheta_BKK", "RecCosTheta_BKK", 0.9998, 1.);
RooRealVar RecDelRKK("RecDelRKK", "RecDelRKK", 3, 400);
RooRealVar RecDelR_BKK("RecDelR_BKK", "RecDelR_BKK", 3, 400);
RooRealVar RecPtKK("RecPtKK", "RecPtKK", 300, 2000);
RooRealVar RecPt_BKK("RecPt_BKK", "RecPt_BKK", 300, 2000);
RooRealVar RecMassKK("RecMassKK", "RecMassKK", 350, 650); //RecMassKK here
RooRealVar RecMass_BKK("RecMass_BKK", "RecMass_BKK", 350, 650);
RooRealVar RecMassLambdaKK("RecMassLambdaKK", "RecMassLambdaKK", 900, 5000);
RooRealVar RecMassLambda_BKK("RecMassLambda_BKK", "RecMassLambda_BKK", 900, 5000);
RooRealVar invMKK("invMKK", "invMKK", 3000, 7000);
RooDataSet data("data", "data", RooArgSet(RecCosThetaKK, RecCosTheta_BKK, RecDelRKK, RecDelR_BKK, RecPtKK, RecPt_BKK, RecMassKK, RecMass_BKK, RecMassLambdaKK, RecMassLambda_BKK, invMKK), Import(*ch), Cut("RecCosThetaKK > 0.9999 && RecDelRKK > 4 && RecDelRKK < 300 && RecMassLambdaKK > 1125 && RecPtKK > 300 && RecPtKK < 2000 && RecCosTheta_BKK > 0.9999 && RecDelR_BKK > 4 && RecDelR_BKK < 300 && RecMassLambda_BKK > 1125 && RecPt_BKK > 300 && RecPt_BKK < 2000 && invMKK > 0 && RecMass_BKK > 478 && RecMassKK > 478 && RecMass_BKK < 518 && RecMassKK < 518"));
Could anyone help me to solve the issue?