\hypertarget{_geant4_event_seed_8h}{\section{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-G4/include/\-D\-D\-G4/\-Geant4\-Event\-Seed.h File Reference}
\label{_geant4_event_seed_8h}\index{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-G4/include/\-D\-D\-G4/\-Geant4\-Event\-Seed.\-h@{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-G4/include/\-D\-D\-G4/\-Geant4\-Event\-Seed.\-h}}
}
{\ttfamily \#include \char`\"{}D\-D\-G4/\-Geant4\-Run\-Action.\-h\char`\"{}}\\*
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{class_d_d4hep_1_1_simulation_1_1_geant4_event_seed}{D\-D4hep\-::\-Simulation\-::\-Geant4\-Event\-Seed}
\end{DoxyCompactItemize}
\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
\hyperlink{namespace_d_d4hep}{D\-D4hep}
\begin{DoxyCompactList}\small\item\em Namespace for the A\-I\-D\-A detector description toolkit. \end{DoxyCompactList}\item 
\hyperlink{namespace_d_d4hep_1_1_simulation}{D\-D4hep\-::\-Simulation}
\begin{DoxyCompactList}\small\item\em Namespace for the Geant4 based simulation part of the A\-I\-D\-A detector description toolkit. \end{DoxyCompactList}\item 
\hyperlink{namespace_event_seed}{Event\-Seed}
\begin{DoxyCompactList}\small\item\em Set the event seed for each event. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{_geant4_event_seed_8h_a86173ca25b300cf3276b088d3fc6bdaf}{hashsize}(n)~( 1\-U $<$$<$ (n) )
\item 
\#define \hyperlink{_geant4_event_seed_8h_aacd6ed104463685849b2550389d05ff3}{hashmask}(n)~( \hyperlink{_geant4_event_seed_8h_a86173ca25b300cf3276b088d3fc6bdaf}{hashsize} ( n ) -\/ 1 )
\item 
\#define \hyperlink{_geant4_event_seed_8h_afd9fa1747724ec6142812721997394c3}{mix}(a, b, c)
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
unsigned \hyperlink{namespace_d_d4hep_1_1_simulation_a7a70f98f660222ddbf5b8dea8ffd1bb6}{D\-D4hep\-::\-Simulation\-::jenkins\-\_\-hash} (unsigned char $\ast$k, unsigned length, unsigned initval)
\item 
unsigned int \hyperlink{namespace_d_d4hep_1_1_simulation_ae0f666f5766acb8613abdf7257606965}{D\-D4hep\-::\-Simulation\-::hash} (unsigned int initial\-Seed, unsigned int event\-Number, unsigned int run\-Number)
\begin{DoxyCompactList}\small\item\em calculate hash from initial\-Seed, event\-I\-D and run\-I\-D \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\hypertarget{_geant4_event_seed_8h_aacd6ed104463685849b2550389d05ff3}{\index{Geant4\-Event\-Seed.\-h@{Geant4\-Event\-Seed.\-h}!hashmask@{hashmask}}
\index{hashmask@{hashmask}!Geant4EventSeed.h@{Geant4\-Event\-Seed.\-h}}
\subsubsection[{hashmask}]{\setlength{\rightskip}{0pt plus 5cm}\#define hashmask(
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)~( {\bf hashsize} ( n ) -\/ 1 )}}\label{_geant4_event_seed_8h_aacd6ed104463685849b2550389d05ff3}


Definition at line 71 of file Geant4\-Event\-Seed.\-h.

\hypertarget{_geant4_event_seed_8h_a86173ca25b300cf3276b088d3fc6bdaf}{\index{Geant4\-Event\-Seed.\-h@{Geant4\-Event\-Seed.\-h}!hashsize@{hashsize}}
\index{hashsize@{hashsize}!Geant4EventSeed.h@{Geant4\-Event\-Seed.\-h}}
\subsubsection[{hashsize}]{\setlength{\rightskip}{0pt plus 5cm}\#define hashsize(
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)~( 1\-U $<$$<$ (n) )}}\label{_geant4_event_seed_8h_a86173ca25b300cf3276b088d3fc6bdaf}


Definition at line 70 of file Geant4\-Event\-Seed.\-h.

\hypertarget{_geant4_event_seed_8h_afd9fa1747724ec6142812721997394c3}{\index{Geant4\-Event\-Seed.\-h@{Geant4\-Event\-Seed.\-h}!mix@{mix}}
\index{mix@{mix}!Geant4EventSeed.h@{Geant4\-Event\-Seed.\-h}}
\subsubsection[{mix}]{\setlength{\rightskip}{0pt plus 5cm}\#define mix(
\begin{DoxyParamCaption}
\item[{}]{a, }
\item[{}]{b, }
\item[{}]{c}
\end{DoxyParamCaption}
)}}\label{_geant4_event_seed_8h_afd9fa1747724ec6142812721997394c3}
{\bfseries Value\-:}
\begin{DoxyCode}
\{                                           \(\backslash\)
      a -= b; a -= c; a ^= (c>>13);             \(\backslash\)
      b -= c; b -= a; b ^= (a<<8);              \(\backslash\)
      c -= a; c -= b; c ^= (b>>13);             \(\backslash\)
      a -= b; a -= c; a ^= (c>>12);             \(\backslash\)
      b -= c; b -= a; b ^= (a<<16);             \(\backslash\)
      c -= a; c -= b; c ^= (b>>5);              \(\backslash\)
      a -= b; a -= c; a ^= (c>>3);              \(\backslash\)
      b -= c; b -= a; b ^= (a<<10);             \(\backslash\)
      c -= a; c -= b; c ^= (b>>15);             \(\backslash\)
    \}
\end{DoxyCode}


Definition at line 100 of file Geant4\-Event\-Seed.\-h.



Referenced by D\-D4hep\-::\-Simulation\-::\-Geant4\-Converter\-::handle\-Material(), and D\-D4hep\-::\-Simulation\-::jenkins\-\_\-hash().

