ATLAS Offline Software
Loading...
Searching...
No Matches
ZFinderAlgConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from TrigEDMConfig.TriggerEDM import recordable
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5from AthenaConfiguration.ComponentFactory import CompFactory
6
8 acc = ComponentAccumulator()
9 TrigZFinder = CompFactory.TrigZFinder
10 tools = [TrigZFinder("HMT_TripletPixOnly", TripletMode=1, MinZBinSize=3.5, PhiBinSize=0.50, UseOnlyPixels=True, MaxLayer=3)]
11
12
13 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
14 monTool = GenericMonitoringTool(flags, 'MonTool')
15
16 monTool.defineHistogram( 'ZVertex', path='EXPERT', type='TH1F', title='Vertex Z distribution;z [mm];Entries',
17 xbins=400, xmin=-200, xmax=200 )
18 monTool.defineHistogram( 'ZVertexWeight', path='EXPERT', type='TH1F', title='Vertex Weight;Weight;Entries',
19 xbins=100, xmin=0.0, xmax=100 )
20
21
22 MinBiasZFinderAlg = CompFactory.TrigZFinderAlg("TrigZFinderAlg",
23 vertexKey=recordable("HLT_vtx_z"),
24 MonTool = monTool,
25 ZFinderTools = tools)
26
27
28 acc.addEventAlgo(MinBiasZFinderAlg)
29 return acc