Skip to content
Snippets Groups Projects
Commit cb55afce authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'cherry-pick-ef928f8e16-master' into 'master'

Sweeping !14721 from 21.1 to master.
Fix for UCC triggers in HI_v5 menu

See merge request atlas/athena!14754
parents 217bc039 d6d9a9c3
No related branches found
No related tags found
1 merge request!20779WIP: Migrate DataQualityTools to ToolHandles
...@@ -23,6 +23,8 @@ class UltraCentral(UltraCentralHypo): ...@@ -23,6 +23,8 @@ class UltraCentral(UltraCentralHypo):
super( UltraCentralHypo, self ).__init__( name ) super( UltraCentralHypo, self ).__init__( name )
self.FcalEtLowerBound = minCut self.FcalEtLowerBound = minCut
self.FcalEtUpperBound = maxCut self.FcalEtUpperBound = maxCut
self.EtaMin = 3.2
self.isFgap = False
self.AthenaMonTools += [UltraCentralMonitoring(name="UltraCentralMonitoring")] self.AthenaMonTools += [UltraCentralMonitoring(name="UltraCentralMonitoring")]
class UltraCentral_PT(UltraCentralHypo): class UltraCentral_PT(UltraCentralHypo):
...@@ -31,11 +33,13 @@ class UltraCentral_PT(UltraCentralHypo): ...@@ -31,11 +33,13 @@ class UltraCentral_PT(UltraCentralHypo):
super( UltraCentralHypo, self ).__init__( name ) super( UltraCentralHypo, self ).__init__( name )
self.forceAccept = True self.forceAccept = True
self.FcalEtLowerBound = 5000. self.FcalEtLowerBound = 5000.
self.EtaMin = 3.2
self.isFgap = False
self.AthenaMonTools += [UltraCentralMonitoring(name="UltraCentralMonitoring")] self.AthenaMonTools += [UltraCentralMonitoring(name="UltraCentralMonitoring")]
UCC_th = {"th1": UltraCentral("UCCHypo_th1", 4172*GeV, 5200*GeV), UCC_th = {"th1": UltraCentral("UCCHypo_th1", 3610*GeV, 5200*GeV),
"th2": UltraCentral("UCCHypo_th2", 4326*GeV, 5200*GeV), "th2": UltraCentral("UCCHypo_th2", 4080*GeV, 5200*GeV),
"th3": UltraCentral("UCCHypo_th3", 4500*GeV, 5200*GeV) } "th3": UltraCentral("UCCHypo_th3", 4500*GeV, 5200*GeV) }
......
...@@ -17,6 +17,7 @@ UltraCentralHypo::UltraCentralHypo(const std::string& name, ISvcLocator* pSvcLoc ...@@ -17,6 +17,7 @@ UltraCentralHypo::UltraCentralHypo(const std::string& name, ISvcLocator* pSvcLoc
declareProperty("FcalEtLowerBound", m_FcalEt_min=-1.e10, "Lower bound of passing values, negative means -inf."); declareProperty("FcalEtLowerBound", m_FcalEt_min=-1.e10, "Lower bound of passing values, negative means -inf.");
declareProperty("EtaMin", m_Eta_min=-3.25, "Lower bound of slice taken into calculation"); declareProperty("EtaMin", m_Eta_min=-3.25, "Lower bound of slice taken into calculation");
declareProperty("EtaMax", m_Eta_max=3.25, "Upper bound of slice taken into calculation"); declareProperty("EtaMax", m_Eta_max=3.25, "Upper bound of slice taken into calculation");
declareProperty("isFgap", m_isFgap=true, "Eta cuts for FGap or UCC chains");
} }
...@@ -54,14 +55,20 @@ HLT::ErrorCode UltraCentralHypo::hltExecute(const HLT::TriggerElement* outputTE, ...@@ -54,14 +55,20 @@ HLT::ErrorCode UltraCentralHypo::hltExecute(const HLT::TriggerElement* outputTE,
const float Et = sh->et(); const float Et = sh->et();
const float etaMin = sh->etaMin(); const float etaMin = sh->etaMin();
const float etaMax = sh->etaMax(); const float etaMax = sh->etaMax();
// ATH_MSG_WARNING("ET " << Et << " etaMin " << etaMin << " etaMax " << etaMax); //ATH_MSG_DEBUG("ET " << Et << " etaMin " << etaMin << " etaMax " << etaMax);
if(Et==0) continue; if(Et==0) continue;
if ( etaMin < m_Eta_min ) continue; //For Fgap chains
if ( etaMax > m_Eta_max ) continue; if (m_isFgap){
// float eta=(sh->etaMin()+sh->etaMax())/2.0; if ( etaMin < m_Eta_min ) continue;
// if(fabs(eta)<3.2) continue;//FCal Only if ( etaMax > m_Eta_max ) continue;
}
//For UCC chains
else{
if ( fabs(etaMin) < m_Eta_min ) continue;
//float eta=(sh->etaMin()+sh->etaMax())/2.0;
//if(fabs(eta)<3.2) continue;//FCal Only
}
m_Tot_Et+=Et; m_Tot_Et+=Et;
} }
......
...@@ -26,4 +26,5 @@ private: ...@@ -26,4 +26,5 @@ private:
float m_FcalEt_max; float m_FcalEt_max;
float m_Eta_min; float m_Eta_min;
float m_Eta_max; float m_Eta_max;
bool m_isFgap;
}; };
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