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
# digitizationFlags.doLowPtMinBias=True # digitizationFlags.numberOfLowPtMinBias=2.3 # digitizationFlags.LowPtMinBiasInputCols=["", "", "" ] # digitizationFlags.doCavern=True # digitizationFlags.numberOfCavern=2 # digitizationFlags.cavernInputCols=["", ""] # digitizationFlags.doBeamGas=True # digitizationFlags.numberOfBeamGas=0.5 # digitizationFlags.beamGasInputCols=["", ""] #-------------------------------------------------------------- # Global flags. Like eg the DD version: #-------------------------------------------------------------- from AthenaCommon.GlobalFlags import globalflags globalflags.DetDescrVersion = 'ATLAS-GEO-16-00-00' #-------------------------------------------------------------------- # DetFlags. Use to turn on/off individual subdetector or LVL1 trigger #-------------------------------------------------------------------- from AthenaCommon.DetFlags import DetFlags DetFlags.ID_setOff() DetFlags.Calo_setOff() DetFlags.Muon_setOff() DetFlags.LVL1_setOff() DetFlags.Truth_setOff() DetFlags.MDT_setOn() DetFlags.writeRDOPool.all_setOff() include("Digitization/Digitization.py")