Belle II Software light-2406-ragdoll
CheckPayloadNames Class Reference
Inheritance diagram for CheckPayloadNames:
Collaboration diagram for CheckPayloadNames:

Public Member Functions

def __init__ (self)
 
def event (self)
 

Public Attributes

 payload_names
 Payload names to be required.
 

Detailed Description

Small module that asks for some payloads and checks their names.

Definition at line 17 of file check_payload_names.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Constructor.

Definition at line 22 of file check_payload_names.py.

22 def __init__(self):
23 '''Constructor.'''
24 super().__init__()
25
26 self.payload_names = [
27 'BeamParameters',
28 'BeamSpot',
29 'BunchStructure',
30 'CollisionBoostVector',
31 'HardwareClockSettings',
32 'MagneticField']
33 self.payload_names.sort()
34 for payload_name in self.payload_names:
35 B2.PyDBObj(payload_name)
36

Member Function Documentation

◆ event()

def event (   self)
Event.

Definition at line 37 of file check_payload_names.py.

37 def event(self):
38 '''Event.'''
39 payload_names = sorted(B2.Database.Instance().getAllDataNames())
40 print('Set payloads:', self.payload_names)
41 print('Got payloads:', payload_names)
42 assert(self.payload_names == payload_names)
43
44

Member Data Documentation

◆ payload_names

payload_names

Payload names to be required.

Definition at line 26 of file check_payload_names.py.


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