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

Public Member Functions

def initialize (self)
 
def event (self)
 

Public Attributes

 counter
 

Detailed Description

Definition at line 95 of file neurotrigger.py.

Member Function Documentation

◆ event()

def event (   self)

Definition at line 99 of file neurotrigger.py.

99 def event(self):
100 # print("counter is " + str(self.counter))
101 if self.counter % 100 == 0:
102 # print("case 0")
103 self.return_value(0)
104 elif self.counter % 3 == 0:
105 self.return_value(1)
106 elif self.counter % 3 == 1:
107 self.return_value(2)
108 elif self.counter % 3 == 2:
109 self.return_value(3)
110 else:
111 print("some kind of error")
112 self.counter += 1
113
114

◆ initialize()

def initialize (   self)

Definition at line 96 of file neurotrigger.py.

96 def initialize(self):
97 self.counter = 0
98

Member Data Documentation

◆ counter

counter

Definition at line 97 of file neurotrigger.py.


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