Skip to content
Snippets Groups Projects
Commit d5af4b0a authored by Administrator's avatar Administrator Committed by Pierre-Alain Loizeau
Browse files

Don't store function in the global list of functions

parent d72b0782
No related branches found
No related tags found
1 merge request!890Fix segfault on exit of macros: unpacking and digitization
Pipeline #18014 passed
...@@ -32,7 +32,7 @@ CbmMCInputSet::CbmMCInputSet(Double_t rate) ...@@ -32,7 +32,7 @@ CbmMCInputSet::CbmMCInputSet(Double_t rate)
if (rate > 0.) { if (rate > 0.) {
Double_t mean = 1.e9 / rate; // mean time between events Double_t mean = 1.e9 / rate; // mean time between events
fDeltaDist = new TF1("DeltaDist", "exp(-x/[0])/[0]", 0., 10. * mean); fDeltaDist = new TF1("DeltaDist", "exp(-x/[0])/[0]", 0., 10. * mean, "NL");
fDeltaDist->SetParameter(0, mean); fDeltaDist->SetParameter(0, mean);
} }
fInputHandle = fInputs.begin(); fInputHandle = fInputs.begin();
......
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