16 """Helper module to sleep 20 seconds on init (to mimik geometry loading)"""
19 """Make the module parallel processing certified"""
21 self.set_property_flags(basf2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED)
24 """Sleep 20 seconds"""
28def add_input_module(path, input_address, add_expressreco_objects):
29 """Add the ZMQ input module in the settings used for the examples"""
30 input_module = path.add_module(
"HLTZMQ2Ds", input=input_address, addExpressRecoObjects=add_expressreco_objects)
35def add_reco_modules(path, dqm_address, mimik_startup):
36 """Add the reconstruction modules in the settings used for the examples"""
41 path.add_module(
"HLTDQM2ZMQ", output=dqm_address, sendOutInterval=5)
42 path.add_module(
"DAQMonitor")
45def add_output_module(path, output_address, raw):
46 """Add the ZMQ output module in the settings used for the examples"""
47 path.add_module(
"HLTDs2ZMQ", output=output_address, raw=raw)
50def create_socket(context, address):
51 """Create a socket out of the given address"""
52 socket = context.socket(zmq.DEALER)
53 socket.connect(address)
58def get_sockets(settings):
59 """Create all monitoring sockets for the given settings dictionary"""
61 sockets = {name: create_socket(ctx, address)
for name, address
in settings[
"monitor"].items()}