Exemple #1
0
    log.info("Using new TriggerMenu: %r" % useNewTM)
except:
    useNewTM = False
    log.info(
        "Using old TriggerMenuPython since TriggerMenu.useNewTriggerMenu can't be imported"
    )

if useNewTM:
    from TriggerMenu.menu.GenerateMenu import GenerateMenu
else:
    from TriggerMenuPython.GenerateMenu import GenerateMenu

# flags for command-line input
if ('sliceName' in dir()):
    if sliceName == 'egamma':
        GenerateMenu.overwriteSignaturesWith(egammaOnly)
    elif sliceName == 'muon':
        GenerateMenu.overwriteSignaturesWith(muonOnly)
    elif sliceName == 'jet':
        GenerateMenu.overwriteSignaturesWith(jetOnly)
    elif sliceName == 'bjet':
        GenerateMenu.overwriteSignaturesWith(bjetOnly)
    elif sliceName == 'bphysics':
        GenerateMenu.overwriteSignaturesWith(bphysicsOnly)
    elif sliceName == 'met':
        GenerateMenu.overwriteSignaturesWith(metOnly)
    elif sliceName == 'tau':
        GenerateMenu.overwriteSignaturesWith(tauOnly)
    elif sliceName == 'minbias':
        GenerateMenu.overwriteSignaturesWith(minbiasOnly)
    elif sliceName == 'minbiasEnhanced':
Exemple #2
0
            if remove == 'ALL':
                signatures_all = slice.signatures.get_Value(
                )  # Save the chain definitions
                slice.signatures.set_Value([])  # Remove all chains
            else:
                slice.disableSignatures(remove)
        if s in addSignatures:
            add = addSignatures[s]
            slice.enableSignatures(
                [sig for sig in signatures_all if sig[0] in add])
            log.info('Enabled ' + str(add) + ' in ' + s)


from TriggerMenu.menu.GenerateMenu import GenerateMenu

GenerateMenu.overwriteSignaturesWith(enableDisableChains)

log.info("=============== Running slices: ===============")
for s in slicesToRun:
    log.info(s)
log.info("===============================================")

#-------------------------------------------------------------
# Setup trigger
#-------------------------------------------------------------
include("TriggerRelease/Trigger_topOptions_standalone.py")
log = logging.getLogger('runHLT_standalone.py')

# ----------------------------------------------------------------
# Number of events to be processed - for athena
# ----------------------------------------------------------------
Exemple #3
0
#-------------end of temporary fix-------------------


#override menu
def ElectronOnly():
  TriggerFlags.Slices_all_setOff()
  
    # Enable electron slice TriggerFlags.EgammaSlice.setAll()
  TriggerFlags.EgammaSlice.unsetCalo()
  TriggerFlags.Lvl1.items = TriggerFlags.Lvl1.items() + [  ]
  
  TriggerFlags.EgammaSlice.signatures = [
    ['e28_lhtight_idperf',        'L1_EM24VHI',    [], ['express'], ['RATE:IDMonitoring', 'BW:Egamma', 'BW:ID'],-1],
    ]
    
  
from TriggerMenu.menu.GenerateMenu import GenerateMenu

GenerateMenu.overwriteSignaturesWith(ElectronOnly)


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

#-----------------------------------------------------------
include("TriggerTest/TriggerTestCommon.py")
#-----------------------------------------------------------


Exemple #4
0
  TriggerFlags.triggerMenuSetup = triggerMenuVersion
else:
  TriggerFlags.triggerMenuSetup = 'MC_pp_v7'

TriggerFlags.doHLT=True
from TriggerMenu.menu.GenerateMenu import GenerateMenu

TriggerFlags.readHLTconfigFromXML=False
TriggerFlags.readLVL1configFromXML=False

#TriggerFlags.doMuon=False
TriggerFlags.doHypo=False
TriggerFlags.doTruth=True


GenerateMenu.overwriteSignaturesWith(resetSigs)



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


include( "RecExCommon/RecExCommon_topOptions.py" )

TriggerFlags.abortOnConfigurationError=True

Service ("StoreGateSvc" ).ActivateHistory=False 
Service( "RegSelSvc" ).enableCalo = False
# disabling pixel barrel layer 1 for robustness test
Exemple #5
0
try:
    from TriggerMenu import useNewTriggerMenu
    useNewTM = useNewTriggerMenu()
    log.info("Using new TriggerMenu: %r" % useNewTM)
except:
    useNewTM = False
    log.info(
        "Using old TriggerMenuPython since TriggerMenu.useNewTriggerMenu can't be imported"
    )

if useNewTM:
    from TriggerMenu.menu.GenerateMenu import GenerateMenu
else:
    from TriggerMenuPython.GenerateMenu import GenerateMenu

GenerateMenu.overwriteSignaturesWith(L1Only)

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

#------------------------------------------------------------
include("TriggerTest/TriggerTestCommon.py")
#------------------------------------------------------------

#print AlgSequence()
#print ServiceMgr
print DetFlags
print TriggerFlags
        'HLT_e26_lhtight_nod0_ringer_ivarloose',
        'HLT_e28_lhtight_nod0_iloose',
    ]

    triggerList = list(set(monitoringTP_electron +
                           triggerTags))  #Protection to duplicate chains
    current = TriggerFlags.EgammaSlice.signatures.get_Value()
    TriggerFlags.Slices_all_setOff()
    #Searching for: "Registered chain" into athena log file to check the chains
    TriggerFlags.EgammaSlice.signatures = [
        trig for trig in current if 'HLT_' + trig[0] in triggerList
    ]


from TriggerMenu.menu.GenerateMenu import GenerateMenu
GenerateMenu.overwriteSignaturesWith(egammaOnly)
#########################################################################

################## MAIN REC JOBOPTION INCLUDE: ##########################
#########################################################################
include("RecExCommon/RecExCommon_topOptions.py")
#########################################################################

###########################  Ringer!!! ##################################
#########################################################################
if doCaloRinger:
    include('CaloRingerAlgs/CaloRinger_reconstruction.py')
#########################################################################

########################### POST-INCLUDE ################################
#########################################################################
Exemple #7
0
from TriggerJobOpts.TriggerFlags import TriggerFlags

TriggerFlags.triggerMenuSetup = 'MC_pp_v6'
TriggerFlags.L1PrescaleSet = 'None'
TriggerFlags.HLTPrescaleSet = 'None'


def modifySignatures():
    TriggerFlags.JetSlice.signatures = TriggerFlags.JetSlice.signatures() + [[
        '2j250_j150', 'L1_J100', [], ["Main"], ['RATE:MultiJet', 'BW:Jet'], -1
    ]]


from TriggerMenu.menu.GenerateMenu import GenerateMenu
GenerateMenu.overwriteSignaturesWith(modifySignatures)