Belle II Software development
PopulateEvents Class Reference
Inheritance diagram for PopulateEvents:

Public Member Functions

def initialize (self)
 
def event (self)
 

Public Attributes

 evt
 EventMetaData.
 

Detailed Description

Class for populating the events with some random numbers.

Definition at line 20 of file test_b2file-mix.py.

Member Function Documentation

◆ event()

def event (   self)
Event.

Definition at line 30 of file test_b2file-mix.py.

30 def event(self):
31 '''Event.'''
32 import ROOT
33 # Let's store a random number in the slot for the generator weight
34 self.evt.setGeneratedWeight(ROOT.gRandom.Rndm())
35
36

◆ initialize()

def initialize (   self)
Initialize.

Definition at line 23 of file test_b2file-mix.py.

23 def initialize(self):
24 '''Initialize.'''
25 import ROOT
26
27 self.evt = ROOT.Belle2.PyStoreObj('EventMetaData')
28 self.evt.isRequired()
29

Member Data Documentation

◆ evt

evt

EventMetaData.

Definition at line 27 of file test_b2file-mix.py.


The documentation for this class was generated from the following file: