Skip to content
Snippets Groups Projects
Commit 6f86b596 authored by scott snyder's avatar scott snyder
Browse files

MuonD3PDMaker: Create MCTruthClassifier cache.

    
Create MCTruthClassifier cache where needed.
Fixes crashes observed in master.
parent 2fee142c
No related branches found
No related tags found
1 merge request!20779WIP: Migrate DataQualityTools to ToolHandles
......@@ -75,7 +75,9 @@ StatusCode MuonGenParticleAssociationTool::book ()
const xAOD::TruthParticle*
MuonGenParticleAssociationTool::get (const xAOD::Muon& p)
{
IMCTruthClassifier::Cache cache;
IMCTruthClassifier::Info info;
info.extrapolationCache = &cache;
const xAOD::TruthParticle* out = 0;
if (m_classifier->particleTruthClassifier (&p, &info).first !=
MCTruthPartClassifier::Unknown)
......
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