Example #1
0
    # set trigger menu
    TriggerFlags.readHLTconfigFromXML = False
    TriggerFlags.readLVL1configFromXML = False
    if v4Menus:
        TriggerFlags.triggerMenuSetup = 'MC_pp_v4'
    else:
        TriggerFlags.triggerMenuSetup = 'MC_pp_v3'
    TriggerFlags.L1PrescaleSet = 'None'
    TriggerFlags.HLTPrescaleSet = 'None'
    TriggerFlags.useL1CaloCalibration = True

    logging.getLogger("TriggerMenuPython.MuonDef").setLevel(ConfigOutputLevel)

    # enable only Muon slice
    from TriggerMenuPython.GenerateMenu import GenerateMenu
    GenerateMenu.overwriteSignaturesWith(MuonOnly)

    # main jobOption
    include("RecExCommon/RecExCommon_topOptions.py")

    include("TriggerTest/TriggerTestCommon.py")

    print "printing topSequence: "
    print topSequence

    ################################################################################
    # L2 tweeking
    ################################################################################
    for L2_alg in topSequence.TrigSteer_L2.getChildren():
        algType = L2_alg.getType()
Example #2
0
            '2e20i_loose_passL2', '2e20i_loose_passEF', 'e20i_loose',
            'e20i_loose_passL2', 'e20i_loose_passEF', 'e20i_medium',
            'e20i_medium_passL2', 'e20i_medium_passEF', 'e25_loose',
            'e25_medium', 'e25i_loose', 'e25i_loose_passL2',
            'e25i_loose_passEF', 'e25i_medium', 'e25i_medium_passL2',
            'e25i_medium_passEF', '2e25i_loose', '2e25i_loose_passL2',
            '2e25i_loose_passEF', 'e40_loose1', 'e105_loose1', 'e140_loose1',
            '2e12_tight', 'e22i_tight', 'e55_loose1', 'Zee', 'Jpsiee',
            'e10_medium_Ringer', 'e5_medium_Ringer', 'e5_medium_L2SW',
            'e10_medium_L2SW', 'e20_loose_L2SW', 'e5_EFfullcalo',
            'e10_medium_SiTrk_robust', 'e10_medium_SiTrk',
            'e20_loose_SiTrk_robust', 'e20_loose_SiTrk', 'e20_loose_IdScan'
        ]

    from TriggerMenuPython.GenerateMenu import GenerateMenu
    GenerateMenu.overwriteSignaturesWith(electrons)

    include("RecExCommon/RecExCommon_topOptions.py")

    # Our bytestreams don't have MBTS data! Disable it!
    #from TrigT1MBTS.TrigT1MBTSConf import LVL1__TrigT1MBTS
    #LVL1__TrigT1MBTS().Enable = False

    from AnalysisTriggerAlgs.AnalysisTriggerAlgsConfig import RoIBResultToAOD
    theRoIBResultToAOD = RoIBResultToAOD()
    theRoIBResultToAOD.Enable = True
    theRoIBResultToAOD.DoMuon = False
    theRoIBResultToAOD.DoCalo = True
    topSequence += theRoIBResultToAOD

elif (WhichInput == "BS"):
Example #3
0
TriggerFlags.BjetSlice.doSiTrack = True
TriggerFlags.BjetSlice.doIDSCAN = True
#TriggerFlags.triggerMenuSetup = 'Physics_lumi1E31_no_prescale'


def resetSigs():
    TriggerFlags.doMuon = False
    TriggerFlags.doHypo = False
    TriggerFlags.Slices_all_setOff()
    TriggerFlags.BjetSlice.setAll()
    TriggerFlags.BjetSlice.signatures = ['b10']


from TriggerMenuPython.GenerateMenu import GenerateMenu
GenerateMenu.overwriteSignaturesWith(resetSigs)

#-------------------------------------------------------------
# End of setting flags
#-------------------------------------------------------------

include("RecExCommon/RecExCommon_topOptions.py")

TriggerFlags.abortOnConfigurationError = True

Service("StoreGateSvc").ActivateHistory = False
Service("RegSelSvc").enableCalo = False

MessageSvc.Format = "% F%48W%S%7W%R%T %0W%M"
Service("StoreGateSvc").ActivateHistory = False
Example #4
0
    TriggerFlags.MuonSlice.doIdScan = False
if test_mu or test_mu_noID_noCalo or test_mu_noIdScan or test_mu_noIdScan_noCalo or test_mu_noCalo or test_mu_IDTRT_noCalo:
    TriggerFlags.doMuon = True

TriggerFlags.MuonSlice.doL2ID = TriggerFlags.doID()
TriggerFlags.MuonSlice.doL2Calo = TriggerFlags.doCalo()
TriggerFlags.MuonSlice.doEFID = TriggerFlags.doID()
TriggerFlags.MuonSlice.doMuonCalibrationStream = isOnline

if alwaysAccept:

    def addAlwaysAcceptChain():
        TriggerFlags.MinBiasSlice.enableSignature("always")

    from TriggerMenuPython.GenerateMenu import GenerateMenu
    GenerateMenu.overwriteSignaturesWith(addAlwaysAcceptChain)

if noBPhysics:  #temporary method - incompatible with alwaysAccept

    def removeBPhysicsSlice():
        TriggerFlags.BphysicsSlice.signatures = []

    from TriggerMenuPython.GenerateMenu import GenerateMenu
    GenerateMenu.overwriteSignaturesWith(removeBPhysicsSlice)


###helper fuction
#-----------------------------
def resetAllSignaturesExcept(slice):
    slices = [
        'MuonSlice', 'EgammaSlice', 'TauSlice', 'JetSlice', 'BjetSlice',
Example #5
0
                'beamspot_vertex_e10_medium_SiTrk'
            ]
        elif Seed == "e10_medium_SiTrk_robust":
            TriggerFlags.BeamSpotSlice.signatures = [
                'beamspot_vertex_e10_medium_SiTrk_robust'
            ]
        elif Seed == "trk9i_calib":
            TriggerFlags.BeamSpotSlice.signatures = [
                'beamspot_vertex_trk9i_calib'
            ]
    else:
        TriggerFlags.BeamSpotSlice.signatures = ['beamspot_vertex_FSTracks']


from TriggerMenuPython.GenerateMenu import GenerateMenu
GenerateMenu.overwriteSignaturesWith(MyBeamSpotMenu)

#-----------------
# Trigger Options
#-----------------
TriggerFlags.doCalo = True
TriggerFlags.doMuon = True
TriggerFlags.doID = True
TriggerFlags.doLVL2 = True
TriggerFlags.doLVL1 = True
TriggerFlags.doEF = False
TriggerFlags.readHLTconfigFromXML = False
TriggerFlags.readLVL1configFromXML = False
TriggerFlags.Slices_all_setOn()
TriggerFlags.doNtuple = True
TriggerFlags.enableMonitoring = [
Example #6
0
    else:
        TriggerFlags.useL1CaloCalibration = False
        TriggerFlags.triggerMenuSetup = 'MC_pp_v3'
        TriggerFlags.L1PrescaleSet = ''
        TriggerFlags.HLTPrescaleSet = ''

# this will be disabled by the rates tool, but it needs to have them loaded.
    TriggerFlags.enableMonitoring = ['Validation', 'Time', 'Log', 'CostAthena']

if doRates:

    def addAlwaysAcceptChain():
        TriggerFlags.MinBiasSlice.enableSignature("always")

    from TriggerMenuPython.GenerateMenu import GenerateMenu
    GenerateMenu.overwriteSignaturesWith(addAlwaysAcceptChain)

#------------ This is a temporary fix ---------------
from RecExConfig.RecConfFlags import recConfFlags
recConfFlags.AllowIgnoreConfigError = False
athenaCommonFlags.AllowIgnoreConfigError = False
#-------------end of temporary fix-------------------

# make sure the names are right
TriggerFlags.outputLVL1configFile = "outputLVL1config.xml"
TriggerFlags.outputHLTconfigFile = "outputHLTconfig.xml"

include("RecExCommon/RecExCommon_topOptions.py")
#-----------------------------------------------------------

#fix for missing tag info in enhanced bias
TriggerFlags.enableMonitoring = ['Validation', 'Time', 'Log']


#override menu
def ElectronOnly():
    TriggerFlags.Slices_all_setOff()

    # Enable electron slice TriggerFlags.EgammaSlice.setAll()
    TriggerFlags.EgammaSlice.unsetCalo()
    TriggerFlags.EgammaSlice.signatures = ["e5_NoCut", "e20_medium_IDTrkNoCut"]


from TriggerMenuPython.GenerateMenu import GenerateMenu

GenerateMenu.overwriteSignaturesWith(ElectronOnly)

#
from InDetTrigRecExample.InDetTrigFlags import InDetTrigFlags
#InDetTrigFlags.doTruth = TriggerFlags.doTruth()
from RecExConfig.RecFlags import rec

InDetTrigFlags.doTruth = rec.doTruth()
InDetTrigFlags.doNewTracking = True
InDetTrigFlags.doBackTracking = False
InDetTrigFlags.doiPatRec = False
InDetTrigFlags.trackFitterType = 'GlobalChi2Fitter'
#InDetTrigFlags.trackFitterType = 'GaussianSumFilter'
#InDetTrigFlags.trackFitterType = 'KalmanFitter'
print InDetTrigFlags
#
if ('setPS' in dir()) and not setPS:
    TriggerFlags.L1PrescaleSet  = 'None'
    TriggerFlags.HLTPrescaleSet = 'None'
    costLog.info('Turn off L1 and HLT prescales')

costLog.info('TriggerFlags.useL1CaloCalibration='+str(TriggerFlags.useL1CaloCalibration))
costLog.info('Print TriggerFlags')
print TriggerFlags
    
#----------------------------------------------------------------------
# Add "always" chains to menu
def addAlwaysAcceptChain():
    TriggerFlags.MinBiasSlice.enableSignature("always")
from TriggerMenuPython.GenerateMenu import GenerateMenu
GenerateMenu.overwriteSignaturesWith(addAlwaysAcceptChain)

#----------------------------------------------------------------------
include("RecExCommon/RecExCommon_topOptions.py")

from PerfMonComps.PerfMonFlags import jobproperties as jp
jp.PerfMonFlags.doMonitoring = False
jp.PerfMonFlags.doFastMon = False

#----------------------------------------------------------------------
# Setup cost algorithms and options for collecting cost data

from TrigCostMonitor.TrigCostMonitorConfig import setupCostAlg, setupCostJob, setupCostExtras
setupCostAlg()
setupCostJob()
setupCostExtras()