186def TrigEgammaEmulationToolTestConfig(inputFlags):
187
188 from AthenaConfiguration.ComponentFactory import CompFactory
189 triggerList = [
190 "HLT_e17_lhvloose_L1EM15VHI",
191 "HLT_e5_etcut_L1EM3",
192 "HLT_e26_lhtight_L1EM22VHI",
193 "HLT_g20_loose_L1EM15"
194 ]
195
196 '''Function to configures some algorithms in the monitoring system.'''
197
198 from AthenaMonitoring import AthMonitorCfgHelper
199 helper = AthMonitorCfgHelper(inputFlags,'TrigEgammaEmulationToolTestCfg')
200
201 test = helper.addAlgorithm( CompFactory.TrigEgammaEmulationToolTest("EmulationTest") )
202 acc = helper.resobj
203 EgammaMatchTool = CompFactory.TrigEgammaMatchingToolMT()
204 EgammaMatchTool.DeltaR=0.4
205 acc.addPublicTool(EgammaMatchTool)
206
207 emulator = TrigEgammaEmulationToolConfig(inputFlags, "EmulatorTool")
208 emulator.configure()
209
210 emulator.TriggerList += triggerList
211 acc.addPublicTool(emulator.core())
212 test.MatchTool = EgammaMatchTool
213 test.EmulatorTool = emulator.core()
214 test.ElectronTriggerList = [
215
216 "HLT_e17_lhvloose_L1EM15VHI",
217
218 ]
219 test.PhotonTriggerList = []
220
221
222 basepath = '/HLT/EgammaMon'
223 for trigger in triggerList:
224 cutLabels = ['L1Calo','L2Calo','L2','EFCalo','HLT']
225 monGroup = helper.addGroup( test, trigger, basepath+'/EgammaEmulationTest/'+trigger )
226 monGroup.defineHistogram("decisions", type='TH1I', path='', title="Event Selection; Cut ; Count",
227 xbins=len(cutLabels), xmin=0, xmax=len(cutLabels), xlabels=cutLabels)
228 monGroup.defineHistogram("emulations", type='TH1I', path='', title="Event Selection; Cut ; Count",
229 xbins=len(cutLabels), xmin=0, xmax=len(cutLabels), xlabels=cutLabels)
230
231 return helper.result()
232
233
234