Geant4  10.00.p03
G4TemplateRNGHelper< T > Class Template Reference

#include <G4RNGHelper.hh>

+ Collaboration diagram for G4TemplateRNGHelper< T >:

Public Types

typedef std::vector< T > SeedsQueue
 
typedef SeedsQueue::size_type SeedsQueueSize_type
 

Public Member Functions

virtual ~G4TemplateRNGHelper ()
 
virtual const T GetSeed (const G4int &sdId)
 
void AddOneSeed (const T &seed)
 
void Fill (double *dbl, int nev, int nev_tot, int nrpe)
 
void Refill (double *dbl, int nev)
 
const SeedsQueueSize_type GetNumberSeeds () const
 
virtual void Clear ()
 

Static Public Member Functions

static G4TemplateRNGHelperGetInstance ()
 

Protected Attributes

SeedsQueue seeds
 
int offset
 
int nev_filled
 
int nev_total
 
int nRandParEvent
 

Private Member Functions

 G4TemplateRNGHelper ()
 
template<>
G4TemplateRNGHelper< long > * instance
 
template<>
G4TemplateRNGHelper< G4String > * instance
 

Static Private Attributes

static G4TemplateRNGHelperinstance
 

Detailed Description

template<class T>
class G4TemplateRNGHelper< T >

Definition at line 47 of file G4RNGHelper.hh.

Member Typedef Documentation

template<class T>
typedef std::vector<T> G4TemplateRNGHelper< T >::SeedsQueue

Definition at line 59 of file G4RNGHelper.hh.

template<class T>
typedef SeedsQueue::size_type G4TemplateRNGHelper< T >::SeedsQueueSize_type

Definition at line 60 of file G4RNGHelper.hh.

Constructor & Destructor Documentation

template<class T>
G4TemplateRNGHelper< T >::G4TemplateRNGHelper ( )
inlineprivate

Definition at line 63 of file G4RNGHelper.hh.

References G4TemplateRNGHelper< T >::nev_filled, G4TemplateRNGHelper< T >::nev_total, and G4TemplateRNGHelper< T >::offset.

Referenced by G4TemplateRNGHelper< T >::GetInstance().

+ Here is the caller graph for this function:

template<class T>
virtual G4TemplateRNGHelper< T >::~G4TemplateRNGHelper ( )
inlinevirtual

Definition at line 71 of file G4RNGHelper.hh.

References G4TemplateRNGHelper< T >::Clear().

+ Here is the call graph for this function:

Member Function Documentation

template<class T>
void G4TemplateRNGHelper< T >::AddOneSeed ( const T &  seed)
inline

Definition at line 92 of file G4RNGHelper.hh.

References G4TemplateRNGHelper< T >::seeds.

template<class T>
virtual void G4TemplateRNGHelper< T >::Clear ( )
inlinevirtual

Definition at line 120 of file G4RNGHelper.hh.

References G4TemplateRNGHelper< T >::seeds.

Referenced by G4TemplateRNGHelper< T >::~G4TemplateRNGHelper().

+ Here is the caller graph for this function:

template<class T>
void G4TemplateRNGHelper< T >::Fill ( double *  dbl,
int  nev,
int  nev_tot,
int  nrpe 
)
inline

Definition at line 95 of file G4RNGHelper.hh.

References L, G4TemplateRNGHelper< T >::nev_filled, G4TemplateRNGHelper< T >::nev_total, G4TemplateRNGHelper< T >::nRandParEvent, G4TemplateRNGHelper< T >::offset, and G4TemplateRNGHelper< T >::seeds.

Referenced by G4MTRunManager::InitializeEventLoop().

+ Here is the caller graph for this function:

template<class T>
static G4TemplateRNGHelper* G4TemplateRNGHelper< T >::GetInstance ( void  )
inlinestatic

Definition at line 52 of file G4RNGHelper.hh.

References G4TemplateRNGHelper< T >::G4TemplateRNGHelper(), and G4TemplateRNGHelper< T >::instance().

Referenced by G4WorkerRunManager::GenerateEvent(), G4MTRunManager::InitializeEventLoop(), G4MTRunManager::RefillSeeds(), G4MTRunManager::SetUpAnEvent(), and G4MTRunManager::SetUpNEvents().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class T>
const SeedsQueueSize_type G4TemplateRNGHelper< T >::GetNumberSeeds ( ) const
inline

Definition at line 117 of file G4RNGHelper.hh.

References G4TemplateRNGHelper< T >::seeds.

template<class T>
virtual const T G4TemplateRNGHelper< T >::GetSeed ( const G4int sdId)
inlinevirtual

Definition at line 77 of file G4RNGHelper.hh.

References FatalException, G4Exception(), G4TemplateRNGHelper< T >::offset, and G4TemplateRNGHelper< T >::seeds.

Referenced by G4WorkerRunManager::GenerateEvent(), G4MTRunManager::SetUpAnEvent(), and G4MTRunManager::SetUpNEvents().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<>
G4TemplateRNGHelper< long > * G4TemplateRNGHelper< long >::instance ( )
private

Definition at line 31 of file G4RNGHelper.cc.

Referenced by G4TemplateRNGHelper< T >::GetInstance().

+ Here is the caller graph for this function:

template<>
G4TemplateRNGHelper< G4String > * G4TemplateRNGHelper< G4String >::instance ( )
private

Definition at line 34 of file G4RNGHelper.cc.

template<class T>
void G4TemplateRNGHelper< T >::Refill ( double *  dbl,
int  nev 
)
inline

Definition at line 106 of file G4RNGHelper.hh.

References L, G4TemplateRNGHelper< T >::nev_filled, G4TemplateRNGHelper< T >::nRandParEvent, G4TemplateRNGHelper< T >::offset, and G4TemplateRNGHelper< T >::seeds.

Referenced by G4MTRunManager::RefillSeeds().

+ Here is the caller graph for this function:

Member Data Documentation

template<class T>
G4TemplateRNGHelper* G4TemplateRNGHelper< T >::instance
staticprivate

Definition at line 49 of file G4RNGHelper.hh.

template<class T>
int G4TemplateRNGHelper< T >::nev_filled
protected
template<class T>
int G4TemplateRNGHelper< T >::nev_total
protected
template<class T>
int G4TemplateRNGHelper< T >::nRandParEvent
protected

The documentation for this class was generated from the following file: