ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTRTHTHhypoTool.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
5
6def _IncTool(flags, name):
7
8 monTool = GenericMonitoringTool(flags, "MonTool_"+name,
9 HistPath = 'TrigTRTHTHhypo/'+name)
10 monTool.defineHistogram('HTRatioRoad', type='TH1F', path='EXPERT', title="TrigTRTHTH Hypo HTRatioRoad", xbins=10, xmin=0.0, xmax=1.0)
11 monTool.defineHistogram('HTRatioWedge', type='TH1F', path='EXPERT', title="TrigTRTHTH Hypo HTRatioWedge", xbins=10, xmin=0.0, xmax=1.0)
12 monTool.defineHistogram('TRTHTHitsRoad', type='TH1F', path='EXPERT', title="TrigTRTHTH Hypo TRTHTHitsRoad", xbins=100, xmin=0, xmax=100)
13 monTool.defineHistogram('TRTHTHitsWedge', type='TH1F', path='EXPERT', title="TrigTRTHTH Hypo TRTHTHitsWedge", xbins=100, xmin=0, xmax=100)
14
15 tool = CompFactory.TrigTRTHTHhypoTool( name,
16 AcceptAll = False,
17 MinTRTHTHitsRoad = 20,
18 MinHTRatioRoad = 0.4,
19 MinTRTHTHitsWedge = 30,
20 MinHTRatioWedge = 0.5,
21 DoWedge = True,
22 DoRoad = False,
23 MonTool = monTool )
24 return tool
25
26def TrigTRTHTHhypoToolFromDict( flags, chainDict ):
27 """ Use menu decoded chain dictionary to configure the tool """
28 name = chainDict['chainName']
29 return _IncTool( flags, name )
TrigTRTHTHhypoToolFromDict(flags, chainDict)