def setupOverlayLegacyDetectorFlags(detectors): """Setup Overlay legacy detector flags""" from AthenaCommon.DetFlags import DetFlags if not detectors: DetFlags.all_setOn() DetFlags.bpipe_setOff() DetFlags.FTK_setOff() return DetFlags # Truth is always on DetFlags.Truth_setOn() # Other subdetectors if not detectors or 'BCM' in detectors or 'ID' in detectors: DetFlags.BCM_setOn() if not detectors or 'DBM' in detectors or 'ID' in detectors: DetFlags.DBM_setOn() if not detectors or 'Pixel' in detectors or 'ID' in detectors: DetFlags.pixel_setOn() if not detectors or 'SCT' in detectors or 'ID' in detectors: DetFlags.SCT_setOn() if not detectors or 'TRT' in detectors or 'ID' in detectors: DetFlags.TRT_setOn() if not detectors or 'LAr' in detectors or 'Calo' in detectors or 'L1Calo' in detectors: DetFlags.LAr_setOn() if not detectors or 'Tile' in detectors or 'Calo' in detectors or 'L1Calo' in detectors: DetFlags.Tile_setOn() if not detectors or 'L1Calo' in detectors: DetFlags.LVL1_setOn() if not detectors or 'CSC' in detectors or 'Muon' in detectors: DetFlags.CSC_setOn() if not detectors or 'MDT' in detectors or 'Muon' in detectors: DetFlags.MDT_setOn() if not detectors or 'RPC' in detectors or 'Muon' in detectors: DetFlags.RPC_setOn() if not detectors or 'TGC' in detectors or 'Muon' in detectors: DetFlags.TGC_setOn() if not detectors or 'sTGC' in detectors or 'Muon' in detectors: DetFlags.sTGC_setOn() if not detectors or 'MM' in detectors or 'Muon' in detectors: DetFlags.Micromegas_setOn() return DetFlags
from CaloTools.CaloNoiseFlags import jobproperties jobproperties.CaloNoiseFlags.FixedLuminosity.set_Value_and_Lock(1.) #TimeStamp = 1274368420 print " TimeStamp : ", TimeStamp #from PerfMonComps.PerfMonFlags import jobproperties #jobproperties.PerfMonFlags.doMonitoring = True #from AthenaCommon.Resilience import treatException,protectedInclude #protectedInclude( "PerfMonComps/PerfMonSvc_jobOptions.py" ) from AthenaCommon.DetFlags import DetFlags DetFlags.all_setOff() DetFlags.LAr_setOn() DetFlags.Tile_setOn() DetFlags.digitize.all_setOff() from AthenaCommon.GlobalFlags import globalflags globalflags.DetGeo.set_Value_and_Lock('atlas') globalflags.DataSource.set_Value_and_Lock('data') import AthenaCommon.AtlasUnixGeneratorJob # Get a handle to the default top-level algorithm sequence from AthenaCommon.AppMgr import ToolSvc from AthenaCommon.AlgSequence import AlgSequence topSequence = AlgSequence() # Get a handle to the ServiceManager from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaCommon.GlobalFlags import globalflags globalflags.DetDescrVersion = DetDescrVersion print globalflags.DetDescrVersion() #-------------------------------------------------------------- # Set Detector setup #-------------------------------------------------------------- # --- switch on InnerDetector from AthenaCommon.DetFlags import DetFlags DetFlags.ID_setOn() # --- and switch off all the rest DetFlags.Calo_setOff() DetFlags.Muon_setOff() if doCBNT: DetFlags.Tile_setOn() #needed for doExtrap in CBNT DetFlags.LAr_setOn() #needed for doExtrap in CBNT include("LArConditionsCommon/LArIdMap_MC_jobOptions.py") # ---- switch parts of ID off/on as follows #DetFlags.makeRIO.pixel_setOff() #DetFlags.makeRIO.TRT_setOff() #DetFlags.makeRIO.SCT_setOff() # --- printout DetFlags.Print() #-------------------------------------------------------------- # load ServiceMgr, ToolSvc, topSequence #-------------------------------------------------------------- from AthenaCommon.AppMgr import theApp from AthenaCommon.AppMgr import ServiceMgr