17 from AthenaCommon.Logging
import logging
18 log = logging.getLogger(
'DigiValid_tf')
19 log.info(
'****************** STARTING VALIDATION *****************' )
21 log.info(
'**** Transformation run arguments')
22 log.info(
str(runArgs))
24 log.info(
'**** Setting-up configuration flags')
25 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
30 if hasattr(runArgs,
'localgeo'):
31 flags.ITk.Geometry.AllLocal = runArgs.localgeo
33 if hasattr(runArgs,
"PileUpPresampling"):
34 from AthenaConfiguration.Enums
import ProductionStep
35 flags.Common.ProductionStep = ProductionStep.PileUpPresampling
37 if hasattr(runArgs,
'inputRDOFile'):
38 flags.Input.Files = runArgs.inputRDOFile
40 raise RuntimeError(
'No input RDO file defined')
42 if hasattr(runArgs,
'outputHIST_DIGIFile'):
43 flags.Output.HISTFileName = runArgs.outputHIST_DIGIFile
45 log.warning(
'No output file set')
46 flags.Output.HISTFileName =
'output.HIST_DIGI.root'
49 if hasattr(runArgs,
'detectors'):
50 detectors = runArgs.detectors
54 from AthenaConfiguration.DetectorConfigFlags
import setupDetectorFlags
69 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
72 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
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
79 if flags.Detector.EnableBCM:
82 if flags.Detector.EnablePixel:
85 if flags.Detector.EnableSCT:
88 if flags.Detector.EnableTRT:
91 if flags.Detector.EnableITkPixel:
94 if flags.Detector.EnableITkStrip:
97 if flags.Detector.EnableHGTD:
100 if flags.Detector.EnablePLR:
103 if flags.Detector.EnableLAr:
106 if flags.Detector.EnableTile:
109 if flags.Detector.EnableCSC:
112 if flags.Detector.EnableMDT:
115 if flags.Detector.EnableRPC:
118 if flags.Detector.EnableTGC:
122 from Digitization.DigitizationSteering
import DigitizationMessageSvcCfg
135 log.info(
"Ran RDOMerge_tf in " +
str(time.time()-tic) +
" seconds")
137 sys.exit(
not sc.isSuccess())