Skip to content

Commit 5938163

Browse files
rolavickalibuild
andauthored
[PWGUD] Update of personal task (#9047)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent ec69148 commit 5938163

File tree

2 files changed

+80
-28
lines changed

2 files changed

+80
-28
lines changed

PWGUD/Core/UPCTauCentralBarrelHelperRL.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,22 @@ float rapidity(float mass, float px, float py, float pz)
206206
return 0.5 * std::log((energy(mass, px, py, pz) + pz) / (energy(mass, px, py, pz) - pz));
207207
}
208208

209-
double calculateAcoplanarity(double phi_trk1, double phi_trk2)
209+
double calculateAcoplanarity(double phiTrk1, double phiTrk2)
210210
// Function to calculate acoplanarity of two tracks based on phi of both tracks, which is in interval (0,2*pi)
211211
{
212-
double aco = std::abs(phi_trk1 - phi_trk2);
212+
double aco = std::abs(phiTrk1 - phiTrk2);
213213
if (aco <= o2::constants::math::PI)
214214
return aco;
215215
else
216216
return (o2::constants::math::TwoPI - aco);
217217
}
218218

219+
double calculateCollinearity(double etaTrk1, double etaTrk2, double phiTrk1, double phiTrk2)
220+
// Function to calculate deltaR(trk1,trk2) = sqrt(deltaEta^2+deltaPhi^2)
221+
{
222+
return std::sqrt(etaTrk1 * etaTrk2 + phiTrk1 * phiTrk2);
223+
}
224+
219225
template <typename Ps>
220226
int countPhysicalPrimary(Ps particles)
221227
// Function to loop over particles associated to a mcCollision and return total of physical primary particles

0 commit comments

Comments
 (0)