ATLAS Offline Software
Functions
InDetAlignmentMonitoringRun3Config Namespace Reference

Functions

def InDetAlignmentMonitoringRun3Config (flags)
 

Function Documentation

◆ InDetAlignmentMonitoringRun3Config()

def InDetAlignmentMonitoringRun3Config.InDetAlignmentMonitoringRun3Config (   flags)
                                             #

InDetAlignmentManager top algorithm # #

Definition at line 11 of file InDetAlignmentMonitoringRun3Config.py.

12  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
13  acc = ComponentAccumulator()
14 
15  from AthenaMonitoring import AthMonitorCfgHelper
16  helper = AthMonitorCfgHelper(flags, "InDetAlignmentMonitoringRun3")
17 
18  from AthenaConfiguration.ComponentFactory import CompFactory
19  from InDetConfig.InDetTrackSelectionToolConfig import IDAlignMonTrackSelectionToolCfg
20  from AthenaMonitoring.FilledBunchFilterToolConfig import FilledBunchFilterToolCfg
21  from AthenaConfiguration.Enums import BeamType
22 
23  if flags.DQ.Environment in ('online', 'tier0', 'tier0Raw'):
24 
25 
26  kwargsIDAlignMonGenericTracksAlg = {
27  'vxPrimContainerName' : 'PrimaryVertices', #InDetKeys.xAODVertexContainer(),
28  'TrackName' : 'ExtendedTracks', #Until new config ready
29  'TrackName2' : 'ExtendedTracks', #Until new config ready
30  }
31 
32  from InDetAlignmentMonitoringRun3.IDAlignMonGenericTracksAlgCfg import IDAlignMonGenericTracksAlgCfg
33  inDetAlignMonGenericTracksAlg = helper.addAlgorithm(CompFactory.IDAlignMonGenericTracksAlg, 'IDAlignMonGenericTracksAlg',
34  addFilterTools = [FilledBunchFilterToolCfg(flags)])
35  for k, v in kwargsIDAlignMonGenericTracksAlg.items():
36  setattr(inDetAlignMonGenericTracksAlg, k, v)
37 
38  inDetAlignMonGenericTracksAlg.TrackSelectionTool = acc.popToolsAndMerge(IDAlignMonTrackSelectionToolCfg(flags))
39 
40  IDAlignMonGenericTracksAlgCfg(helper, inDetAlignMonGenericTracksAlg, **kwargsIDAlignMonGenericTracksAlg)
41 
42 
43 
44 
45 
46 
47  kwargsIDAlignMonResidualsAlg = {
48  'TrackName' : 'ExtendedTracks', #Until new config ready
49  'TrackName2' : 'ExtendedTracks', #Until new config ready
50  }
51 
52  from InDetAlignmentMonitoringRun3.IDAlignMonResidualsAlgCfg import IDAlignMonResidualsAlgCfg
53  inDetAlignMonResidualsAlg = helper.addAlgorithm(CompFactory.IDAlignMonResidualsAlg, 'IDAlignMonResidualsAlg',
54  addFilterTools = [FilledBunchFilterToolCfg(flags)])
55 
56  for k, v in kwargsIDAlignMonResidualsAlg.items():
57  setattr(inDetAlignMonResidualsAlg, k, v)
58 
59  inDetAlignMonResidualsAlg.TrackSelectionTool = acc.popToolsAndMerge(IDAlignMonTrackSelectionToolCfg(flags))
60 
61  IDAlignMonResidualsAlgCfg(helper, inDetAlignMonResidualsAlg, **kwargsIDAlignMonResidualsAlg)
62 
63 
64 
65 
66 
67 
68  if flags.Beam.Type is not BeamType.Cosmics:
69  kwargsIDAlignMonPVBiasesAlg = {
70  'vxContainerName' : 'PrimaryVertices',
71  }
72 
73  from InDetAlignmentMonitoringRun3.IDAlignMonPVBiasesAlgCfg import IDAlignMonPVBiasesAlgCfg
74  inDetAlignMonPVBiasesAlg = helper.addAlgorithm(CompFactory.IDAlignMonPVBiasesAlg, 'IDAlignMonPVBiasesAlg',
75  addFilterTools = [FilledBunchFilterToolCfg(flags)])
76 
77  for k, v in kwargsIDAlignMonPVBiasesAlg.items():
78  setattr(inDetAlignMonPVBiasesAlg, k, v)
79 
80  from TrkConfig.TrkVertexFitterUtilsConfig import TrackToVertexIPEstimatorCfg
81  TrackToVertexIPEstimator = acc.popToolsAndMerge(
82  TrackToVertexIPEstimatorCfg(flags, name='TrackToVertexIPEstimator'))
83 
84  inDetAlignMonPVBiasesAlg.TrackToVertexIPEstimator = TrackToVertexIPEstimator
85 
86  IDAlignMonPVBiasesAlgCfg(helper, inDetAlignMonPVBiasesAlg, **kwargsIDAlignMonPVBiasesAlg)
87 
88 
89 
90  acc.merge(helper.result())
91  return acc
python.FilledBunchFilterToolConfig.FilledBunchFilterToolCfg
def FilledBunchFilterToolCfg(AthConfigFlags flags)
Definition: FilledBunchFilterToolConfig.py:9
IDAlignMonResidualsAlgCfg
Definition: IDAlignMonResidualsAlgCfg.py:1
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrkVertexFitterUtilsConfig.TrackToVertexIPEstimatorCfg
def TrackToVertexIPEstimatorCfg(flags, name='TrackToVertexIPEstimator', **kwargs)
Definition: TrkVertexFitterUtilsConfig.py:48
InDetAlignmentMonitoringRun3Config.InDetAlignmentMonitoringRun3Config
def InDetAlignmentMonitoringRun3Config(flags)
Definition: InDetAlignmentMonitoringRun3Config.py:11
python.InDetTrackSelectionToolConfig.IDAlignMonTrackSelectionToolCfg
def IDAlignMonTrackSelectionToolCfg(flags, name="IDAlignMonTrackSelectionTool", **kwargs)
Definition: InDetTrackSelectionToolConfig.py:87
IDAlignMonPVBiasesAlgCfg
Definition: IDAlignMonPVBiasesAlgCfg.py:1
IDAlignMonGenericTracksAlgCfg
Definition: IDAlignMonGenericTracksAlgCfg.py:1