ATLAS Offline Software
Functions | Variables
TRTCalibrationMgrConfig Namespace Reference

Functions

def TRT_CalibrationMgrCfg (flags, name='TRT_CalibrationMgr', calibconstants='', Hittuple='', caltag='', **kwargs)
 
def TRT_StrawStatusCfg (flags, name='InDet_TRT_StrawStatus', **kwargs)
 
def CalibConfig (flags)
 

Variables

 parser
 
 type
 
 int
 
 default
 
 help
 
 nargs
 
 action
 
 args = parser.parse_args()
 
 flags = initConfigFlags()
 
 Files
 
 HISTFileName
 
 MaxEvents
 
 AtlasVersion
 
 GlobalTag
 
 acc = MainServicesCfg(flags)
 

Detailed Description

Define methods to construct a configured TRT R-t calibration algorithm

Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ CalibConfig()

def TRTCalibrationMgrConfig.CalibConfig (   flags)

Definition at line 74 of file TRTCalibrationMgrConfig.py.

74 def CalibConfig(flags):
75 
76  from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags
77  setupDetectorFlags(flags, ['ID'], toggle_geometry=True)
78 
79  # Reco
80  flags.Reco.EnableTau=False
81  flags.Reco.EnableCombinedMuon=False
82  flags.Reco.EnableMet=False
83  flags.Reco.EnableTrigger = False
84  flags.Reco.EnableEgamma=False
85  flags.Reco.EnableCaloRinger=False
86  flags.Reco.EnableCaloExtension=False
87 
88  # Detector
89  flags.Detector.EnableMuon=False
90  flags.Detector.EnableCalo=False
91 
92  # DQ
93  flags.DQ.doMonitoring=False
94  flags.DQ.Steering.InDet.doPerfMon=False
95  flags.DQ.Steering.InDet.doGlobalMon=False
96  flags.DQ.Steering.doPixelMon=False
97  flags.DQ.Steering.doSCTMon=False
98 
99  # Tracking
100  flags.Tracking.doCaloSeededBrem=False
101  flags.Tracking.doCaloSeededAmbi=False
102  flags.Tracking.doTRTSegments=False
103  flags.Tracking.doTRTStandalone=False
104  flags.Tracking.doBackTracking=False
105 
106 
107 
108 
109 

◆ TRT_CalibrationMgrCfg()

def TRTCalibrationMgrConfig.TRT_CalibrationMgrCfg (   flags,
  name = 'TRT_CalibrationMgr',
  calibconstants = '',
  Hittuple = '',
  caltag = '',
**  kwargs 
)

Definition at line 9 of file TRTCalibrationMgrConfig.py.

9 def TRT_CalibrationMgrCfg(flags,name='TRT_CalibrationMgr',calibconstants='', Hittuple='', caltag='' ,**kwargs) :
10  acc = ComponentAccumulator()
11 
12  kwargs.setdefault("DoCalibrate",False)
13  kwargs.setdefault("DoRefit",False)
14 
15  if "AlignTrkTools" not in kwargs:
16  from TRT_CalibTools.TRTCalibToolsConfig import (
17  FillAlignTrkInfoCfg, FillAlignTRTHitsCfg)
18  kwargs.setdefault("AlignTrkTools", [
19  acc.addPublicTool(acc.popToolsAndMerge(FillAlignTrkInfoCfg(flags))),
20  acc.addPublicTool(acc.popToolsAndMerge(FillAlignTRTHitsCfg(flags))) ] )
21 
22  if "FitTools" not in kwargs:
23  from TRT_CalibTools.TRTCalibToolsConfig import FitToolCfg
24  kwargs.setdefault("FitTools", [acc.popToolsAndMerge(FitToolCfg(flags))])
25 
26  if "TrackFitter" not in kwargs:
27  from TrkConfig.CommonTrackFitterConfig import InDetTrackFitterCfg
28  kwargs.setdefault("TrackFitter", acc.popToolsAndMerge(InDetTrackFitterCfg(flags)))
29 
30  if "TrackSelectorTool" not in kwargs:
31  from InDetConfig.InDetTrackSelectorToolConfig import TRT_InDetDetailedTrackSelectorToolCfg
32  kwargs.setdefault("TrackSelectorTool", acc.popToolsAndMerge(TRT_InDetDetailedTrackSelectorToolCfg(flags)))
33 
34  if "TRTCalibrator" not in kwargs:
35  from TRT_CalibTools.TRTCalibratorConfig import TRTCalibratorCfg
36 
37  if not Hittuple:
38  kwargs.setdefault("TRTCalibrator",[acc.addPublicTool(acc.popToolsAndMerge(TRTCalibratorCfg(flags)))])
39  else:
40  # This changes the name of the input file used for the calibrator tool
41  kwargs.setdefault("TRTCalibrator",[acc.addPublicTool(acc.popToolsAndMerge(TRTCalibratorCfg(flags, Hittuple=Hittuple, calTag=caltag)))])
42 
43 
44 
45  # if a text file is in the arguments, use the constants in that instead of the DB
46  if calibconstants:
47 
48  from TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig import TRTCondWriteCfg
49  acc.merge(TRTCondWriteCfg(flags,CalibInputFile=calibconstants))
50 
51  # add this algorithm to the configuration accumulator
52  acc.addEventAlgo(CompFactory.TRTCalibrationMgr(name, **kwargs))
53 
54  return acc
55 
56 

◆ TRT_StrawStatusCfg()

def TRTCalibrationMgrConfig.TRT_StrawStatusCfg (   flags,
  name = 'InDet_TRT_StrawStatus',
**  kwargs 
)

Definition at line 57 of file TRTCalibrationMgrConfig.py.

57 def TRT_StrawStatusCfg(flags,name='InDet_TRT_StrawStatus',**kwargs) :
58 
59  acc = ComponentAccumulator()
60 
61  from TRT_ConditionsServices.TRT_ConditionsServicesConfig import TRT_StrawStatusSummaryToolCfg
62  kwargs.setdefault("TRT_StrawStatusSummaryTool", acc.popToolsAndMerge(TRT_StrawStatusSummaryToolCfg(flags)))
63 
64  from InDetConfig.TRT_TrackHoleSearchConfig import TRTTrackHoleSearchToolCfg
65  kwargs.setdefault("trt_hole_finder", acc.popToolsAndMerge(TRTTrackHoleSearchToolCfg(flags)))
66 
67  from IOVDbSvc.IOVDbSvcConfig import addOverride
68  acc.merge(addOverride(flags,'/TRT/Cond/Status','TRTCondStatus-empty-00-00'))
69 
70  acc.addEventAlgo(CompFactory.InDet.TRT_StrawStatus(name,**kwargs))
71  return acc
72 
73 

Variable Documentation

◆ acc

TRTCalibrationMgrConfig.acc = MainServicesCfg(flags)

Definition at line 153 of file TRTCalibrationMgrConfig.py.

◆ action

TRTCalibrationMgrConfig.action

Definition at line 120 of file TRTCalibrationMgrConfig.py.

◆ args

TRTCalibrationMgrConfig.args = parser.parse_args()

Definition at line 121 of file TRTCalibrationMgrConfig.py.

◆ AtlasVersion

TRTCalibrationMgrConfig.AtlasVersion

Definition at line 135 of file TRTCalibrationMgrConfig.py.

◆ default

TRTCalibrationMgrConfig.default

Definition at line 117 of file TRTCalibrationMgrConfig.py.

◆ Files

TRTCalibrationMgrConfig.Files

Definition at line 128 of file TRTCalibrationMgrConfig.py.

◆ flags

TRTCalibrationMgrConfig.flags = initConfigFlags()

Definition at line 124 of file TRTCalibrationMgrConfig.py.

◆ GlobalTag

TRTCalibrationMgrConfig.GlobalTag

Definition at line 136 of file TRTCalibrationMgrConfig.py.

◆ help

TRTCalibrationMgrConfig.help

Definition at line 117 of file TRTCalibrationMgrConfig.py.

◆ HISTFileName

TRTCalibrationMgrConfig.HISTFileName

Definition at line 132 of file TRTCalibrationMgrConfig.py.

◆ int

TRTCalibrationMgrConfig.int

Definition at line 117 of file TRTCalibrationMgrConfig.py.

◆ MaxEvents

TRTCalibrationMgrConfig.MaxEvents

Definition at line 133 of file TRTCalibrationMgrConfig.py.

◆ nargs

TRTCalibrationMgrConfig.nargs

Definition at line 118 of file TRTCalibrationMgrConfig.py.

◆ parser

TRTCalibrationMgrConfig.parser
Initial value:
1 = argparse.ArgumentParser(prog='python -m TRT_CalibAlgs.TRTCalibrationMgrConfig',
2  description=)

Definition at line 113 of file TRTCalibrationMgrConfig.py.

◆ type

TRTCalibrationMgrConfig.type

Definition at line 117 of file TRTCalibrationMgrConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TRTCalibToolsConfig.FillAlignTRTHitsCfg
def FillAlignTRTHitsCfg(flags, name='FillAlignTRTHits', **kwargs)
Definition: TRTCalibToolsConfig.py:20
python.TRT_ConditionsServicesConfig.TRT_StrawStatusSummaryToolCfg
def TRT_StrawStatusSummaryToolCfg(flags, name="TRT_StrawStatusSummaryTool", forceLegacyAccess=False, **kwargs)
Definition: TRT_ConditionsServicesConfig.py:23
python.CommonTrackFitterConfig.InDetTrackFitterCfg
def InDetTrackFitterCfg(flags, name='InDetTrackFitter', **kwargs)
InDet configs #####.
Definition: CommonTrackFitterConfig.py:10
TRTCalibrationMgrConfig.TRT_StrawStatusCfg
def TRT_StrawStatusCfg(flags, name='InDet_TRT_StrawStatus', **kwargs)
Definition: TRTCalibrationMgrConfig.py:57
python.IOVDbSvcConfig.addOverride
def addOverride(flags, folder, tag, db=None)
Definition: IOVDbSvcConfig.py:224
TRTCalibratorConfig.TRTCalibratorCfg
def TRTCalibratorCfg(flags, name="TRTCalibratorTool", calTag='all', **kwargs)
Definition: TRTCalibratorConfig.py:9
python.DetectorConfigFlags.setupDetectorFlags
def setupDetectorFlags(flags, custom_list=None, use_metadata=False, toggle_geometry=False, validate_only=False, keep_beampipe=False)
Definition: DetectorConfigFlags.py:289
python.TRT_ConditionsAlgsConfig.TRTCondWriteCfg
def TRTCondWriteCfg(flags, name="TRTCondWriteAlg", **kwargs)
Definition: TRT_ConditionsAlgsConfig.py:119
TRTCalibrationMgrConfig.TRT_CalibrationMgrCfg
def TRT_CalibrationMgrCfg(flags, name='TRT_CalibrationMgr', calibconstants='', Hittuple='', caltag='', **kwargs)
Definition: TRTCalibrationMgrConfig.py:9
TRTCalibrationMgrConfig.CalibConfig
def CalibConfig(flags)
Definition: TRTCalibrationMgrConfig.py:74
TRTCalibToolsConfig.FitToolCfg
def FitToolCfg(flags, name="FitToolCfg", **kwargs)
Definition: TRTCalibToolsConfig.py:58
python.InDetTrackSelectorToolConfig.TRT_InDetDetailedTrackSelectorToolCfg
def TRT_InDetDetailedTrackSelectorToolCfg(flags, name="TRT_InDetDetailedTrackSelectorTool", **kwargs)
Definition: InDetTrackSelectorToolConfig.py:266
TRTCalibToolsConfig.FillAlignTrkInfoCfg
def FillAlignTrkInfoCfg(flags, name='FillAlignTrkInfo', **kwargs)
Definition: TRTCalibToolsConfig.py:9
python.TRT_TrackHoleSearchConfig.TRTTrackHoleSearchToolCfg
def TRTTrackHoleSearchToolCfg(flags, name="TRTTrackHoleSearchTool", **kwargs)
Definition: TRT_TrackHoleSearchConfig.py:7