LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
SeedCreator.h
Go to the documentation of this file.
1
13
#ifndef SEEDCREATOR_H
14
#define SEEDCREATOR_H
15
16
#include "TRandom3.h"
17
18
namespace
SeedCreator
{
19
20
inline
unsigned
int
CreateRandomNumberSeed
()
21
{
22
23
// the maximum allowed seed for the art::RandomNumberGenerator
24
// is 900000000. Use TRandom3 to get the seed value in that range.
25
// Instantiating TRandom3 with a 0 means that its seed is set based
26
// on the TUUID and should always be random, even for jobs running on the
27
// same machine
28
TRandom3 rand(0);
29
return
rand.Integer(900000000);
30
}
31
32
}
33
34
#endif // SEEDCREATOR_H
SeedCreator
Definition:
SeedCreator.h:18
SeedCreator::CreateRandomNumberSeed
unsigned int CreateRandomNumberSeed()
Definition:
SeedCreator.h:20
lardata
v09_16_03
source
lardata
Utilities
SeedCreator.h
Generated on Thu May 2 2024 20:59:36 for LArSoft by
1.8.11