Re: roofit 2.95 versus roofit 3.00

From: Marc Escalier <escalier_at_lal.in2p3.fr>
Date: Tue, 29 Dec 2009 22:13:25 +0100


Hi,

i found the reason of the crash :
roofit 3.00 is more robust than roofit 2.95 : the variable i was trying to include in the RooDataSet is not a variable but a vector of variable. So roofit 3.00 crashes.

==>Would somebody know how to deal with a vector of variable ?
  (of course, i tried using index [0] but that doesn't help)

to be more precise, let's consider we wish to do a RooDataSet with all the values of the vector of variable (the vector is ph_shwr_fracm in the TTree) : how to do that ?
(this vector can have variable number of items)

{ //works with roofit2.95, crash with roofit 3.00

   //example of program here :/afs/cern.ch/user/e/escalier/public/Minimum/    TFile f_test("mydata.root");
   TTree* mytree=(TTree *)f_test.Get("PAUReco");    RooRealVar ph_shwr_fracm("ph_shwr_fracm","ph_shwr_fracm",0.,1.,"GeV");    RooDataSet roodataset_test("roodataset_test","roodataset_test",mytree,ph_shwr_fracm);    cout << "entries=" << roodataset_test.numEntries() << endl;   }

Thanks for any help Received on Tue Dec 29 2009 - 22:13:35 CET

This archive was generated by hypermail 2.2.0 : Sun Jan 03 2010 - 11:50:02 CET