106 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
108 flags.Concurrency.NumThreads = args.threads
109 flags.Concurrency.NumConcurrentEvents = args.threads
110 flags.Exec.MaxEvents = args.nEvents
111 flags.Exec.SkipEvents = args.skipEvents
112 flags.Input.isMC = args.condTag.find(
"OFLCOND") != -1
113 from os
import path, system, listdir
114 inFiles = [x
for x
in args.inputFile
if not path.isdir(x)] + \
115 [
"{dir}/{file}".
format(dir=x, file=y)
for x
in args.inputFile
if path.isdir(x)
for y
in listdir(x) ]
116 flags.Input.Files = inFiles
118 flags.Exec.EventPrintoutInterval = args.eventPrintoutLevel
120 if args.geoModelFile.startswith(
"root://"):
121 if not path.exists(
"Geometry/{geoTag}.db".
format(geoTag=args.geoTag)):
122 print (
"Copy geometry file from EOS {source}".
format(source = args.geoModelFile))
123 system(
"mkdir Geometry/")
124 system(
"xrdcp {source} Geometry/{geoTag}.db".
format(source = args.geoModelFile,
127 args.geoModelFile =
"Geometry/{geoTag}.db".
format(geoTag=args.geoTag)
128 print (
"Use geometry file: {geoFile}".
format(geoFile = args.geoModelFile))
129 flags.GeoModel.AtlasVersion = args.geoTag
130 flags.IOVDb.GlobalTag = args.condTag
131 flags.GeoModel.SQLiteDB =
True
132 flags.GeoModel.SQLiteDBFullPath = args.geoModelFile
134 flags.Detector.GeometryBpipe =
False
136 flags.Detector.GeometryBCM =
False
137 flags.Detector.GeometryPixel =
False
138 flags.Detector.GeometrySCT =
False
139 flags.Detector.GeometryTRT =
False
141 flags.Detector.GeometryPLR =
False
142 flags.Detector.GeometryBCMPrime =
False
143 flags.Detector.GeometryITkPixel =
False
144 flags.Detector.GeometryITkStrip =
False
146 flags.Detector.GeometryHGTD =
False
148 flags.Detector.GeometryLAr =
False
149 flags.Detector.GeometryTile =
False
150 flags.Detector.GeometryMBTS =
False
151 flags.Detector.GeometryCalo =
False
153 flags.Detector.GeometryCSC =
False
155 flags.Detector.GeometrysTGC =
False
157 flags.Detector.GeometryMM =
False
159 flags.Detector.GeometryTGC =
False
161 flags.Detector.GeometryRPC =
False
163 flags.Detector.GeometryMDT =
False
165 flags.Scheduler.CheckDependencies =
True
166 flags.Scheduler.ShowDataDeps =
True
167 flags.Scheduler.ShowDataFlow =
True
168 flags.Scheduler.ShowControlFlow =
True
169 flags.Scheduler.EnableVerboseViews =
True
170 flags.Scheduler.AutoLoadUnmetDependencies =
True
174 flags.dump(evaluate =
True)
175 if not flags.Muon.usePhaseIIGeoSetup:
176 print (
"Please make sure that the file you're testing contains the Muon R4 geometry")
181 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
184 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsGeometryContextAlgCfg
187 cfg.getService(
"MessageSvc").verboseLimit = 10000000
188 cfg.getService(
"MessageSvc").debugLimit = 10000000