38 #ifndef G4RNGHELPER_HH
39 #define G4RNGHELPER_HH
80 if ( seedId < static_cast<G4int>(
seeds.size()) )
82 T& seed =
seeds[seedId];
86 msg <<
"No seed number "<<seedId<<
"("<<
seeds.size()<<
" available)\n"
87 <<
" Original seed number "<<sdId<<
" filled so far "<<
offset;
96 void Fill(
double* dbl,
int nev,
int nev_tot,
int nrpe)
99 for(
int i=0;i<nrpe*nev;i++)
100 {
seeds.push_back((
long)(100000000
L*dbl[i])); }
112 {
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()