Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BongHwi committed Dec 6, 2024
1 parent 9750779 commit 52d4f45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PWGLF/TableProducer/Resonances/resonanceInitializer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,15 @@
#include "DataFormatsParameters/GRPObject.h"
#include "DataFormatsParameters/GRPMagField.h"
#include "CCDB/BasicCCDBManager.h"
#include "CommonConstants/PhysicsConstants.h"
#include "CommonConstants/MathConstants.h"

using namespace o2;
using namespace o2::framework;
using namespace o2::framework::expressions;
using namespace o2::soa;
using namespace o2::constants::physics;
using namespace o2::constants::math;

/// Initializer for the resonance candidate producers
struct ResonanceInitializer {
Expand Down Expand Up @@ -416,12 +420,12 @@ struct ResonanceInitializer {
// sum += pt * abs(sin(phiparm - phi));
sum += std::abs(px * ny - py * nx);
}
float sph = std::power((sum / ptSum), 2);
float sph = std::pow((sum / ptSum), 2);
if (sph < tempSph)
tempSph = sph;
}

return std::power(PIHalf, 2) * tempSph;
return std::pow(PIHalf, 2) * tempSph;
}

template <typename ResoColl>
Expand Down

0 comments on commit 52d4f45

Please sign in to comment.