Details
-
Bug
-
Status: Closed (View Workflow)
-
High
-
Resolution: Fixed
-
6.14/04
-
None
-
SLC6, gcc62 (also tested with CentOS7, gcc63)
Description
Hi,
We (in ATLAS) see the following errors when using ROOT 6.14/04 to open TF1s from a ROOT file created with 6.10/06:
root [2] Error in <TFormula::Streamer>: number of dimension computed (1) is not same as the stored value (0)
|
myf : ([0]/(1+TMath::Exp(-[1]*(x-[2])))) Ndim= 1, Npar= 3, Number= 0
|
Formula expression:
|
([p0]/(1+TMath::Exp(-[p1]*(x-[p2]))))
|
List of Variables:
|
Var 0 x = 0.000000
|
List of Parameters:
|
Par 0 p0 = 0.000000
|
Par 1 p1 = 0.000000
|
Par 2 p2 = 0.000000
|
Expression passed to Cling:
|
Double_t TFormula____id10167864354852591493(Double_t *x,Double_t *p)\{ return (p[0]/(1+TMath::Exp(-p[1]*(x[0]-p[2])))) ; }
|
I attach a file which reproduces this, and the (trivial) code used to create the file. When the file is remade with 6.14/04 using the same script, the error goes away.
Cheers,
Kerim