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