44 #include "RandExponential.h"
46 RandExponential::~RandExponential() {
47 if ( deleteEngine )
delete localEngine;
50 HepDouble RandExponential::operator()() {
54 void RandExponential::shootArray(
const HepInt size, HepDouble* vect,
59 for (i=0; i<size; ++i)
60 vect[i] = shoot(mean);
64 #ifndef ST_NO_TEMPLATE_DEF_ARGS
65 RandExponential::shootArray( vector<HepDouble>& vec,
68 RandExponential::shootArray( vector<HepDouble,allocator<HepDouble> >& vec,
72 for (
unsigned int i=0; i<vec.size(); ++i)
76 void RandExponential::shootArray(
HepRandomEngine* anEngine,
const HepInt size,
77 HepDouble* vect, HepDouble mean )
79 for (
int i=0; i<size; ++i)
80 vect[i] = shoot(anEngine, mean);
84 #ifndef ST_NO_TEMPLATE_DEF_ARGS
86 vector<HepDouble>& vec, HepDouble mean )
89 vector<HepDouble, allocator<HepDouble> >& vec,
93 for (
unsigned int i=0; i<vec.size(); ++i)
94 vec[i] = shoot(anEngine, mean);
97 void RandExponential::fireArray(
const HepInt size, HepDouble* vect,
102 for (i=0; i<size; ++i)
103 vect[i] = fire(mean);
107 #ifndef ST_NO_TEMPLATE_DEF_ARGS
108 RandExponential::fireArray( vector<HepDouble>& vec,
111 RandExponential::fireArray( vector<HepDouble, allocator<HepDouble> >& vec,
115 for (
unsigned int i=0; i<vec.size(); ++i)