188 from AthenaConfiguration.ComponentFactory
import CompFactory
190 "HLT_e17_lhvloose_L1EM15VHI",
191 "HLT_e5_etcut_L1EM3",
192 "HLT_e26_lhtight_L1EM22VHI",
193 "HLT_g20_loose_L1EM15"
196 '''Function to configures some algorithms in the monitoring system.'''
198 from AthenaMonitoring
import AthMonitorCfgHelper
199 helper = AthMonitorCfgHelper(inputFlags,
'TrigEgammaEmulationToolTestCfg')
201 test = helper.addAlgorithm( CompFactory.TrigEgammaEmulationToolTest(
"EmulationTest") )
203 EgammaMatchTool = CompFactory.TrigEgammaMatchingToolMT()
204 EgammaMatchTool.DeltaR=0.4
205 acc.addPublicTool(EgammaMatchTool)
207 emulator = TrigEgammaEmulationToolConfig(inputFlags,
"EmulatorTool")
210 emulator.TriggerList += triggerList
211 acc.addPublicTool(emulator.core())
212 test.MatchTool = EgammaMatchTool
213 test.EmulatorTool = emulator.core()
214 test.ElectronTriggerList = [
216 "HLT_e17_lhvloose_L1EM15VHI",
219 test.PhotonTriggerList = []
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)
231 return helper.result()