|
36 | 36 | #include <cmath> |
37 | 37 | #include <string> |
38 | 38 | #include <vector> |
| 39 | + |
39 | 40 | #include <math.h> |
40 | 41 |
|
41 | 42 | using namespace o2; |
@@ -136,7 +137,7 @@ struct JetBackgroundAnalysis { |
136 | 137 | for (auto const& track : tracks) { |
137 | 138 | if (jetderiveddatautilities::selectTrack(track, trackSelection)) { |
138 | 139 | float dPhi = RecoDecay::constrainAngle(randomNumber.Uniform(0.0, o2::constants::math::TwoPI) - randomConePhi, static_cast<float>(-o2::constants::math::PI)); // ignores actual phi of track |
139 | | - float dEta = randomNumber.Uniform(trackEtaMin, trackEtaMax) - randomConeEta; // ignores actual eta of track |
| 140 | + float dEta = randomNumber.Uniform(trackEtaMin, trackEtaMax) - randomConeEta; // ignores actual eta of track |
140 | 141 | if (std::sqrt(dEta * dEta + dPhi * dPhi) < randomConeR) { |
141 | 142 | randomConePt += track.pt(); |
142 | 143 | } |
@@ -179,7 +180,7 @@ struct JetBackgroundAnalysis { |
179 | 180 | for (auto const& track : tracks) { |
180 | 181 | if (jetderiveddatautilities::selectTrack(track, trackSelection)) { |
181 | 182 | float dPhi = RecoDecay::constrainAngle(randomNumber.Uniform(0.0, o2::constants::math::TwoPI) - randomConePhi, static_cast<float>(-o2::constants::math::PI)); // ignores actual phi of track |
182 | | - float dEta = randomNumber.Uniform(trackEtaMin, trackEtaMax) - randomConeEta; // ignores actual eta of track |
| 183 | + float dEta = randomNumber.Uniform(trackEtaMin, trackEtaMax) - randomConeEta; // ignores actual eta of track |
183 | 184 | if (std::sqrt(dEta * dEta + dPhi * dPhi) < randomConeR) { |
184 | 185 | if (!trackIsInJet(track, jets.iteratorAt(0))) { |
185 | 186 | randomConePtWithoutOneLeadJet += track.pt(); |
|
0 commit comments