38 #ifndef G4RNGHELPER_HH
39 #define G4RNGHELPER_HH
61 if ( seedId < static_cast<G4int>(
seeds.size()) )
67 msg <<
"No seed number "<<seedId<<
"("<<
seeds.size()<<
" available)\n"
68 <<
" Original seed number "<<sdId<<
" filled so far "<<
offset;
80 for(
G4int i=0;i<nrpe*nev;i++)
static constexpr double L
void AddOneSeed(const T &seed)
std::ostringstream G4ExceptionDescription
const SeedsQueueSize_type GetNumberSeeds() const
void Fill(G4double *dbl, G4int nev, G4int nev_tot, G4int nrpe)
virtual const T GetSeed(const G4int &sdId)
G4TemplateRNGHelper< G4long > G4RNGHelper
static G4TemplateRNGHelper< T > * instance
virtual ~G4TemplateRNGHelper()
static G4TemplateRNGHelper< T > * GetInstanceIfExist()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::vector< T > SeedsQueue
SeedsQueue::size_type SeedsQueueSize_type
std::queue< G4long > G4SeedsQueue
static G4TemplateRNGHelper< T > * GetInstance()
void Refill(G4double *dbl, G4int nev)
G4TemplateRNGHelper< G4String > G4StringRNGHelper