DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Classes | Namespaces | Macros | Functions
Geant4EventSeed.h File Reference
#include <DDG4/Geant4RunAction.h>

Go to the source code of this file.

Classes

class  dd4hep::sim::Geant4EventSeed
 Plugin class to set the event seed for each event. More...
 

Namespaces

 dd4hep
 Namespace for the AIDA detector description toolkit.
 
 dd4hep::sim
 Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
 
 EventSeed
 Set the event seed for each event.
 

Macros

#define ATTR_FALLTHROUGH
 
#define hashsize(n)   ( 1U << (n) )
 
#define hashmask(n)   ( hashsize ( n ) - 1 )
 
#define mix(a, b, c)
 

Functions

unsigned dd4hep::sim::jenkins_hash (unsigned char *k, unsigned length, unsigned initval)
 
unsigned int dd4hep::sim::hash (unsigned int initialSeed, unsigned int eventNumber, unsigned int runNumber)
 calculate hash from initialSeed, eventID and runID More...
 

Macro Definition Documentation

◆ ATTR_FALLTHROUGH

#define ATTR_FALLTHROUGH

Definition at line 28 of file Geant4EventSeed.h.

◆ hashmask

#define hashmask (   n)    ( hashsize ( n ) - 1 )

Definition at line 85 of file Geant4EventSeed.h.

◆ hashsize

#define hashsize (   n)    ( 1U << (n) )

Definition at line 84 of file Geant4EventSeed.h.

◆ mix

#define mix (   a,
  b,
 
)
Value:
{ \
a -= b; a -= c; a ^= (c>>13); \
b -= c; b -= a; b ^= (a<<8); \
c -= a; c -= b; c ^= (b>>13); \
a -= b; a -= c; a ^= (c>>12); \
b -= c; b -= a; b ^= (a<<16); \
c -= a; c -= b; c ^= (b>>5); \
a -= b; a -= c; a ^= (c>>3); \
b -= c; b -= a; b ^= (a<<10); \
c -= a; c -= b; c ^= (b>>15); \
}

Definition at line 114 of file Geant4EventSeed.h.