Skip to content
Snippets Groups Projects

const correctness changes

Merged Gerhard Raven requested to merge fix-const-correctness into master
Files
8
@@ -188,13 +188,13 @@ void CaloPIDsChecker::operator()( const Input& pidTable, const Inputs& tracks, c
if ( accTable.relations( track ).front().to() == false ) continue;
// get MC truth
double maxWeight{0};
LHCb::MCParticle* mcp{nullptr};
double maxWeight{0};
const LHCb::MCParticle* mcp{nullptr};
links.applyToLinks( track->key(),
[&maxWeight, &mcp, &mcParts]( unsigned int, unsigned int mcPartKey, float weight ) {
if ( weight > maxWeight ) {
maxWeight = weight;
mcp = static_cast<LHCb::MCParticle*>( mcParts.containedObject( mcPartKey ) );
mcp = static_cast<const LHCb::MCParticle*>( mcParts.containedObject( mcPartKey ) );
}
} );
Loading