ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigMinBias
python
MinBiasCountersConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentFactory
import
CompFactory
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
from
AthenaConfiguration.AccumulatorCache
import
AccumulatorCache
6
from
TrigEDMConfig.TriggerEDM
import
recordable
7
8
9
@AccumulatorCache
10
def
SPCounterRecoAlgCfg
(flags):
11
acc = ComponentAccumulator()
12
from
TrigMinBias.TrigMinBiasMonitoring
import
SpCountMonitoring
13
alg = CompFactory.TrigCountSpacePoints(SpacePointsKey=recordable(
"HLT_SpacePointCounts"
),
14
MonTool=SpCountMonitoring(flags))
15
alg.ModulesToSkip=[403]
# see ATLHI-569
16
acc.addEventAlgo(alg)
17
return
acc
18
19
20
def
TrackCounterHypoAlgCfg
(flags):
21
""" Configuration for MinBias track counting algorithm """
22
23
acc = ComponentAccumulator()
24
from
TrigMinBias.TrigMinBiasMonitoring
import
TrackCountMonitoring
25
alg = CompFactory.TrackCountHypoAlg(name=
'TrackCountHypoAlg'
,
26
tracksKey=recordable(flags.Trigger.InDetTracking.minBias.tracks_IDTrig),
27
trackCountKey=recordable(
"HLT_TrackCount"
))
28
alg.MonTool = TrackCountMonitoring(flags, alg)
# monitoring tool configures itself using config of the hypo alg
29
acc.addEventAlgo(alg)
30
return
acc
31
32
33
def
PixelTrackCounterHypoAlgCfg
(flags):
34
""" Configuration for MinBias *Pixel* track counting algorithm """
35
36
acc = ComponentAccumulator()
37
from
TrigMinBias.TrigMinBiasMonitoring
import
TrackCountMonitoring
38
alg = CompFactory.TrackCountHypoAlg(name=
'PixelTrackCountHypoAlg'
,
39
tracksKey=recordable(flags.Trigger.InDetTracking.minBiasPixel.tracks_IDTrig),
40
trackCountKey=recordable(
"HLT_PixelTrackCount"
))
41
alg.MonTool = TrackCountMonitoring(flags, alg)
# monitoring tool configures itself using config of the hypo alg
42
acc.addEventAlgo(alg)
43
return
acc
44
45
46
if
__name__ ==
'__main__'
:
47
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
48
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles
49
50
flags = initConfigFlags()
51
flags.Input.Files = defaultTestFiles.RAW_RUN2
# or ESD or AOD or ...
52
flags.lock()
53
54
acc = ComponentAccumulator()
55
acc.merge(
SPCounterRecoAlgCfg
(flags))
56
acc.merge(
TrackCounterHypoAlgCfg
(flags))
57
acc.merge(
PixelTrackCounterHypoAlgCfg
(flags))
58
59
acc.printConfig(withDetails=
True
, summariseProps=
True
)
60
acc.wasMerged()
python.MinBiasCountersConfig.PixelTrackCounterHypoAlgCfg
PixelTrackCounterHypoAlgCfg(flags)
Definition
MinBiasCountersConfig.py:33
python.MinBiasCountersConfig.TrackCounterHypoAlgCfg
TrackCounterHypoAlgCfg(flags)
Definition
MinBiasCountersConfig.py:20
python.MinBiasCountersConfig.SPCounterRecoAlgCfg
SPCounterRecoAlgCfg(flags)
Definition
MinBiasCountersConfig.py:10
Generated on
for ATLAS Offline Software by
1.17.0