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