42#ifndef G4TemplateRNGHelper_hh
43#define G4TemplateRNGHelper_hh 1
67 if (seedId <
static_cast<G4int>(
seeds.size())) {
68 T& seed =
seeds[seedId];
72 msg <<
"No seed number " << seedId <<
"(" <<
seeds.size() <<
" available)\n"
73 <<
" Original seed number " << sdId <<
" filled so far " <<
offset;
85 for (
G4int i = 0; i < nrpe * nev; ++i) {
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
std::queue< G4long > G4SeedsQueue
virtual ~G4TemplateRNGHelper()
static G4TemplateRNGHelper< T > * GetInstance()
std::vector< T > SeedsQueue
void AddOneSeed(const T &seed)
const SeedsQueueSize_type GetNumberSeeds() const
static G4TemplateRNGHelper< T > * GetInstanceIfExist()
typename SeedsQueue::size_type SeedsQueueSize_type
virtual const T GetSeed(const G4int &sdId)
void Fill(G4double *dbl, G4int nev, G4int nev_tot, G4int nrpe)
void Refill(G4double *dbl, G4int nev)