ConfigFlags.Concurrency.NumConcurrentEvents = 1 ConfigFlags.Tile.BestPhaseFromCOOL = False ConfigFlags.Tile.correctTime = False ConfigFlags.lock() # Construct our accumulator to run acc = MainServicesCfg(ConfigFlags) acc.merge(PoolReadCfg(ConfigFlags)) acc.merge(PoolWriteCfg(ConfigFlags)) acc.merge(writeDigitizationMetadata(ConfigFlags)) # Old EventInfo conversion if "EventInfo" not in ConfigFlags.Input.Collections: acc.merge( EventInfoCnvAlgCfg(ConfigFlags, inputKey="McEventInfo", outputKey="EventInfo")) # Inner Detector acc.merge(BCM_DigitizationCfg(ConfigFlags)) acc.merge(PixelDigitizationCfg(ConfigFlags)) acc.merge(SCT_DigitizationCfg(ConfigFlags)) acc.merge(TRT_DigitizationCfg(ConfigFlags)) # Calorimeter acc.merge(LArTriggerDigitizationCfg(ConfigFlags)) acc.merge(TileDigitizationCfg(ConfigFlags)) acc.merge(TileTriggerDigitizationCfg(ConfigFlags)) # Muon Spectrometer acc.merge(MDT_DigitizationDigitToRDOCfg(ConfigFlags))
ConfigFlags.fillFromArgs() ConfigFlags.lock() ConfigFlags.dump() # Construct our accumulator to run from AthenaConfiguration.MainServicesConfig import MainServicesCfg acc = MainServicesCfg(ConfigFlags) from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg acc.merge(PoolReadCfg(ConfigFlags)) if 'EventInfo' not in ConfigFlags.Input.Collections: from xAODEventInfoCnv.xAODEventInfoCnvConfig import EventInfoCnvAlgCfg acc.merge( EventInfoCnvAlgCfg(ConfigFlags, inputKey='McEventInfo', outputKey='EventInfo')) acc.merge(TileDigitizationCfg(ConfigFlags)) acc.merge(TileTriggerDigitizationCfg(ConfigFlags)) acc.printConfig(withDetails=True, summariseProps=True) acc.store(open('TileDigitization.pkl', 'wb')) sc = acc.run(maxEvents=3) # Success should be 0 import sys sys.exit(not sc.isSuccess())
ConfigFlags.Input.Files = defaultTestFiles.HITS ConfigFlags.IOVDb.GlobalTag = "OFLCOND-MC16-SDR-16" ConfigFlags.Output.HITSFileName = "myHITS.pool.root" # Flags relating to multithreaded execution ConfigFlags.Concurrency.NumThreads = args.threads if args.threads > 0: ConfigFlags.Scheduler.ShowDataDeps = True ConfigFlags.Scheduler.ShowDataFlow = True ConfigFlags.Scheduler.ShowControlFlow = True ConfigFlags.Concurrency.NumConcurrentEvents = args.threads ConfigFlags.lock() # Function tests accAlg = EventInfoCnvAlgCfg(ConfigFlags) # reset to prevent errors on deletion accAlg.__init__() # Construct our accumulator to run acc = MainServicesCfg(ConfigFlags) acc.merge(PoolReadCfg(ConfigFlags)) # Add event info overlay acc.merge(EventInfoCnvAlgCfg(ConfigFlags)) # Add output acc.merge(OutputStreamCfg(ConfigFlags, "HITS")) # Dump config if args.verboseAccumulators: