Skip to content
Snippets Groups Projects
Commit be8b2ae5 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'cherry-pick-0699078b [formerly fc98218747]-21.0' into '21.0'

Sweeping !15419 from 21.2 to 21.0.
Fix MET_Truth muon selections for IntOut and IntMuons terms

See merge request atlas/athena!15481

Former-commit-id: 581598068e8731c7d5677f749b32b1b8cf8756bd
parents 53a8d3c6 3d792196
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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