38 #ifndef G4RNGHELPER_HH
39 #define G4RNGHELPER_HH
79 if ( seedId < static_cast<G4int>(
seeds.size()) )
81 T& seed =
seeds[seedId];
85 msg <<
"No seed number "<<seedId<<
"("<<
seeds.size()<<
" available)\n"
86 <<
" Original seed number "<<sdId<<
" filled so far "<<
offset;
95 void Fill(
double* dbl,
int nev,
int nev_tot,
int nrpe)
98 for(
int i=0;i<nrpe*nev;i++)
99 {
seeds.push_back((
long)(100000000
L*dbl[i])); }
111 {
seeds.push_back((
long)(100000000
L*dbl[i])); }
static G4TemplateRNGHelper * GetInstance()
void Fill(double *dbl, int nev, int nev_tot, int nrpe)
std::ostringstream G4ExceptionDescription
std::vector< T > SeedsQueue
void AddOneSeed(const T &seed)
virtual const T GetSeed(const G4int &sdId)
G4TemplateRNGHelper< long > G4RNGHelper
std::queue< long > G4SeedsQueue
void Refill(double *dbl, int nev)
const SeedsQueueSize_type GetNumberSeeds() const
G4TemplateRNGHelper< long > * instance
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TemplateRNGHelper * instance
G4TemplateRNGHelper< G4String > G4StringRNGHelper
SeedsQueue::size_type SeedsQueueSize_type
virtual ~G4TemplateRNGHelper()