9 #include "CLHEP/Random/RandGeneral.h"
27 std::cout <<
" File from " << fDataFile << std::endl;
28 TFile
f(fDataFile.c_str(),
"READ");
29 TGraph* yfunc = (TGraph*)
f.Get(
"rapidity");
30 TGraph* ptfunc = (TGraph*)
f.Get(
"pt");
34 <<
"Rapidity distribution could not be found in file " << fDataFile;
38 <<
"Pt distribution could not be found in file " << fDataFile;
48 double aProbFunc1[100000];
49 double aProbFunc2[100000];
53 double yy = yfunc->Eval(
xy);
57 for (
int ip = 0; ip <
ptbins_; ++ip) {
59 double ypt = ptfunc->Eval(xpt);
78 while (y < ymin || y >
ymax)
82 <<
"Random y requested but Random Number Generator for y not Initialized!";
91 while (pt < ptmin || pt >
ptmax)
95 <<
"Random pt requested but Random Number Generator for pt not Initialized!";