Error while running example of CrystalBall

Hello,

I was trying to run the example CrystalBall.C with root version 6.02 on lxplus the link:

root.cern.ch/root/html604/tutor … all.C.html

But I am getting the following error [1].

Please suggest how I can solve this.

with regards,
Ram

[1]
root [0]
Processing CrystalBall.C…
Error in TFormula::Compile: Bad numerical expression : "crystalball"
Error in TF1::TF1: function: f1/crystalball has 0 parameters instead of 1
Error in TFormula::Compile: Bad numerical expression : "ROOT::Math::crystalball_function(x,2,1,1,0)"
Error in TF1::TF1: function: f2/ROOT::Math::crystalball_function(x, 2, 1, 1, 0) has 0 parameters instead of 1
Error in TFormula::Compile: Bad numerical expression : "ROOT::Math::crystalball_function(x,2,2,1,0)"
Error in TF1::TF1: function: f3/ROOT::Math::crystalball_function(x, 2, 2, 1, 0) has 0 parameters instead of 1
Error in TFormula::Compile: Bad numerical expression : "crystalballn"
Error in TF1::TF1: function: pdf/crystalballn has 0 parameters instead of 1
Error in TFormula::Compile: Bad numerical expression : "ROOT::Math::crystalball_pdf(x,3,1.01,1,0)"
Error in TF1::TF1: function: pdf/ROOT::Math::crystalball_pdf(x, 3, 1.01, 1, 0) has 0 parameters instead of 1
Error in TFormula::Compile: Bad numerical expression : "ROOT::Math::crystalball_pdf(x,2,2,1,0)"
Error in TF1::TF1: function: pdf/ROOT::Math::crystalball_pdf(x, 2, 2, 1, 0) has 0 parameters instead of 1
Error in TFormula::Compile: Bad numerical expression : "ROOT::Math::crystalball_cdf(x,1.2,2,1,0)"
Error in TF1::TF1: function: cdf/ROOT::Math::crystalball_cdf(x, 1.2, 2, 1, 0) has 0 parameters instead of 1
Error in TFormula::Compile: Bad numerical expression : "ROOT::Math::crystalball_cdf_c(x,1.2,2,1,0)"
Error in TF1::TF1: function: cdfc/ROOT::Math::crystalball_cdf_c(x, 1.2, 2, 1, 0) has 0 parameters instead of 1
root [1] .q

Hello Ram,

this feature is supported starting from ROOT 6.04. You can easily set up this root version on lxplus following the instructions here (basically running two lines): root.cern.ch/drupal/content/pro … ersion-604

Cheers,
Danilo