Skip to content
Snippets Groups Projects
Commit c8ba8820 authored by Daniele Zanzi's avatar Daniele Zanzi Committed by John Derek Chapman
Browse files

Tau trigger: fix for dR hypo (ATR-19359)

parent 566e615b
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ HLT::ErrorCode EFTauTopoHypo::hltExecute(const HLT::TriggerElement* inputTE, boo
m_cutCounter++;
m_monDRall = m_dR;
if(m_dR<0.1){
ATH_MSG_WARNING("EFTauTopoHypo: pair with dR "<<m_dR);
ATH_MSG_DEBUG("EFTauTopoHypo: pair with dR "<<m_dR);
}
if( m_dR>=m_dRmin && m_dR<m_dRmax ){
......
......@@ -516,12 +516,18 @@ def _adddR(theChainDef,chainDicts,listOfChainDefs):
for iS in range(0, len(theChainDef.signatureList) ):
inputTE_taus_tmp=[]
for TE in theChainDef.signatureList[iS]['listOfTriggerElements'] :
if 'EF_e' in TE or 'EF_mu' in TE:
el_TE = re.compile('_e[0-9]')
mu_TE = re.compile('_mu[0-9]')
tau_TE = re.compile('_tau[0-9]')
if 'EF_' in TE and ('_e' in TE or '_mu' in TE):
# last lepton TE
inputTE_lepton=TE
if 'EF_e' in TE: chain_type = "eltau"
if 'EF_mu' in TE: chain_type = "mutau"
if 'EF_tau' in TE:
if len(re.findall(el_TE, TE)):
inputTE_lepton=TE
chain_type = "eltau"
elif len(re.findall(mu_TE, TE)):
inputTE_lepton=TE
chain_type = "mutau"
if 'EF_' in TE and len(re.findall(tau_TE, TE)):
inputTE_taus_tmp+=[TE]
if len(inputTE_taus_tmp)>0:
# last set of tau TEs
......@@ -535,6 +541,7 @@ def _adddR(theChainDef,chainDicts,listOfChainDefs):
if len(inputTEsEF)!=2:
log.error("dRtt: found %d TEs instead of 2", len(inputTEsEF))
log.error(inputTEsEF)
maxdR=-1
mindR=-1
......
......@@ -638,7 +638,7 @@ class GenerateMenu:
if doTopo:
log.info('run generateCombinedChainDefs')
theChainDef = TriggerMenu.combined.generateCombinedChainDefs._addTopoInfo(theChainDef,chainDicts,listOfChainDefs)
log.info(theChainDef)
return theChainDef
......
......@@ -54,7 +54,7 @@ def generateChainDefs(chainDict):
#add support for topological algorithms
if chainDict["topo"]:
log.info("Adding Tau Topological Algorithm(s) to chain")
log.debug("Adding Tau Topological Algorithm(s) to chain")
theChainDef = _addTopoInfo(theChainDef,chainDict)
return theChainDef
......
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