Example #1
0
        DetFlags.all_setOn()
        DetFlags.ALFA_setOff() #Default for now
        DetFlags.ZDC_setOff() #Default for now
        checkAFPOff = getattr(DetFlags, 'AFP_setOff', None)
        if checkAFPOff is not None:
            checkAFPOff() #Default for now
        checkFwdRegionOff = getattr(DetFlags, 'FwdRegion_setOff', None)
        if checkFwdRegionOff is not None:
            checkFwdRegionOff() #Default for now

    if hasattr(runArgs,"LucidOn"):
        if not runArgs.LucidOn:
            DetFlags.Lucid_setOff()
    if hasattr(runArgs,"ALFAOn"):
        if runArgs.ALFAOn:
            DetFlags.ALFA_setOn()
    if hasattr(runArgs,"ZDCOn"):
        if runArgs.ZDCOn:
            DetFlags.ZDC_setOn()
    if hasattr(runArgs, "AFPOn"):
        if runArgs.AFPOn:
            checkAFPOn = getattr(DetFlags, 'AFP_setOn', None)
            if checkAFPOn is not None:
                checkAFPOn()
            else:
                merRDOLog.warning('The AFP DetFlag is not supported in this release')
    if hasattr(runArgs, "FwdRegionOn"):
        if runArgs.FwdRegionOn:
            checkFwdRegionOn = getattr(DetFlags, 'FwdRegion_setOn', None)
            if checkFwdRegionOn is not None:
                checkFwdRegionOn()
Example #2
0
    DumpGeo.VP1EvtFilter.installEventFilter(vp1FilterEvents)

from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()

#Detector setup:
from AthenaCommon.DetFlags import DetFlags
if (vp1ID): DetFlags.ID_setOn()
else: DetFlags.ID_setOff()
if (vp1Calo): DetFlags.Calo_setOn()
else: DetFlags.Calo_setOff()
if (vp1Muon): DetFlags.Muon_setOn()
else: DetFlags.Muon_setOff()
if (vp1LUCID): DetFlags.Lucid_setOn()
else: DetFlags.Lucid_setOff()
if (vp1ALFA): DetFlags.ALFA_setOn()
else: DetFlags.ALFA_setOff()
if (vp1ForwardRegion): DetFlags.FwdRegion_setOn()
else: DetFlags.FwdRegion_setOff()
if (vp1ZDC): DetFlags.ZDC_setOn()
else: DetFlags.ZDC_setOff()
DetFlags.Print()
if (vp1CustomGeometry):
    print "Configuring Custom geometry."
if (vp1SLHC):
    print "Setting up SLHC configuration"
    rec.doTrigger.set_Value_and_Lock(False)
    from AthenaCommon.GlobalFlags import globalflags
    from AthenaCommon.GlobalFlags import jobproperties
    from InDetRecExample.InDetJobProperties import InDetFlags