12 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
15 from AthenaMonitoring
import AthMonitorCfgHelper
16 helper = AthMonitorCfgHelper(flags,
"InDetAlignmentMonitoringRun3")
18 from AthenaConfiguration.ComponentFactory
import CompFactory
19 from InDetConfig.InDetTrackSelectionToolConfig
import IDAlignMonTrackSelectionToolCfg
20 from AthenaMonitoring.FilledBunchFilterToolConfig
import FilledBunchFilterToolCfg
21 from AthenaConfiguration.Enums
import BeamType
23 if flags.DQ.Environment
in (
'online',
'tier0',
'tier0Raw'):
26 kwargsIDAlignMonGenericTracksAlg = {
27 'vxPrimContainerName' :
'PrimaryVertices',
28 'TrackName' :
'ExtendedTracks',
29 'TrackName2' :
'ExtendedTracks',
32 from InDetAlignmentMonitoringRun3.IDAlignMonGenericTracksAlgCfg
import IDAlignMonGenericTracksAlgCfg
33 inDetAlignMonGenericTracksAlg = helper.addAlgorithm(CompFactory.IDAlignMonGenericTracksAlg,
'IDAlignMonGenericTracksAlg',
35 for k, v
in kwargsIDAlignMonGenericTracksAlg.items():
36 setattr(inDetAlignMonGenericTracksAlg, k, v)
47 kwargsIDAlignMonResidualsAlg = {
48 'TrackName' :
'ExtendedTracks',
49 'TrackName2' :
'ExtendedTracks',
52 from InDetAlignmentMonitoringRun3.IDAlignMonResidualsAlgCfg
import IDAlignMonResidualsAlgCfg
53 inDetAlignMonResidualsAlg = helper.addAlgorithm(CompFactory.IDAlignMonResidualsAlg,
'IDAlignMonResidualsAlg',
56 for k, v
in kwargsIDAlignMonResidualsAlg.items():
57 setattr(inDetAlignMonResidualsAlg, k, v)
68 if flags.Beam.Type
is not BeamType.Cosmics:
69 kwargsIDAlignMonPVBiasesAlg = {
70 'vxContainerName' :
'PrimaryVertices',
73 from InDetAlignmentMonitoringRun3.IDAlignMonPVBiasesAlgCfg
import IDAlignMonPVBiasesAlgCfg
74 inDetAlignMonPVBiasesAlg = helper.addAlgorithm(CompFactory.IDAlignMonPVBiasesAlg,
'IDAlignMonPVBiasesAlg',
77 for k, v
in kwargsIDAlignMonPVBiasesAlg.items():
78 setattr(inDetAlignMonPVBiasesAlg, k, v)
80 from TrkConfig.TrkVertexFitterUtilsConfig
import TrackToVertexIPEstimatorCfg
81 TrackToVertexIPEstimator = acc.popToolsAndMerge(
84 inDetAlignMonPVBiasesAlg.TrackToVertexIPEstimator = TrackToVertexIPEstimator
90 acc.merge(helper.result())