Import Geant4 11.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2022-12-09 14:43:28 +01:00
parent c07cea1fe0
commit 9f34590941
3810 changed files with 200490 additions and 182326 deletions
@@ -39,12 +39,12 @@
#ifndef G4UNIFORMRANDPOOL_HH
#define G4UNIFORMRANDPOOL_HH
#include <algorithm>
#include <assert.h>
#include "G4Types.hh"
#include "Randomize.hh"
#include <algorithm>
#include <cassert>
#define G4UNIFORMRANDPOOL_DEFAULT_POOLSIZE 1024
#define G4UNIFORMRANDPOOL_TINY_POOLSIZE 128
#define G4UNIFORMRANDPOOL_SMALL_POOLSIZE 256
@@ -56,13 +56,13 @@ class G4UniformRandPool
{
public:
G4UniformRandPool();
G4UniformRandPool(/*PoolSize_t&*/ G4int ps);
explicit G4UniformRandPool(G4int ps);
~G4UniformRandPool();
void Resize(/*PoolSize_t*/ G4int newSize);
void Resize(G4int newSize);
void GetMany(G4double* rnds, G4int howMany);
inline G4double GetOne();
inline /*PoolSize_t*/ G4int GetPoolSize() const;
inline G4int GetPoolSize() const;
// These two static methods are used to
// simulate the calls of CLHEP::HepRandom
@@ -74,9 +74,9 @@ class G4UniformRandPool
void Fill(G4int howmany);
private:
/*PoolSize_t*/ G4int size;
G4double* buffer;
G4int currentIdx;
G4int size{G4UNIFORMRANDPOOL_DEFAULT_POOLSIZE};
G4double* buffer{nullptr};
G4int currentIdx{0};
};
inline G4double G4UniformRandPool::GetOne()
@@ -91,7 +91,7 @@ inline G4double G4UniformRandPool::GetOne()
return buffer[currentIdx++];
}
inline /*PoolSize_t*/ G4int G4UniformRandPool::GetPoolSize() const
inline G4int G4UniformRandPool::GetPoolSize() const
{
return size;
}