def _apply_cfg(self): cfg = self.cfgopts[:] self.acf['FilesInput'] = self.input_files[:] from AthenaCommon.AthenaCommonFlags import jobproperties as jp acf = jp.AthenaCommonFlags for k, v in self.acf.iteritems(): getattr(acf, k).set_Value_and_Lock(v) from RecExConfig.RecFlags import rec for k, v in self.rec.iteritems(): globals()[k] = False # FIXME: backward compat... getattr(rec, k).set_Value_and_Lock(v) rec.AutoConfiguration = cfg import RecExConfig.AutoConfiguration as auto if (self.is_rdo() or self.is_esd() or self.is_aod() or self.is_tag()): # FIXME: autocfg fails when input is Stream1-evgen ! return auto.ConfigureFromListOfKeys(rec.AutoConfiguration()) else: from AthenaCommon.AppMgr import ServiceMgr as svcMgr import AthenaPoolCnvSvc.ReadAthenaPool svcMgr.EventSelector.InputCollections = acf.FilesInput()
#---------------------------------------------------------------------------------# # Make sure PerfMon is off include( "PerfMonGPerfTools/DisablePerfMon_jobOFragment.py" ) # Input file dataFile = "/afs/cern.ch/atlas/project/rig/referencefiles/MC/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.e3099_s2578/RDO.04919495._000958.pool.root.1" from AthenaCommon.AthenaCommonFlags import athenaCommonFlags athenaCommonFlags.FilesInput=[dataFile,dataFile] # AutoConfiguration from RecExConfig.RecFlags import rec rec.AutoConfiguration = ['everything'] import RecExConfig.AutoConfiguration as auto auto.ConfigureFromListOfKeys(rec.AutoConfiguration()) from RecExConfig.ObjKeyStore import objKeyStore, CfgKeyStore from PyUtils.MetaReaderPeeker import convert_itemList objKeyStore.addManyTypesInputFile(convert_itemList(layout = '#join')) #---------------------------------------------------------------------------------# # Detector Description from AtlasGeoModel import SetGeometryVersion from AtlasGeoModel import GeoModelInit from LArGeoAlgsNV.LArGeoAlgsNVConf import LArDetectorToolNV from TileGeoModel.TileGeoModelConf import TileDetectorTool ServiceMgr.GeoModelSvc.DetectorTools += [ LArDetectorToolNV(ApplyAlignments = True, GeometryConfig = "RECO"), TileDetectorTool(GeometryConfig = "RECO")