acc.merge(TriggerHistSvcConfig(flags)) from TriggerMenuMT.HLTMenuConfig.Menu.GenerateMenuMT_newJO import generateMenu as generateHLTMenu from TriggerJobOpts.TriggerConfig import triggerRunCfg acc.merge(triggerRunCfg(flags, seqName="AthMasterSeq", menu=generateHLTMenu)) from RegionSelector.RegSelConfig import regSelCfg acc.merge(regSelCfg(flags)) from TrigInDetConfig.TrigInDetConfig import TrigInDetCondConfig acc.merge(TrigInDetCondConfig(flags)) acc.getEventAlgo("TrigSignatureMoniMT").OutputLevel = DEBUG from AthenaCommon.Logging import logging logging.getLogger('forcomps').setLevel(DEBUG) acc.foreach_component("*/L1Decoder").OutputLevel = DEBUG acc.foreach_component("*/L1Decoder/*Tool").OutputLevel = DEBUG # tools acc.foreach_component("*HLTTop/*Hypo*").OutputLevel = DEBUG # hypo algs acc.foreach_component( "*HLTTop/*Hypo*/*Tool*").OutputLevel = DEBUG # hypo tools acc.foreach_component("*HLTTop/RoRSeqFilter/*").OutputLevel = DEBUG # filters acc.foreach_component("*HLTTop/*Input*").OutputLevel = DEBUG # input makers acc.foreach_component("*HLTTop/*HLTEDMCreator*" ).OutputLevel = DEBUG # messaging from the EDM creators acc.foreach_component( "*HLTTop/*GenericMonitoringTool*"
from ByteStreamCnvSvc.ByteStreamConfig import ByteStreamReadCfg acc.merge( ByteStreamReadCfg(ConfigFlags, [ 'TileRawChannelContainer/TileRawChannelCnt', 'TileDigitsContainer/TileDigitsCnt' ])) acc.merge(TileCellMakerCfg(ConfigFlags)) from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg acc.merge( OutputStreamCfg( ConfigFlags, "ESD", ItemList=['CaloCellContainer#*', 'TileCellContainer#*'])) acc.getEventAlgo("OutputStreamESD").ExtraInputs = [ ('CaloCellContainer', 'StoreGateSvc+AllCalo') ] ConfigFlags.dump() acc.printConfig(withDetails=True, summariseProps=True) acc.store(open('TileCellMaker.pkl', 'wb')) sc = acc.run(maxEvents=3) import sys # Success should be 0 sys.exit(not sc.isSuccess())
cfg.addService(evtIdModifierSvc) # ... up to here? # add BeamEffectsAlg from BeamEffects.BeamEffectsAlgConfig import BeamEffectsAlgCfg cfg.merge(BeamEffectsAlgCfg(ConfigFlags)) # add the ISF_MainConfig from ISF_Config.ISF_MainConfigNew import Kernel_FullG4MTCfg cfg.merge(Kernel_FullG4MTCfg(ConfigFlags)) from TileGeoG4SD.TileGeoG4SDToolConfig import TileGeoG4SDCalcCfg cfg.merge(TileGeoG4SDCalcCfg(ConfigFlags)) # FIXME hack to match to buggy behaviour in old style configuration OutputStreamHITS = cfg.getEventAlgo("OutputStreamHITS") OutputStreamHITS.ItemList.remove("xAOD::EventInfo#EventInfo") OutputStreamHITS.ItemList.remove("xAOD::EventAuxInfo#EventInfoAux.") # FIXME hack because deduplication is broken PoolAttributes = ["TREE_BRANCH_OFFSETTAB_LEN = '100'"] PoolAttributes += ["DatabaseName = '" + ConfigFlags.Output.HITSFileName + "'; ContainerName = 'TTree=CollectionTree'; TREE_AUTO_FLUSH = '1'"] cfg.getService("AthenaPoolCnvSvc").PoolAttributes += PoolAttributes # Dump config cfg.addEventAlgo(CompFactory.JobOptsDumperAlg(FileName="G4AtlasTestConfig.txt")) cfg.getService("StoreGateSvc").Dump = True cfg.getService("ConditionStore").Dump = True cfg.printConfig(withDetails=True, summariseProps = True) ConfigFlags.dump()
# Calorimeter acc.merge(LArTriggerDigitizationCfg(ConfigFlags)) acc.merge(TileDigitizationCfg(ConfigFlags)) acc.merge(TileTriggerDigitizationCfg(ConfigFlags)) # Muon Spectrometer acc.merge(MDT_DigitizationDigitToRDOCfg(ConfigFlags)) acc.merge(TGC_DigitizationDigitToRDOCfg(ConfigFlags)) acc.merge(RPC_DigitizationDigitToRDOCfg(ConfigFlags)) acc.merge(CSC_DigitizationDigitToRDOCfg(ConfigFlags)) # Timing acc.merge(MergeRecoTimingObjCfg(ConfigFlags)) # FIXME hack to match to buggy behaviour in old style configuration OutputStreamRDO = acc.getEventAlgo("OutputStreamRDO") OutputStreamRDO.ItemList += ["EventInfo#*"] OutputStreamRDO.ItemList.remove("xAOD::EventInfo#EventInfo") OutputStreamRDO.ItemList.remove("xAOD::EventAuxInfo#EventInfoAux.") # FIXME this is marked "# Temporary for debugging MBTSHits" in DigiOutput.py OutputStreamRDO.ItemList += ["TileHitVector#MBTSHits"] # for Tile # new style configures these, but they are left default in old config TilePulseForTileMuonReceiver = acc.getEventAlgo("TilePulseForTileMuonReceiver") TilePulseForTileMuonReceiver.TileRawChannelBuilderMF.TimeMaxForAmpCorrection = 25. TilePulseForTileMuonReceiver.TileRawChannelBuilderMF.TimeMinForAmpCorrection = -25. TileRChMaker = acc.getEventAlgo("TileRChMaker") TileRChMaker.TileRawChannelBuilderFitOverflow.TimeMaxForAmpCorrection = 25. TileRChMaker.TileRawChannelBuilderFitOverflow.TimeMinForAmpCorrection = -25. # Dump config
cfg.merge(JetCopyAlgCfg(ConfigFlags, buildjetsname, copyjetsname)) # Write what we produced to AOD # First define the output list outputlist = ["EventInfo#*"] jetlist = [buildjetsname, groomjetsname, copyjetsname] for jetcoll in jetlist: if "Copy" in jetcoll: outputlist += [ "xAOD::JetContainer#" + copyjetsname, "xAOD::ShallowAuxContainer#" + copyjetsname + "Aux.-PseudoJet" ] else: outputlist += [ "xAOD::JetContainer#" + jetcoll, "xAOD::JetAuxContainer#" + jetcoll + "Aux.-PseudoJet" ] # Now get the output stream components from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg cfg.merge(OutputStreamCfg(ConfigFlags, "xAOD", ItemList=outputlist)) from pprint import pprint pprint(cfg.getEventAlgo("OutputStreamxAOD").ItemList) # For local tests, not in the CI # Print the contents of the store every event # cfg.getService("StoreGateSvc").Dump = True # Run the job cfg.run(maxEvents=10)
# Set the Athena configuration flags from AthenaConfiguration.AllConfigFlags import ConfigFlags # ConfigFlags.Input.Files = ['/afs/cern.ch/user/s/somadutt/public/testUPC2.AOD.pool.root'] #Local HI-UPC file # data AOD file ConfigFlags.Input.Files = [ '/eos/atlas/atlascerngroupdisk/data-art/build-output/master/Athena/x86_64-centos7-gcc8-opt/2020-06-01T2139/TrigP1Test/test_trigP1_v1PhysP1_T0Mon_build/AOD.pool.root' ] # ConfigFlags.Input.Files = ['/eos/atlas/atlascerngroupdisk/data-art/build-output/master/Athena/x86_64-centos7-gcc8-opt/2020-05-22T2142/TrigAnalysisTest/test_trigAna_RDOtoT0Mon_mt1_build/AOD.pool.root'] # ConfigFlags.Input.isMC = True #un-Comment this line for MC AOD files, comment for data-AOD files ConfigFlags.Output.HISTFileName = 'TestMonitorOutput.root' ConfigFlags.lock() # Initialize configuration object, add accumulator, merge, and run. from AthenaConfiguration.MainServicesConfig import MainServicesCfg from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg cfg = MainServicesCfg(ConfigFlags) cfg.merge(PoolReadCfg(ConfigFlags)) cfg.merge(TrigMinBias(ConfigFlags)) # If you want to turn on more detailed messages ... # cfg.getEventAlgo('HLTMinBiasMonAlgMT').OutputLevel = 2 # DEBUG #either this line or the next works!! cfg.getEventAlgo('HLTMinBiasMonAlgMT').OutputLevel = DEBUG # DEBUG cfg.printConfig(withDetails=True) # set True for exhaustive info cfg.run() #use cfg.run(20) to only run on first 20 events # to run: # python -m TrigMinBiasMonitoring.TrigMinBiasMonitoringMT