From b8c7030f5340f96c88ee2bafc48cbbb214c7e91d Mon Sep 17 00:00:00 2001
From: Tomasz Bold <tomasz.bold@gmail.com>
Date: Thu, 22 Sep 2016 12:04:52 +0200
Subject: [PATCH] fixed eta cut in TTCalo sum hypo to cover fcal
 (TrigHIHypo-00-00-83)

	* fixed eta cut in TTCalo sum hypo to cover fcal
	* TrigHIHypo-00-00-83


Former-commit-id: 50eac7a717b4f3f2d5a32da0c2d8049c59cc9e55
---
 Trigger/TrigHypothesis/TrigHIHypo/python/GapHypos.py  |  4 ++--
 .../TrigHIHypo/src/UltraCentralHypo.cxx               | 11 +++++++----
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/Trigger/TrigHypothesis/TrigHIHypo/python/GapHypos.py b/Trigger/TrigHypothesis/TrigHIHypo/python/GapHypos.py
index b3a8ad50511..00f5e787714 100644
--- a/Trigger/TrigHypothesis/TrigHIHypo/python/GapHypos.py
+++ b/Trigger/TrigHypothesis/TrigHIHypo/python/GapHypos.py
@@ -19,9 +19,9 @@ class GapHypoMonitoring(TrigGenericMonitoringToolConfig):
 
 
 
-ttFgapA = UltraCentralHypo("TTFgapA", EtaMin=3.2, EtaMax=5., FcalEtUpperBound=2*GeV)
+ttFgapA = UltraCentralHypo("TTFgapA", EtaMin=3.1, EtaMax=5., FcalEtUpperBound=2*GeV)
 ttFgapA.AthenaMonTools += [ GapHypoMonitoring(name="GapHypoMonitoring")]
-ttFgapC = UltraCentralHypo("TTFgapC", EtaMin=-5, EtaMax=-3.2,  FcalEtUpperBound=2*GeV)
+ttFgapC = UltraCentralHypo("TTFgapC", EtaMin=-5, EtaMax=-3.1,  FcalEtUpperBound=2*GeV)
 ttFgapC.AthenaMonTools += [ GapHypoMonitoring(name="GapHypoMonitoring")]
 
 cellFgapA = UltraCentralHypo("CellsFgapA", EtaMin=3.2, EtaMax=5., FcalEtUpperBound=2*GeV)
diff --git a/Trigger/TrigHypothesis/TrigHIHypo/src/UltraCentralHypo.cxx b/Trigger/TrigHypothesis/TrigHIHypo/src/UltraCentralHypo.cxx
index c44fdc63503..fa3328971a3 100644
--- a/Trigger/TrigHypothesis/TrigHIHypo/src/UltraCentralHypo.cxx
+++ b/Trigger/TrigHypothesis/TrigHIHypo/src/UltraCentralHypo.cxx
@@ -34,7 +34,7 @@ HLT::ErrorCode UltraCentralHypo::hltExecute(const HLT::TriggerElement* outputTE,
   pass = false;
   
   m_Tot_Et = 0; // this must be 0 because our loop starts from it
-  m_Tot_Et_passing = -1; // this will only get assigned when we pass
+  m_Tot_Et_passing = -1e6; // this will only get assigned when we pass
   
   const xAOD::HIEventShapeContainer* evtShape;
   ///*
@@ -51,11 +51,14 @@ HLT::ErrorCode UltraCentralHypo::hltExecute(const HLT::TriggerElement* outputTE,
   int size=evtShape->size();
   for(int i=0;i<size;i++){
     const xAOD::HIEventShape *sh=evtShape->at(i);
-    float Et     =  sh->et();
+    const float Et     =  sh->et();
+    const float etaMin =  sh->etaMin();
+    const float etaMax =  sh->etaMax();
+    //    ATH_MSG_WARNING("ET " << Et << " etaMin " << etaMin << " etaMax " << etaMax);
     if(Et==0) continue;
     
-    if ( sh->etaMin() < m_Eta_min ) continue;
-    if ( sh->etaMax() > m_Eta_max ) continue;
+    if ( etaMin < m_Eta_min ) continue;
+    if ( etaMax > m_Eta_max ) continue;
     //    float eta=(sh->etaMin()+sh->etaMax())/2.0;
     //    if(fabs(eta)<3.2) continue;//FCal Only
     
-- 
GitLab