70def scenario_fbdjnoshared(scenario, chainPartInd):
71 """produce a list with one element containing a HelperToolConfigTool.
72 This list will inialise a Gaudi ToolArray
73
74 The tree vector is [0, 0, 0, 0, 3, 3]
75 pos 0: root; pos 1 backward jet; pos 2 forward jet; pos 3: dijet;
76 pos 4: dijet j1; pos 5: dijet jet 2
77
78 There is a Repeated Condition configurer for each position
79
80 No conditions are filtered"""
81
82 assert scenario.startswith('FBDJNOSHARED'),\
83 'routing error, module %s: bad scenario %s' % (__name__, scenario)
84
85 m = rgx.match(scenario)
86 groupdict = m.groupdict()
87
88
89 repcondargs = []
90
91
92
93
94 condargs = get_fb_jet_args(groupdict, back=True)
95
96
97 repcondargs.append(RepeatedConditionParams(tree_id = 1,
98 tree_pid=0,
99 chainPartInd=chainPartInd,
100 condargs=condargs))
101
102
103 condargs = get_fb_jet_args(groupdict, back=False)
104
105 repcondargs.append(RepeatedConditionParams(tree_id = 2,
106 tree_pid=0,
107 chainPartInd=chainPartInd,
108 condargs=condargs))
109
110
111 condargs = get_dijet_args(groupdict)
112
113 repcondargs.append(RepeatedConditionParams(tree_id = 3,
114 tree_pid=0,
115 chainPartInd=-1,
116 condargs=condargs))
117
118
119 condargs = get_dijet_jet_args(groupdict, 'j1')
120 repcondargs.append(RepeatedConditionParams(tree_id = 4,
121 tree_pid=3,
122 chainPartInd=chainPartInd,
123 condargs=condargs))
124
125
126
127 condargs = get_dijet_jet_args(groupdict, 'j2')
128 repcondargs.append(RepeatedConditionParams(tree_id = 5,
129 tree_pid=3,
130 chainPartInd=chainPartInd,
131 condargs=condargs))
132
133
134
135 nconds = len(repcondargs)
136 filterparams = []
137 filterparam_inds = [-1 for i in range(nconds)]
138
139
140
141
142
143
144 treevec = make_treevec(repcondargs)
145 assert treevec == [0, 0, 0, 0, 3, 3]
146
147 helper_params = HelperConfigToolParams(treevec=treevec,
148 repcondargs=repcondargs,
149 filterparams=filterparams,
150 filterparam_inds=filterparam_inds)
151
152 assert len(repcondargs) == len(filterparam_inds)
153
154 return [helper_params]
155