ATLAS Offline Software
Functions | Variables
TrigTRTMonitoring Namespace Reference

Functions

def TrigTRTMonCfg (flags)
 

Variables

 log
 
 flags
 
 Environment
 
 NumConcurrentEvents
 
 HISTFileName
 
 cfg
 
 OutputLevel
 
 withDetails
 

Function Documentation

◆ TrigTRTMonCfg()

def TrigTRTMonitoring.TrigTRTMonCfg (   flags)

Definition at line 14 of file TrigTRTMonitoring.py.

14 def TrigTRTMonCfg(flags):
15  from AthenaMonitoring import AthMonitorCfgHelper
16  monConfig = AthMonitorCfgHelper(flags, 'TRTMonitoring')
17 
18  from AthenaConfiguration.ComponentFactory import CompFactory
19  alg = monConfig.addAlgorithm(CompFactory.TRTMonitoringAlg, 'TRTMonitoringAlg')
20 
21  from InDetConfig.InDetTrackSelectionToolConfig import InDetTrackSelectionTool_LoosePrimary_Cfg
22  trkSel = monConfig.resobj.popToolsAndMerge(InDetTrackSelectionTool_LoosePrimary_Cfg(flags))
23  alg.TrackSelectionTool = trkSel
24 
25  from TrigConfigSvc.TriggerConfigAccess import getHLTMonitoringAccess
26  monAccess = getHLTMonitoringAccess(flags)
27  chains = getMinBiasChains(monAccess, 'HLT_noalg_L1TRT_FILLED|HLT_mb_excl_1trk5_pt1_hi_FgapAC5_L1TRT_VjTE20|HLT_noalg_L1TRT_VjTE50')
28 
29  ref_chains = ['HLT_mb_sptrk_L1ZDC_XOR_VjTE200', 'HLT_mb_sptrk_hi_FgapC5_L1VjTE200', 'HLT_mb_sptrk_hi_FgapA5_L1VjTE200',
30  'HLT_noalg_L1RD0_FILLED', 'HLT_mb_sptrk_L1VTE50',
31  'HLT_mb_sptrk_hi_FgapA5_L1VZDC_A_ZDC_C_VTE200', 'HLT_mb_sptrk_hi_FgapC5_L1ZDC_A_VZDC_C_VTE200']
32 
33  log.info(f'Monitoring {len(chains)} L1TRT chain(s)')
34  log.debug([name for name, _ in chains])
35 
36  alg.triggerList = [name for name, _ in chains]
37  alg.refTriggerList = ref_chains
38 
39  for chain, group in chains:
40  hiTRTGroup = monConfig.addGroup(alg, f'{chain}', topPath=f'HLT/MinBiasMon/{group}/L1TRT/{chain}/')
41 
42  # 1D histograms
43  hiTRTGroup.defineHistogram('n_trk', title='Track multiplicity;N_{trk};Events / 1', xbins=20, xmin=-0.5, xmax=19.5)
44  hiTRTGroup.defineHistogram('lead_trk_pT', title='Leading track p_{T};p_{T}^{lead} [GeV];Events / 100 MeV', xbins=40, xmin=0, xmax=4)
45 
46  # TEfficiency
47  hiTRTGroup.defineHistogram(f'effPassed,n_trk;{chain}_eff_ntrk', type='TEfficiency',
48  title='L1 TRT efficiency;N_{trk};Efficiency', xbins=20, xmin=-0.5, xmax=19.5)
49  hiTRTGroup.defineHistogram(f'effPassed,lead_trk_pT;{chain}_eff_pT', type='TEfficiency',
50  title='L1 TRT efficiency;p_{T}^{lead} [GeV];Efficiency', xbins=40, xmin=0, xmax=4)
51 
52  return monConfig.result()
53 
54 

Variable Documentation

◆ cfg

TrigTRTMonitoring.cfg

Definition at line 73 of file TrigTRTMonitoring.py.

◆ Environment

TrigTRTMonitoring.Environment

Definition at line 59 of file TrigTRTMonitoring.py.

◆ flags

TrigTRTMonitoring.flags

Definition at line 58 of file TrigTRTMonitoring.py.

◆ HISTFileName

TrigTRTMonitoring.HISTFileName

Definition at line 62 of file TrigTRTMonitoring.py.

◆ log

TrigTRTMonitoring.log

Definition at line 11 of file TrigTRTMonitoring.py.

◆ NumConcurrentEvents

TrigTRTMonitoring.NumConcurrentEvents

Definition at line 60 of file TrigTRTMonitoring.py.

◆ OutputLevel

TrigTRTMonitoring.OutputLevel

Definition at line 79 of file TrigTRTMonitoring.py.

◆ withDetails

TrigTRTMonitoring.withDetails

Definition at line 80 of file TrigTRTMonitoring.py.

python.TriggerConfigAccess.getHLTMonitoringAccess
HLTMonitoringAccess getHLTMonitoringAccess(flags=None)
Definition: TriggerConfigAccess.py:256
python.InDetTrackSelectionToolConfig.InDetTrackSelectionTool_LoosePrimary_Cfg
def InDetTrackSelectionTool_LoosePrimary_Cfg(flags, name="InDetTrackSelectionTool_LoosePrimary", **kwargs)
Configs based on CutLevel LoosePrimary #####.
Definition: InDetTrackSelectionToolConfig.py:54
TrigTRTMonitoring.TrigTRTMonCfg
def TrigTRTMonCfg(flags)
Definition: TrigTRTMonitoring.py:14
utils.getMinBiasChains
def getMinBiasChains(monAccess, wildcard='')
Definition: Trigger/TrigMonitoring/TrigMinBiasMonitoring/python/utils.py:7