ATLAS Offline Software
Loading...
Searching...
No Matches
python.TrigGenericAlgsConfig Namespace Reference

Functions

 TimeBurnerCfg (flags, name="TimeBurner", **kwargs)
 TimeBurnerHypoToolGen (flags, chainDict)
 EndOfEventROIConfirmerAlgCfg (name)
 EndOfEventFilterAlgCfg (name, chainName)
 TrigEventInfoRecorderAlgCfg (flags, name, trigEventInfoKey, decoratePFlowInfo, decorateEMTopoInfo, renounceAll=False, primaryVertexInputName="HLT_IDVertex_FS", RhoKey_PFlow='HLT_Kt4EMPFlowEventShape', RhoKey_EMTopo='HLT_Kt4EMTopoEventShape')
 L1CorrelationMonitoringCfg (flags)
 L1CorrelationAlgCfg (flags, name='L1CorrelationAlg', **kw)

Variables

 _log = logging.getLogger( __name__ )

Function Documentation

◆ EndOfEventFilterAlgCfg()

EndOfEventFilterAlgCfg ( name,
chainName )

Definition at line 20 of file TrigGenericAlgsConfig.py.

20def EndOfEventFilterAlgCfg(name, chainName):
21 return CompFactory.EndOfEventFilterAlg(name, ChainName=chainName)
22

◆ EndOfEventROIConfirmerAlgCfg()

EndOfEventROIConfirmerAlgCfg ( name)

Definition at line 17 of file TrigGenericAlgsConfig.py.

17def EndOfEventROIConfirmerAlgCfg(name):
18 return CompFactory.EndOfEventROIConfirmerAlg(name)
19

◆ L1CorrelationAlgCfg()

L1CorrelationAlgCfg ( flags,
name = 'L1CorrelationAlg',
** kw )
Factory for L1CorrelationAlg.

The C++ algorithm scans the full recorded window per event (from l1a_idx).
We book monitoring histograms with a fixed range (no job option).

Definition at line 219 of file TrigGenericAlgsConfig.py.

219def L1CorrelationAlgCfg(flags, name='L1CorrelationAlg', **kw):
220 """
221 Factory for L1CorrelationAlg.
222
223 The C++ algorithm scans the full recorded window per event (from l1a_idx).
224 We book monitoring histograms with a fixed range (no job option).
225 """
226
227 # Build and attach the monitoring tool
228 kw.setdefault('MonTool', L1CorrelationMonitoringCfg(flags))
229
230 return CompFactory.L1CorrelationAlg(name, **kw)

◆ L1CorrelationMonitoringCfg()

L1CorrelationMonitoringCfg ( flags)

Definition at line 38 of file TrigGenericAlgsConfig.py.

38def L1CorrelationMonitoringCfg(flags):
39 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
40 mon = GenericMonitoringTool(flags, 'MonTool')
41
42 maxBC = 6 # fixed plotting half-range ±6 (CTP limit is 15)
43 nbin = 2*maxBC + 1
44 # 1-D delta BC histogram
45 mon.defineHistogram(
46 'BeforeAfterFlag', # ← variable list, positional
47 path = 'EXPERT',
48 type = 'TH1F',
49 title = 'L1 correlation; delta BC (relative to L1A); Events',
50 xbins = nbin,
51 xmin = -maxBC-0.5,
52 xmax = maxBC+0.5)
53
54 mon.defineHistogram(
55 'BeforeAfterFlag,otherType',
56 path = 'EXPERT',
57 type = 'TH2F',
58 title = 'delta BC vs Other-BC type; delta BC (relative to L1A); Other-BC type',
59 xbins = nbin, xmin = -maxBC-0.5, xmax = maxBC+0.5,
60 ybins = 8, ymin = -0.5, ymax = 7.5)
61
62 # 2-D type matrix (same as before – just remove var=)
63 mon.defineHistogram(
64 'l1Accept,otherType',
65 path = 'EXPERT',
66 type = 'TH2F',
67 title = 'Type matrix ; L1A type ; Other-BC type',
68 xbins = 8, xmin = -0.5, xmax = 7.5,
69 ybins = 8, ymin = -0.5, ymax = 7.5)
70
71 mon.defineHistogram(
72 'BeforeAfterFlag,l1Accept',
73 path = 'EXPERT',
74 type = 'TH2F',
75 title = 'delta BC vs L1A type; delta BC (relative); L1A type',
76 xbins = nbin, xmin = -maxBC-0.5, xmax = maxBC+0.5,
77 ybins = 8, ymin = -0.5, ymax = 7.5)
78
79 # BeforeOffset: Distance in BCs to the first earlier fired BC
80 mon.defineHistogram(
81 'BeforeOffset',
82 path = 'EXPERT',
83 type = 'TH1F',
84 title = 'Offset of earlier BC trigger relative to L1A; delta BC before; Events',
85 xbins = maxBC,
86 xmin = -0.5,
87 xmax = maxBC + 0.5
88 )
89
90 # AfterOffset: Distance in BCs to the first later fired BC
91 mon.defineHistogram(
92 'AfterOffset',
93 path = 'EXPERT',
94 type = 'TH1F',
95 title = 'Offset of later BC trigger relative to L1A; delta BC after; Events',
96 xbins = maxBC,
97 xmin = -0.5,
98 xmax = maxBC + 0.5
99 )
100
101 # OtherTypeBefore: Trigger type (1–7) of the earlier BC
102 mon.defineHistogram(
103 'OtherTypeBefore',
104 path = 'EXPERT',
105 type = 'TH1F',
106 title = 'Trigger type of the earlier neighbor BC; Type code; Events',
107 xbins = 8,
108 xmin = -0.5,
109 xmax = 7.5
110 )
111
112 # OtherTypeAfter: Trigger type (1–7) of the later BC
113 mon.defineHistogram(
114 'OtherTypeAfter',
115 path = 'EXPERT',
116 type = 'TH1F',
117 title = 'Trigger type of the later neighbor BC; Type code; Events',
118 xbins = 8,
119 xmin = -0.5,
120 xmax = 7.5
121 )
122
123 # Correlation between early/late BC types
124 mon.defineHistogram(
125 'OtherTypeBefore,OtherTypeAfter',
126 path = 'EXPERT',
127 type = 'TH2F',
128 title = 'Trigger type before vs after; Earlier BC type; Later BC type',
129 xbins = 8, xmin = -0.5, xmax = 7.5,
130 ybins = 8, ymin = -0.5, ymax = 7.5
131 )
132
133 # Time structure of symmetric/asymmetric cases
134 mon.defineHistogram(
135 'BeforeOffset,AfterOffset',
136 path = 'EXPERT',
137 type = 'TH2F',
138 title = 'Offset before vs after; delta BC before; delta BC after',
139 xbins = maxBC, xmin = -0.5, xmax = maxBC + 0.5,
140 ybins = maxBC, ymin = -0.5, ymax = maxBC + 0.5
141 )
142
143 # delta BC × CTPID occupancy maps (TBP)
144 mon.defineHistogram(
145 'DeltaBCAll,CTPIDAll;MistimeMap_TBP',
146 path='EXPERT', type='TH2F',
147 title='TBP occupancy vs delta BC and CTPID;delta BC (relative to L1A);CTPID',
148 xbins=2*maxBC+1, xmin=-maxBC-0.5, xmax=maxBC+0.5,
149 ybins=512, ymin=-0.5, ymax=511.5
150 )
151
152 # TAP
153 mon.defineHistogram(
154 'DeltaBCAll_TAP,CTPIDAll_TAP;MistimeMap_TAP',
155 path='EXPERT', type='TH2F',
156 title='TAP occupancy vs delta BC and CTPID;delta BC (relative to L1A);CTPID',
157 xbins=2*maxBC+1, xmin=-maxBC-0.5, xmax=maxBC+0.5,
158 ybins=512, ymin=-0.5, ymax=511.5
159 )
160
161 # 512×512 pair maps: CTPID(BC=0) vs CTPID(BC=±1, ±2)
162 mon.defineHistogram(
163 'CTPID0tbp_m2,CTPIDtbp_m2;PairMap_TBP_DeltaBCm2',
164 path='EXPERT', type='TH2F',
165 title='TBP: CTPID at BC 0 vs CTPID at BC=-2;CTPID at BC=0;CTPID at BC=-2',
166 xbins=512, xmin=-0.5, xmax=511.5,
167 ybins=512, ymin=-0.5, ymax=511.5
168 )
169 mon.defineHistogram(
170 'CTPID0tbp_m1,CTPIDtbp_m1;PairMap_TBP_DeltaBCm1',
171 path='EXPERT', type='TH2F',
172 title='TBP: CTPID at BC 0 vs CTPID at BC=-1;CTPID at BC=0;CTPID at BC=-1',
173 xbins=512, xmin=-0.5, xmax=511.5,
174 ybins=512, ymin=-0.5, ymax=511.5
175 )
176 mon.defineHistogram(
177 'CTPID0tbp_p1,CTPIDtbp_p1;PairMap_TBP_DeltaBCp1',
178 path='EXPERT', type='TH2F',
179 title='TBP: CTPID at BC 0 vs CTPID at BC=+1;CTPID at BC=0;CTPID at BC=+1',
180 xbins=512, xmin=-0.5, xmax=511.5,
181 ybins=512, ymin=-0.5, ymax=511.5
182 )
183 mon.defineHistogram(
184 'CTPID0tbp_p2,CTPIDtbp_p2;PairMap_TBP_DeltaBCp2',
185 path='EXPERT', type='TH2F',
186 title='TBP: CTPID at BC 0 vs CTPID at BC=+2;CTPID at BC=0;CTPID at BC=+2',
187 xbins=512, xmin=-0.5, xmax=511.5,
188 ybins=512, ymin=-0.5, ymax=511.5
189 )
190 # 512×512 TAP pair maps
191 mon.defineHistogram(
192 'CTPID0tap_m2,CTPIDtap_m2;PairMap_TAP_DeltaBCm2',
193 path='EXPERT', type='TH2F',
194 title='TAP: CTPID at BC 0 vs CTPID at BC=-2;CTPID at BC=0;CTPID at BC=-2',
195 xbins=512, xmin=-0.5, xmax=511.5, ybins=512, ymin=-0.5, ymax=511.5
196 )
197 mon.defineHistogram(
198 'CTPID0tap_m1,CTPIDtap_m1;PairMap_TAP_DeltaBCm1',
199 path='EXPERT', type='TH2F',
200 title='TAP: CTPID at BC 0 vs CTPID at BC=-1;CTPID at BC=0;CTPID at BC=-1',
201 xbins=512, xmin=-0.5, xmax=511.5, ybins=512, ymin=-0.5, ymax=511.5
202 )
203 mon.defineHistogram(
204 'CTPID0tap_p1,CTPIDtap_p1;PairMap_TAP_DeltaBCp1',
205 path='EXPERT', type='TH2F',
206 title='TAP: CTPID at BC 0 vs CTPID at BC=+1;CTPID at BC=0;CTPID at BC=+1',
207 xbins=512, xmin=-0.5, xmax=511.5, ybins=512, ymin=-0.5, ymax=511.5
208 )
209 mon.defineHistogram(
210 'CTPID0tap_p2,CTPIDtap_p2;PairMap_TAP_DeltaBCp2',
211 path='EXPERT', type='TH2F',
212 title='TAP: CTPID at BC 0 vs CTPID at BC=+2;CTPID at BC=0;CTPID at BC=+2',
213 xbins=512, xmin=-0.5, xmax=511.5, ybins=512, ymin=-0.5, ymax=511.5
214 )
215
216
217 return mon
218

◆ TimeBurnerCfg()

TimeBurnerCfg ( flags,
name = "TimeBurner",
** kwargs )

Definition at line 9 of file TrigGenericAlgsConfig.py.

9def TimeBurnerCfg(flags, name="TimeBurner", **kwargs):
10 return CompFactory.TimeBurner(name, **kwargs)
11

◆ TimeBurnerHypoToolGen()

TimeBurnerHypoToolGen ( flags,
chainDict )

Definition at line 12 of file TrigGenericAlgsConfig.py.

12def TimeBurnerHypoToolGen(flags, chainDict):
13 # Dummy HypoTool (it is not even called by TimeBurner)
14 return CompFactory.TrigGenericHypoTool(chainDict['chainName'],
15 PassString = "")
16

◆ TrigEventInfoRecorderAlgCfg()

TrigEventInfoRecorderAlgCfg ( flags,
name,
trigEventInfoKey,
decoratePFlowInfo,
decorateEMTopoInfo,
renounceAll = False,
primaryVertexInputName = "HLT_IDVertex_FS",
RhoKey_PFlow = 'HLT_Kt4EMPFlowEventShape',
RhoKey_EMTopo = 'HLT_Kt4EMTopoEventShape' )

Definition at line 23 of file TrigGenericAlgsConfig.py.

23def TrigEventInfoRecorderAlgCfg(flags, name, trigEventInfoKey, decoratePFlowInfo, decorateEMTopoInfo, renounceAll=False, primaryVertexInputName="HLT_IDVertex_FS", RhoKey_PFlow = 'HLT_Kt4EMPFlowEventShape', RhoKey_EMTopo = 'HLT_Kt4EMTopoEventShape'):
24 acc = ComponentAccumulator()
25 alg = CompFactory.TrigEventInfoRecorderAlg(name,
26 trigEventInfoKey = trigEventInfoKey,
27 decoratePFlowInfo = decoratePFlowInfo,
28 decorateEMTopoInfo = decorateEMTopoInfo,
29 renounceAll = renounceAll,
30 primaryVertexInputName = primaryVertexInputName,
31 RhoKey_PFlow = RhoKey_PFlow,
32 RhoKey_EMTopo = RhoKey_EMTopo,
33 )
34 acc.addEventAlgo(alg, primary=True)
35 return acc
36
37

Variable Documentation

◆ _log

python.TrigGenericAlgsConfig._log = logging.getLogger( __name__ )
protected

Definition at line 6 of file TrigGenericAlgsConfig.py.