Skip to content

Commit cff19ae

Browse files
committed
fixes to jetCorrelationD0.cxx task
1 parent 8c53f9b commit cff19ae

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

PWGJE/Tasks/jetCorrelationD0.cxx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
#include "Framework/HistogramRegistry.h"
2828
#include "Framework/Logger.h"
2929
#include "Framework/runDataProcessing.h"
30-
#include <Framework/ASoA.h>
31-
#include <Framework/HistogramSpec.h>
32-
33-
#include <fairlogger/Logger.h>
3430

3531
#include <string>
3632
#include <vector>
@@ -103,8 +99,8 @@ DECLARE_SOA_TABLE(D0McPTables, "AOD", "D0MCPARTICLELEVELTABLE",
10399
namespace jetInfo
104100
{
105101
// D0 tables
106-
DECLARE_SOA_INDEX_COLUMN(D0DataTable, d0Data);
107-
DECLARE_SOA_INDEX_COLUMN(D0McPTable, d0MCP);
102+
DECLARE_SOA_INDEX_COLUMN(D0DataTable, d0DataTable);
103+
DECLARE_SOA_INDEX_COLUMN(D0McPTable, d0McPTable);
108104
// Jet
109105
DECLARE_SOA_COLUMN(JetPt, jetPt, float);
110106
DECLARE_SOA_COLUMN(JetEta, jetEta, float);
@@ -202,7 +198,7 @@ struct JetCorrelationD0 {
202198
{
203199
for (const auto& jetBase : jetsBase) {
204200
if (jetBase.has_matchedJetGeo()) { // geometric matching
205-
for (auto& jetTag : jetBase.template matchedJetGeo_as<std::decay_t<U>>()) {
201+
for (auto const& jetTag : jetBase.template matchedJetGeo_as<std::decay_t<U>>()) {
206202
registry.fill(HIST("hPtMatched"), jetBase.pt() - (rho * jetBase.area()), jetTag.pt(), weight);
207203
registry.fill(HIST("hPtMatched1d"), jetTag.pt(), weight);
208204
registry.fill(HIST("hPhiMatched"), jetBase.phi(), jetTag.phi(), weight);
@@ -280,7 +276,7 @@ struct JetCorrelationD0 {
280276
continue;
281277
}
282278
float dphi = RecoDecay::constrainAngle(jet.phi() - d0Candidate.phi());
283-
if (abs(dphi - M_PI) > (M_PI / 2)) { // this is quite loose instead of pi/2 could do 0.6
279+
if (std::abs(dphi - o2::constants::math::PI) > (o2::constants::math::PI / 2)) { // this is quite loose instead of pi/2 could do 0.6
284280
continue;
285281
}
286282
fillJetHistograms(jet, dphi);
@@ -323,7 +319,7 @@ struct JetCorrelationD0 {
323319
continue;
324320
}
325321
float dphi = RecoDecay::constrainAngle(jet.phi() - d0Candidate.phi());
326-
if (abs(dphi - M_PI) > (M_PI / 2)) { // this is quite loose instead of pi/2 could do 0.6
322+
if (std::abs(dphi - o2::constants::math::PI) > (o2::constants::math::PI / 2)) { // this is quite loose instead of pi/2 could do 0.6
327323
continue;
328324
}
329325
fillJetHistograms(jet, dphi);
@@ -362,7 +358,7 @@ struct JetCorrelationD0 {
362358
continue;
363359
}
364360
float dphi = RecoDecay::constrainAngle(jet.phi() - d0MCPCandidate.phi());
365-
if (abs(dphi - M_PI) > (M_PI / 2)) {
361+
if (std::abs(dphi - o2::constants::math::PI) > (o2::constants::math::PI / 2)) {
366362
continue;
367363
}
368364
fillJetHistograms(jet, dphi);

0 commit comments

Comments
 (0)