The Gaudi Framework  master (37c0b60a)
MultiMergers.py
Go to the documentation of this file.
1 
11 from Configurables import ApplicationMgr, EvtStoreSvc
12 from Configurables import Gaudi__TestSuite__IntDataProducer as IntDataProducer
13 from Configurables import is2ff_merger, is2ff_merger_filter
14 
15 int_a = IntDataProducer("IntAProducer", Value=2, OutputLocation="/Event/IntA")
16 int_b = IntDataProducer("IntBProducer", Value=3, OutputLocation="/Event/IntB")
17 merger = is2ff_merger(InputInts=[str(int_a.OutputLocation), str(int_b.OutputLocation)])
18 # This filter should set its status to 'passed' as 2 * 2 * 3 > 10
19 merger_filter_passing = is2ff_merger_filter(
20  "MergerFilterPassing",
21  InputInts=[
22  str(int_a.OutputLocation),
23  str(int_a.OutputLocation),
24  str(int_b.OutputLocation),
25  ],
26  O1="/Event/MF/Float1",
27  O2="/Event/MF/Float2",
28 )
29 # This filter should set its status to 'failed' as 2 * 3 < 10
30 merger_filter_failing = is2ff_merger_filter(
31  "MergerFilterFailing",
32  InputInts=[
33  str(int_a.OutputLocation),
34  str(int_b.OutputLocation),
35  ],
36  O1="/Event/MFSwapped/Float1",
37  O2="/Event/MFSwapped/Float2",
38 )
39 
40 app = ApplicationMgr(
41  EvtMax=2,
42  EvtSel="NONE",
43  ExtSvc=[EvtStoreSvc("EventDataSvc")],
44  HistogramPersistency="NONE",
45  TopAlg=[
46  int_a,
47  int_b,
48  merger,
49  merger_filter_passing,
50  merger_filter_failing,
51  ],
52 )