Commit 0699078b authored by Nils Erik Krumnack's avatar Nils Erik Krumnack
Browse files

Merge branch '21.2-TruthMETMuonsFix' into '21.2'

Fix MET_Truth muon selections for IntOut and IntMuons terms

See merge request atlas/athena!15419

Former-commit-id: fc98218747a563d6d74c3c239ef183ebbcd6c4db
parents 51f2c5b5 6020b46c
......@@ -167,9 +167,13 @@ namespace met {
bool METTruthTool::accept_intout(const xAOD::TruthParticle* truth) const
{
ATH_MSG_VERBOSE("Check intout");
// not in acceptance (calo or MS)
if( (truth->isMuon() && fabs(truth->eta())<m_truthmu_maxEta) ||
(fabs(truth->eta())<m_det_maxEta) ) return false;
// muon outside MS acceptance
if( truth->isMuon() ) {
if( fabs(truth->eta())<m_truthmu_maxEta) return false;
} else {
// other particle outside calo acceptance
if( (fabs(truth->eta())<m_det_maxEta) ) return false;
}
// stable
if(!MC::isGenStable(truth->status(),truth->barcode())) return false;
// interacting
......@@ -186,7 +190,7 @@ namespace met {
// stable
if(!MC::isGenStable(truth->status(),truth->barcode())) return false;
// in acceptance
if(truth->pt()<m_truthmu_minPt && fabs(truth->eta())>m_truthmu_maxEta) return false;
if(truth->pt()<m_truthmu_minPt || fabs(truth->eta())>m_truthmu_maxEta) return false;
return true;
}
......
Supports Markdown
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