 
  
 
 Fill a 1D histogram from a user-defined parametric function. 
;␗ 
import ROOT
 
 
rangeMin = 0.0
rangeMax = 10.0
sqroot = 
ROOT.TF1(
"sqroot", 
"x*gaus(0) + [3]*form1", rangeMin, rangeMax)
gausScale = 10.0  
gausMean = 4.0    
gausVar = 1.0     
form1Scale = 20.0 
 
h1d = 
ROOT.TH1D(
"h1d", 
"Test random numbers", 200, rangeMin, rangeMax)
 
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
- Date
- November 2024 
- Author
- Rene Brun, Giacomo Parolini 
Definition in file hist002_TH1_fillrandom_userfunc.py.