ATLAS Offline Software
Functions | Variables
python.RDOtoHIST_DIGI_Skeleton Namespace Reference

Functions

def fromRunArgs (runArgs)
 

Variables

 jobPropertiesDisallowed
 

Function Documentation

◆ fromRunArgs()

def python.RDOtoHIST_DIGI_Skeleton.fromRunArgs (   runArgs)

Definition at line 16 of file RDOtoHIST_DIGI_Skeleton.py.

16 def fromRunArgs(runArgs):
17  from AthenaCommon.Logging import logging
18  log = logging.getLogger('DigiValid_tf')
19  log.info( '****************** STARTING VALIDATION *****************' )
20 
21  log.info('**** Transformation run arguments')
22  log.info(str(runArgs))
23 
24  log.info('**** Setting-up configuration flags')
25  from AthenaConfiguration.AllConfigFlags import initConfigFlags
26  flags = initConfigFlags()
27 
28  commonRunArgsToFlags(runArgs, flags)
29 
30  if hasattr(runArgs, 'localgeo'):
31  flags.ITk.Geometry.AllLocal = runArgs.localgeo
32 
33  if hasattr(runArgs, "PileUpPresampling"):
34  from AthenaConfiguration.Enums import ProductionStep
35  flags.Common.ProductionStep = ProductionStep.PileUpPresampling
36 
37  if hasattr(runArgs, 'inputRDOFile'):
38  flags.Input.Files = runArgs.inputRDOFile
39  else:
40  raise RuntimeError('No input RDO file defined')
41 
42  if hasattr(runArgs, 'outputHIST_DIGIFile'):
43  flags.Output.HISTFileName = runArgs.outputHIST_DIGIFile
44  else:
45  log.warning('No output file set')
46  flags.Output.HISTFileName = 'output.HIST_DIGI.root'
47 
48  # Autoconfigure enabled subdetectors
49  if hasattr(runArgs, 'detectors'):
50  detectors = runArgs.detectors
51  else:
52  detectors = None
53 
54  from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags
55  setupDetectorFlags(flags, detectors, use_metadata=True, toggle_geometry=True)
56 
57  # Pre-include
58  processPreInclude(runArgs, flags)
59 
60  # Pre-exec
61  processPreExec(runArgs, flags)
62 
63  # To respect --athenaopts
64  flags.fillFromArgs()
65 
66  # Lock flags
67  flags.lock()
68 
69  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
70  cfg = MainServicesCfg(flags)
71 
72  from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
73  cfg.merge(PoolReadCfg(flags))
74 
75  from RDOAnalysis.RDOAnalysisConfig import EventInfoRDOAnalysisCfg, BCM_RDOAnalysisCfg, PixelRDOAnalysisCfg, SCT_RDOAnalysisCfg, TRT_RDOAnalysisCfg, ITkPixelRDOAnalysisCfg, ITkStripRDOAnalysisCfg, HGTD_RDOAnalysisCfg, PLR_RDOAnalysisCfg, LArRDOAnalysisCfg, TileRDOAnalysisCfg, CSC_RDOAnalysisCfg, MDT_RDOAnalysisCfg, RPC_RDOAnalysisCfg, TGC_RDOAnalysisCfg
76 
77  cfg.merge(EventInfoRDOAnalysisCfg(flags))
78 
79  if flags.Detector.EnableBCM:
80  cfg.merge(BCM_RDOAnalysisCfg(flags))
81 
82  if flags.Detector.EnablePixel:
83  cfg.merge(PixelRDOAnalysisCfg(flags))
84 
85  if flags.Detector.EnableSCT:
86  cfg.merge(SCT_RDOAnalysisCfg(flags))
87 
88  if flags.Detector.EnableTRT:
89  cfg.merge(TRT_RDOAnalysisCfg(flags))
90 
91  if flags.Detector.EnableITkPixel:
92  cfg.merge(ITkPixelRDOAnalysisCfg(flags))
93 
94  if flags.Detector.EnableITkStrip:
95  cfg.merge(ITkStripRDOAnalysisCfg(flags))
96 
97  if flags.Detector.EnableHGTD:
98  cfg.merge(HGTD_RDOAnalysisCfg(flags))
99 
100  if flags.Detector.EnablePLR:
101  cfg.merge(PLR_RDOAnalysisCfg(flags))
102 
103  if flags.Detector.EnableLAr:
104  cfg.merge(LArRDOAnalysisCfg(flags))
105 
106  if flags.Detector.EnableTile:
107  cfg.merge(TileRDOAnalysisCfg(flags))
108 
109  if flags.Detector.EnableCSC:
110  cfg.merge(CSC_RDOAnalysisCfg(flags))
111 
112  if flags.Detector.EnableMDT:
113  cfg.merge(MDT_RDOAnalysisCfg(flags))
114 
115  if flags.Detector.EnableRPC:
116  cfg.merge(RPC_RDOAnalysisCfg(flags))
117 
118  if flags.Detector.EnableTGC:
119  cfg.merge(TGC_RDOAnalysisCfg(flags))
120 
121  # Silence HepMcParticleLink warnings
122  from Digitization.DigitizationSteering import DigitizationMessageSvcCfg
123  cfg.merge(DigitizationMessageSvcCfg(flags))
124 
125  # Post-include
126  processPostInclude(runArgs, flags, cfg)
127 
128  # Post-exec
129  processPostExec(runArgs, flags, cfg)
130 
131  import time
132  tic = time.time()
133  # Run the final accumulator
134  sc = cfg.run()
135  log.info("Ran RDOMerge_tf in " + str(time.time()-tic) + " seconds")
136 
137  sys.exit(not sc.isSuccess())

Variable Documentation

◆ jobPropertiesDisallowed

python.RDOtoHIST_DIGI_Skeleton.jobPropertiesDisallowed

Definition at line 13 of file RDOtoHIST_DIGI_Skeleton.py.

python.TransformUtils.processPreExec
def processPreExec(runArgs, flags)
Definition: Tools/PyJobTransforms/python/TransformUtils.py:41
python.RDOtoHIST_DIGI_Skeleton.fromRunArgs
def fromRunArgs(runArgs)
Definition: RDOtoHIST_DIGI_Skeleton.py:16
python.TransformUtils.processPostExec
def processPostExec(runArgs, flags, cfg)
Definition: Tools/PyJobTransforms/python/TransformUtils.py:50
python.RDOAnalysisConfig.TRT_RDOAnalysisCfg
def TRT_RDOAnalysisCfg(flags, name="TRT_RDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:102
python.RDOAnalysisConfig.CSC_RDOAnalysisCfg
def CSC_RDOAnalysisCfg(flags, name="CSC_RDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:310
python.TransformUtils.processPostInclude
def processPostInclude(runArgs, flags, cfg)
Definition: Tools/PyJobTransforms/python/TransformUtils.py:69
python.TransformUtils.processPreInclude
def processPreInclude(runArgs, flags)
Definition: Tools/PyJobTransforms/python/TransformUtils.py:62
python.DigitizationSteering.DigitizationMessageSvcCfg
def DigitizationMessageSvcCfg(flags)
Definition: DigitizationSteering.py:217
python.RDOAnalysisConfig.ITkPixelRDOAnalysisCfg
def ITkPixelRDOAnalysisCfg(flags, name="ITkPixelRDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:123
python.RDOAnalysisConfig.MDT_RDOAnalysisCfg
def MDT_RDOAnalysisCfg(flags, name="MDT_RDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:331
python.RDOAnalysisConfig.BCM_RDOAnalysisCfg
def BCM_RDOAnalysisCfg(flags, name="BCM_RDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:33
python.RDOAnalysisConfig.PixelRDOAnalysisCfg
def PixelRDOAnalysisCfg(flags, name="PixelRDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:54
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
python.RDOAnalysisConfig.TGC_RDOAnalysisCfg
def TGC_RDOAnalysisCfg(flags, name="TGC_RDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:373
python.RDOAnalysisConfig.ITkStripRDOAnalysisCfg
def ITkStripRDOAnalysisCfg(flags, name="ITkStripRDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:146
python.CommonRunArgsToFlags.commonRunArgsToFlags
def commonRunArgsToFlags(runArgs, configFlags)
Definition: CommonRunArgsToFlags.py:12
python.RDOAnalysisConfig.HGTD_RDOAnalysisCfg
def HGTD_RDOAnalysisCfg(flags, name="HGTD_RDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:169
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.RDOAnalysisConfig.TileRDOAnalysisCfg
def TileRDOAnalysisCfg(flags, name="TileRDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:274
python.RDOAnalysisConfig.LArRDOAnalysisCfg
def LArRDOAnalysisCfg(flags, name="LArRDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:247
python.RDOAnalysisConfig.EventInfoRDOAnalysisCfg
def EventInfoRDOAnalysisCfg(flags, name="EventInfoRDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:18
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
str
Definition: BTagTrackIpAccessor.cxx:11
python.RDOAnalysisConfig.PLR_RDOAnalysisCfg
def PLR_RDOAnalysisCfg(flags, name="PLR_RDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:192
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69
python.RDOAnalysisConfig.RPC_RDOAnalysisCfg
def RPC_RDOAnalysisCfg(flags, name="RPC_RDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:352
python.RDOAnalysisConfig.SCT_RDOAnalysisCfg
def SCT_RDOAnalysisCfg(flags, name="SCT_RDOAnalysis", **kwargs)
Definition: RDOAnalysisConfig.py:78