10 b2.logging.add_udp(socket.gethostname(), 6900)
12 hltid = [int(i)
for i
in socket.gethostname().split(
'store')
if i.isdigit()][0]
13 hltname =
'HLT%02d' % hltid
15 if hltid == 1
or hltid == 2:
20 b2.set_nprocesses(int(argv[1]))
22 b2.conditions.override_globaltags([
"online"])
25 main = b2.create_path()
26 outpath = b2.create_path()
27 phypath = b2.create_path()
35 zmq2ds = b2.register_module(
'StorageZMQ2Ds')
36 zmq2ds.param(
'addExpressRecoObjects', 1)
37 zmq2ds.param(
'inInitialize',
True)
38 zmq2ds.param(
'input', argv[2])
40 ds2zmq = b2.register_module(
'HLTDs2ZMQ')
41 ds2zmq.param(
'output', argv[3])
42 ds2zmq.param(
'raw',
False)
44 ds2zmq_phy = b2.register_module(
'HLTDs2ZMQ')
45 ds2zmq_phy.param(
'output', argv[4])
46 ds2zmq_phy.param(
'raw',
False)
48 output_root = b2.register_module(
'StorageRootOutput')
49 output_root.param(
'additionalDataDescription', {
"dataLevel":
"raw"})
50 output_root.param(
'compressionAlgorithm', int(argv[5]))
51 output_root.param(
'compressionLevel', int(argv[6]))
52 output_root.param(
'runType', argv[7])
53 output_root.param(
'HLTName', hltname)
54 output_root.param(
'nDisk', ndisk)
55 output_root.param(
'skipFirstEvent',
True)
56 output_root.param(
'outputSplitSize', 210)
58 hltskim = b2.register_module(
'TriggerSkim')
61 hltskim.param(
'triggerLines',
63 (
'software_trigger_cut&skim&accept_dstar_1', 1),
64 (
'software_trigger_cut&skim&accept_dstar_2', 2)
66 hltskim.param(
'resultOnMissing', 1)
67 hltskim.param(
'skipFirstEvent',
True)
68 hltskim.if_value(
">0", phypath, b2.AfterConditionPath.END)
70 output_root.set_property_flags(b2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED)
71 zmq2ds.set_property_flags(b2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED)
72 ds2zmq.set_property_flags(b2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED)
73 ds2zmq_phy.set_property_flags(b2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED)
74 hltskim.set_property_flags(b2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED)
78 main.add_module(zmq2ds)
81 if "hlttest" in argv[7].lower():
82 main.add_module(output_root)
84 main.add_module(ds2zmq)
85 main.add_module(hltskim)
86 phypath.add_module(ds2zmq_phy)
89 hbasf2.processNumbered(main, [],
False,
True)