38 #ifndef G4UNIFORMRANDPOOL_HH
39 #define G4UNIFORMRANDPOOL_HH
47 #define G4UNIFORMRANDPOOL_DEFAULT_POOLSIZE 1024
48 #define G4UNIFORMRANDPOOL_TINY_POOLSIZE 128
49 #define G4UNIFORMRANDPOOL_SMALL_POOLSIZE 256
50 #define G4UNIFORMRANDPOOL_MEDIUM_POOLSIZE 512
51 #define G4UNIFORMRANDPOOL_LARGE_POOLSIZE 2048
52 #define G4UNIFORMRANDPOOL_HUGE_POOLSIZE 8192
75 inline void Fill(
G4int howmany );
88 if ( currentIdx >= size )
93 return buffer[currentIdx++];
101 inline void G4UniformRandPool::Fill(
G4int howmany )
103 assert(howmany>0 && howmany <= size);
107 G4Random::getTheEngine()->flatArray(howmany,buffer);
static constexpr double ps