Commit 0b873ca4 authored by Pablo Martinez Agullo's avatar Pablo Martinez Agullo
Browse files

Fix std::abs

parent 8c46406a
......@@ -275,7 +275,7 @@ namespace top {
float min_pt =0;
for (const xAOD::TruthParticle* particle : *truthParticles) {
if (particle == nullptr) continue;
if (abs(particle->pdgId()) > 4) continue; //only light quarks
if (std::abs(particle->pdgId()) > 4) continue; //only light quarks
for (size_t iparent = 0; iparent < particle->nParents(); ++iparent) {
if (particle->parent(iparent) == nullptr){
......
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