DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions
Geant4EventSeed.h File Reference
#include "DDG4/Geant4RunAction.h"

Go to the source code of this file.

Classes

class  DD4hep::Simulation::Geant4EventSeed
 

Namespaces

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

Macros

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

Functions

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

Macro Definition Documentation

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

Definition at line 71 of file Geant4EventSeed.h.

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

Definition at line 70 of file Geant4EventSeed.h.

#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 100 of file Geant4EventSeed.h.

Referenced by DD4hep::Simulation::Geant4Converter::handleMaterial(), and DD4hep::Simulation::jenkins_hash().