26 #include "StGlobals.hh"
30 #include "JamesRandom.h"
31 #include "RanluxEngine.h"
35 #include "RandPoisson.h"
36 #include "RandExponential.h"
37 #include "RandGauss.h"
38 #include "RandBreitWigner.h"
40 #ifndef ST_NO_TEMPLATE_DEF_ARGS
41 void printArray(vector<double>& vec)
43 void printArray(vector<
double, allocator<double> >& vec)
46 for(
int ii=0; ii<vec.size(); ii++)
47 cout <<
"(" << ii <<
") " << vec[ii] << endl;
60 #ifndef ST_NO_TEMPLATE_DEF_ARGS
61 vector<double> listOfRandoms(size);
63 vector<double, allocator<double> > listOfRandoms(size);
72 cout <<
"\nAn Array of Numbers from a Flat Distribution:" << endl;
73 flatDistribution.shootArray(listOfRandoms);
74 printArray(listOfRandoms);
76 cout <<
"\nAn Array of Numbers from a Gauss Distribution:" << endl;
77 gaussDistribution.fireArray(listOfRandoms);
78 printArray(listOfRandoms);
80 cout <<
"\nAn Array of Numbers from an Exponential Distribution:" << endl;
81 exponentialDistribution.fireArray(listOfRandoms);
82 printArray(listOfRandoms);
84 cout <<
"\nAn Array of Numbers from an BW Distribution:" << endl;
85 breitWignerDistribution.shootArray(listOfRandoms);
86 printArray(listOfRandoms);