Fill a 1D histogram from a user-defined parametric function. 
 
void hist002_TH1_fillrandom_userfunc()
{
   
   
 
   
   
 
   
   int nBins = 200;
 
   
   h1d.FillRandom(
"sqroot", 10000);
 
 
   
   auto myFile = std::unique_ptr<TFile>(
TFile::Open(
"fillrandom_userfunc.root", 
"RECREATE"));
 
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
 
1-D histogram with a double per channel (see TH1 documentation)
 
- Date
 - November 2024 
 
- Author
 - Rene Brun, Giacomo Parolini 
 
Definition in file hist002_TH1_fillrandom_userfunc.C.