Skip to content
Snippets Groups Projects
Commit 19e25a31 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'tautoTMMT' into 'master'

Moving taus to TMMT, moving files used in Electron & Photon directories (new JO) to TMMT

See merge request atlas/athena!23676
parents e5c1dbc9 f4defb98
No related branches found
No related tags found
No related merge requests found
Showing
with 138 additions and 9 deletions
...@@ -157,8 +157,6 @@ if opt.doJetSlice == True: ...@@ -157,8 +157,6 @@ if opt.doJetSlice == True:
testChains += jetChains testChains += jetChains
################################################################## ##################################################################
# bjet chains # bjet chains
################################################################## ##################################################################
...@@ -175,8 +173,11 @@ if opt.doBJetSlice == True: ...@@ -175,8 +173,11 @@ if opt.doBJetSlice == True:
] ]
testChains += bjetChains testChains += bjetChains
##################################################################
# tau chains
##################################################################
if opt.doTauSlice == True: if opt.doTauSlice == True:
from TrigUpgradeTest.tauMenuDefs import getTauSequence from TriggerMenuMT.HLTMenuConfig.Tau.TauMenuSequences import getTauSequence
step1=ChainStep("Step1_tau", [getTauSequence('calo')]) step1=ChainStep("Step1_tau", [getTauSequence('calo')])
step2=ChainStep("Step2_tau", [getTauSequence('track_core')]) step2=ChainStep("Step2_tau", [getTauSequence('track_core')])
......
...@@ -17,6 +17,7 @@ def signaturesToGenerate(): ...@@ -17,6 +17,7 @@ def signaturesToGenerate():
TriggerFlags.MuonSlice.setAll() TriggerFlags.MuonSlice.setAll()
TriggerFlags.METSlice.setAll() TriggerFlags.METSlice.setAll()
TriggerFlags.JetSlice.setAll() TriggerFlags.JetSlice.setAll()
TriggerFlags.TauSlice.setAll()
# generate the Chains from the Menu Dictionary # generate the Chains from the Menu Dictionary
......
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
from TrigUpgradeTest.ElectronMenuConfig import l2CaloRecoCfg, l2CaloHypoCfg from TriggerMenuMT.HLTMenuConfig.Electron.ElectronRecoSequences import l2CaloRecoCfg, l2CaloHypoCfg
from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import MenuSequence, \ from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import MenuSequence, \
ChainStep, Chain, getChainStepName, createStepView ChainStep, Chain, getChainStepName, createStepView
......
...@@ -91,7 +91,10 @@ def setupMenu(): ...@@ -91,7 +91,10 @@ def setupMenu():
ChainProp(name="HLT_j35_gsc45_bmv2c1070_L1J20", groups=SingleBjetGroup), ChainProp(name="HLT_j35_gsc45_bmv2c1070_L1J20", groups=SingleBjetGroup),
] ]
TriggerFlags.TauSlice.signatures = [] TriggerFlags.TauSlice.signatures = [
#ChainProp(name="HLT_tau0_perf_ptonly_L1TAU12", groups=SingleTauGroup),
#ChainProp(name="HLT_tau25_medium1_tracktwo_L1TAU12IM", groups=SingleTauGroup),
]
TriggerFlags.BphysicsSlice.signatures = [ ] TriggerFlags.BphysicsSlice.signatures = [ ]
TriggerFlags.CombinedSlice.signatures = [] TriggerFlags.CombinedSlice.signatures = []
TriggerFlags.HeavyIonSlice.signatures = [] TriggerFlags.HeavyIonSlice.signatures = []
......
...@@ -55,7 +55,7 @@ def generatePhotonsCfg( flags ): ...@@ -55,7 +55,7 @@ def generatePhotonsCfg( flags ):
l2CaloHypo.CaloClusters = 'L2CaloEMClusters' l2CaloHypo.CaloClusters = 'L2CaloEMClusters'
from TrigUpgradeTest.ElectronMenuConfig import l2CaloRecoCfg from TriggerMenuMT.HLTMenuConfig.Electron.ElectronRecoSequences import l2CaloRecoCfg
l2CaloReco = RecoFragmentsPool.retrieve( l2CaloRecoCfg, flags ) l2CaloReco = RecoFragmentsPool.retrieve( l2CaloRecoCfg, flags )
......
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
from TrigUpgradeTest.ElectronMenuConfig import l2CaloRecoCfg, l2CaloHypoCfg from TriggerMenuMT.HLTMenuConfig.Electron.ElectronRecoSequences import l2CaloRecoCfg, l2CaloHypoCfg
from TrigUpgradeTest.PhotonMenuConfig import l2PhotonRecoCfg, l2PhotonHypoCfg from TriggerMenuMT.HLTMenuConfig.Photon.PhotonRecoSequences import l2PhotonRecoCfg, l2PhotonHypoCfg
from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import MenuSequence, \ from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import MenuSequence, \
ChainStep, Chain, getChainStepName, createStepView ChainStep, Chain, getChainStepName, createStepView
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
......
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
###########################################################################
# SliceDef file for Muon chains
###########################################################################
from AthenaCommon.Logging import logging
log = logging.getLogger( 'TriggerMenuMT.HLTMenuConfig.Muon.generateChainConfigs' )
logging.getLogger().info("Importing %s",__name__)
from TriggerMenuMT.HLTMenuConfig.Menu.ChainDictTools import splitChainDict
from TriggerMenuMT.HLTMenuConfig.Tau.TauChainConfiguration import TauChainConfiguration as TauChainConfiguration
def generateChainConfigs(chainDict):
listOfChainDicts = splitChainDict(chainDict)
listOfChainDefs=[]
for subChainDict in listOfChainDicts:
Tau = TauChainConfiguration(subChainDict).assembleChain()
listOfChainDefs += [Tau]
log.debug('length of chaindefs %s', len(listOfChainDefs) )
if len(listOfChainDefs)>1:
log.warning("Implement case for multi-electron chain!!")
theChainDef = listOfChainDefs[0] #needs to be implemented properly
else:
theChainDef = listOfChainDefs[0]
log.debug("theChainDef.name: %s" , theChainDef.name)
log.debug("theChainDef.seed: %s" , theChainDef.seed)
log.debug("theChainDef.ChainSteps: %s" , theChainDef.steps)
return theChainDef
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
########################################################################
#
# SliceDef file for muon chains/signatures
#
#########################################################################
from AthenaCommon.Logging import logging
logging.getLogger().info("Importing %s",__name__)
log = logging.getLogger("TriggerMenuMT.HLTMenuConfig.Tau.TauChainConfiguration")
from TriggerMenuMT.HLTMenuConfig.Menu.ChainConfigurationBase import ChainConfigurationBase, RecoFragmentsPool
from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import ChainStep
from TriggerMenuMT.HLTMenuConfig.Tau.TauMenuSequences import tauCaloMenuSequence, tauCoreTrackSequence
from TrigUpgradeTest.InDetSetup import inDetSetup
#--------------------------------------------------------
# fragments generating config will be functions in new JO
#--------------------------------------------------------
def getTauCaloCfg(flags):
return tauCaloMenuSequence("Tau")
def getTauCoreTrackCfg(flags):
return tauCoreTrackSequence()
#############################################
### Class/function to configure muon chains
#############################################
class TauChainConfiguration(ChainConfigurationBase):
def __init__(self, chainDict):
ChainConfigurationBase.__init__(self,chainDict)
# ----------------------
# Assemble the chain depending on information from chainName
# ----------------------
def assembleChain(self):
chainSteps = []
log.debug("Assembling chain for " + self.chainName)
# Calling inDetSetup here
inDetSetup()
# --------------------
# define here the names of the steps and obtain the chainStep configuration
# --------------------
stepDictionary = {
"ptonly":[self.getCaloSeq(), self.getTrackCore()],
"tracktwo":[self.getCaloSeq(), self.getTrackCore()],
}
# this should be extended by the signature expert to make full use of the dictionary!
key = self.chainPart['preselection']
steps=stepDictionary[key]
for step in steps:
chainSteps+=[step]
myChain = self.buildChain(chainSteps)
return myChain
# --------------------
def getCaloSeq(self):
stepName = 'Step1_tau'
log.debug("Configuring step " + stepName)
tauSeq = RecoFragmentsPool.retrieve( getTauCaloCfg, None)
return ChainStep(stepName, [tauSeq])
# --------------------
def getTrackCore(self):
stepName = 'Step2_tau'
log.debug("Configuring step " + stepName)
tauSeq = RecoFragmentsPool.retrieve( getTauCoreTrackCfg, None)
return ChainStep(stepName, [tauSeq])
# --------------------
...@@ -9,7 +9,7 @@ from AthenaConfiguration.AllConfigFlags import ConfigFlags ...@@ -9,7 +9,7 @@ from AthenaConfiguration.AllConfigFlags import ConfigFlags
from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import MenuSequence, RecoFragmentsPool from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import MenuSequence, RecoFragmentsPool
from AthenaCommon.CFElements import parOR, seqAND from AthenaCommon.CFElements import parOR, seqAND
from ViewAlgs.ViewAlgsConf import EventViewCreatorAlgorithm from ViewAlgs.ViewAlgsConf import EventViewCreatorAlgorithm
from TrigUpgradeTest.tauDefs import tauCaloSequence from TriggerMenuMT.HLTMenuConfig.Tau.TauRecoSequences import tauCaloSequence
# ==================================================================================================== # ====================================================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment