Print some random numbers to check reproducibility
Definition at line 17 of file steering.py.
◆ __init__()
Make sure we can run in multiple processes
Definition at line 20 of file steering.py.
20 def __init__(self):
21 """Make sure we can run in multiple processes"""
22 super().__init__()
23 self.set_property_flags(basf2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED)
24 self.evt = ROOT.Belle2.PyStoreObj("EventMetaData")
25
◆ event()
Print the first 5 random numbers
Definition at line 26 of file steering.py.
26 def event(self):
27 """Print the first 5 random numbers"""
28 numbers = [f"First 5 random values in event({self.evt.getExperiment()}, {self.evt.getRun()}, {self.evt.getEvent()}):"]
29 numbers += ["%08x" % ROOT.gRandom.Integer(0xffffffff) for i in range(5)]
30 basf2.B2INFO(" ".join(numbers))
31
32
◆ evt
The documentation for this class was generated from the following file: