Skip to content
Snippets Groups Projects

Do not change index type when creating track HepMcParticleLinks from such links.

2 files
+ 42
10
Compare changes
  • Side-by-side
  • Inline
Files
2
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
// $Id: TrackParticleCnvAlg.cxx 298303 2013-12-05 08:41:30Z emoyse $
@@ -249,6 +249,7 @@ namespace xAODMaker {
ATH_MSG_ERROR("Couldn't convert aod to xaod (" << xaod.name() << ") with the converting tool");
return -1;
}
// Create the xAOD objects:
xAOD::TrackParticleContainer::iterator itr_xaod = xaod->begin();
xAOD::TrackParticleContainer::iterator end_xaod = xaod->end();
@@ -382,6 +383,11 @@ namespace xAODMaker {
ATH_MSG_VERBOSE("Got truth type " << static_cast<int>(type) << " origin " << static_cast<int>(origin));
}
}
else {
if (result->second.particleLink().barcode()>0) {
ATH_MSG_WARNING( "No associated xAOD truth for valid truth link " << result->second.particleLink());
}
}
}
}
Loading