ATLAS Offline Software
Loading...
Searching...
No Matches
MinBiasCountersConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5from AthenaConfiguration.AccumulatorCache import AccumulatorCache
6from TrigEDMConfig.TriggerEDM import recordable
7
8
9@AccumulatorCache
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
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
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
46if __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()