19#ifndef COMMON_UTILS_INCLUDE_COMMONUTILS_RNGHELPER_H_
20#define COMMON_UTILS_INCLUDE_COMMONUTILS_RNGHELPER_H_
39 const auto s = seed == 0 ? readURandom<ULong_t>() : seed;
48 int randomDataHandle = open(
"/dev/urandom", O_RDONLY);
49 if (randomDataHandle < 0) {
53 auto result = read(randomDataHandle, &seed,
sizeof(T));
57 close(randomDataHandle);
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
static ULong_t setGRandomSeed(ULong_t seed=0)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Common utility functions.