4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 def SetupMuonStandaloneConfigFlags( default_input = ['/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/RecExRecoTest/ESD.16747874._000011_100events.pool.root']):
8 Setup flags necessary for Muon standalone.
10 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
12 flags.Detector.GeometryMDT =
True
13 flags.Detector.GeometryTGC =
True
15 flags.Detector.GeometryRPC =
True
17 flags.Detector.GeometryCalo =
False
18 flags.Detector.GeometryID =
False
21 flags.Muon.makePRDs =
False
23 flags.Exec.MaxEvents = 20
24 args = flags.fillFromArgs()
26 if flags.Input.Files == [
'_ATHENA_GENERIC_INPUTFILE_NAME_'] :
28 flags.Input.Files = default_input
30 from AthenaConfiguration.DetectorConfigFlags
import setupDetectorFlags
33 if flags.Output.ESDFileName ==
'':
34 flags.Output.ESDFileName=
'newESD.pool.root'
36 print(
'ESD = ', flags.Output.ESDFileName )
43 if not args.config_only:
44 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
46 msgService = cfg.getService(
'MessageSvc')
47 msgService.Format =
"S:%s E:%e % F%128W%S%7W%R%T %0W%M"
51 from AthenaConfiguration.Enums
import Format
52 if flags.Input.Format
is Format.POOL:
53 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
56 from MuonConfig.MuonBytestreamDecodeConfig
import MuonByteStreamDecodersCfg
60 from xAODTruthCnv.xAODTruthCnvConfig
import GEN_AOD2xAODCfg
67 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
71 outstream.ForceRead =
True
74 from TrkEventCnvTools.TrkEventCnvToolsConfig
import (
75 TrkEventCnvSuperToolCfg)