|
27 | 27 | #include "Framework/HistogramRegistry.h" |
28 | 28 | #include "Framework/Logger.h" |
29 | 29 | #include "Framework/runDataProcessing.h" |
30 | | -#include <Framework/ASoA.h> |
31 | | -#include <Framework/HistogramSpec.h> |
32 | | - |
33 | | -#include <fairlogger/Logger.h> |
34 | 30 |
|
35 | 31 | #include <string> |
36 | 32 | #include <vector> |
@@ -103,8 +99,8 @@ DECLARE_SOA_TABLE(D0McPTables, "AOD", "D0MCPARTICLELEVELTABLE", |
103 | 99 | namespace jetInfo |
104 | 100 | { |
105 | 101 | // 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); |
108 | 104 | // Jet |
109 | 105 | DECLARE_SOA_COLUMN(JetPt, jetPt, float); |
110 | 106 | DECLARE_SOA_COLUMN(JetEta, jetEta, float); |
@@ -202,7 +198,7 @@ struct JetCorrelationD0 { |
202 | 198 | { |
203 | 199 | for (const auto& jetBase : jetsBase) { |
204 | 200 | 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>>()) { |
206 | 202 | registry.fill(HIST("hPtMatched"), jetBase.pt() - (rho * jetBase.area()), jetTag.pt(), weight); |
207 | 203 | registry.fill(HIST("hPtMatched1d"), jetTag.pt(), weight); |
208 | 204 | registry.fill(HIST("hPhiMatched"), jetBase.phi(), jetTag.phi(), weight); |
@@ -280,7 +276,7 @@ struct JetCorrelationD0 { |
280 | 276 | continue; |
281 | 277 | } |
282 | 278 | 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 |
284 | 280 | continue; |
285 | 281 | } |
286 | 282 | fillJetHistograms(jet, dphi); |
@@ -323,7 +319,7 @@ struct JetCorrelationD0 { |
323 | 319 | continue; |
324 | 320 | } |
325 | 321 | 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 |
327 | 323 | continue; |
328 | 324 | } |
329 | 325 | fillJetHistograms(jet, dphi); |
@@ -362,7 +358,7 @@ struct JetCorrelationD0 { |
362 | 358 | continue; |
363 | 359 | } |
364 | 360 | 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)) { |
366 | 362 | continue; |
367 | 363 | } |
368 | 364 | fillJetHistograms(jet, dphi); |
|
0 commit comments