ATLAS Offline Software
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
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 
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 
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
def PixelTrackCounterHypoAlgCfg(flags)
Definition: MinBiasCountersConfig.py:33
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MinBiasCountersConfig.SPCounterRecoAlgCfg
def SPCounterRecoAlgCfg(flags)
Definition: MinBiasCountersConfig.py:10
python.TrigMinBiasMonitoring.TrackCountMonitoring
def TrackCountMonitoring(flags, hypoAlg)
Definition: TrigMinBiasMonitoring.py:48
python.MinBiasCountersConfig.TrackCounterHypoAlgCfg
def TrackCounterHypoAlgCfg(flags)
Definition: MinBiasCountersConfig.py:20
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.TriggerEDM.recordable
def recordable(arg, runVersion=3)
Definition: TriggerEDM.py:34
python.TrigMinBiasMonitoring.SpCountMonitoring
def SpCountMonitoring(flags)
Definition: TrigMinBiasMonitoring.py:3