Commit dd7e9f3f authored by Nicolas Koehler's avatar Nicolas Koehler Committed by Walter Lampl
Browse files

Fix logic when running MuonLayerHoughTool on truth (ATLASRECTS-5312)

parent 75dc648b
......@@ -64,7 +64,8 @@ namespace Muon {
initializeSectorMapping();
if( m_truthNames.empty() && !m_doTruth ){
// if m_truthNames is empty, fill it if running on truth
if( m_truthNames.empty() && m_doTruth ){
std::string postfix = "_TruthMap";
std::string allNames("");
for( unsigned int tech=0; tech<m_ntechnologies;++tech ){
......@@ -75,7 +76,7 @@ namespace Muon {
}
ATH_MSG_DEBUG("TruthMaps " << allNames );
}
if(!m_doTruth){ m_truthNames.clear(); } //Nullify if not using collections
if(!m_doTruth){ m_truthNames.clear(); } //Nullify if not using collections
ATH_CHECK( m_truthNames.initialize() );
if(m_doNtuple && m_doTruth){
......
......@@ -448,7 +448,10 @@ def DCMathT0FitSegmentMaker(name='DCMathT0FitSegmentMaker',extraFlags=None,**kwa
# end of factory function DCMathSegmentMaker
def MuonLayerHoughTool(name='MuonLayerHoughTool',extraFlags=None,**kwargs):
kwargs.setdefault("DoTruth", rec.doTruth() )
if TriggerFlags.MuonSlice.doTrigMuonConfig:
kwargs.setdefault("DoTruth", False)
else:
kwargs.setdefault("DoTruth", rec.doTruth())
return CfgMgr.Muon__MuonLayerHoughTool(name,**kwargs)
def MuonSegmentFittingTool(name='MuonSegmentFittingTool',extraFlags=None,**kwargs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment