Skip to content
Snippets Groups Projects
Commit 0869fa34 authored by Stephan Hageboeck's avatar Stephan Hageboeck
Browse files

[RF] Sanitise integral of RooCBShape.

The integral of the crystal ball shape might vanish quickly due to
a finite precision when integrating far from the centre.
This leads to divisions by zero.
Now, a very small value is returned.
parent 28c75fdd
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,7 @@ Double_t RooCBShape::analyticalIntegral(Int_t code, const char* rangeName) const ...@@ -166,7 +166,7 @@ Double_t RooCBShape::analyticalIntegral(Int_t code, const char* rangeName) const
result += term1 + term2; result += term1 + term2;
} }
return result != 0. ? result : std::numeric_limits<double>::min(); return result != 0. ? result : 1.E-300;
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment