Skip to content

Commit

Permalink
Code checks and format
Browse files Browse the repository at this point in the history
  • Loading branch information
VourMa committed Jul 30, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
sei-vsarvepalli Vijay Sarvepalli
1 parent 67c2376 commit c3f41a7
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions RecoTracker/LSTCore/src/alpaka/PixelTriplet.h
Original file line number Diff line number Diff line change
@@ -1484,8 +1484,7 @@ namespace lst {
float zpitch_OutLo = (isPS_OutLo ? kPixelPSZpitch : kStrip2SZpitch);
float zGeom = zpitch_InLo + zpitch_OutLo;

const float slope =
alpaka::math::asin(acc, alpaka::math::min(acc, rt_OutLo * k2Rinv1GeVf / ptCut, kSinAlphaMax));
const float slope = alpaka::math::asin(acc, alpaka::math::min(acc, rt_OutLo * k2Rinv1GeVf / ptCut, kSinAlphaMax));
const float dzDrtScale = alpaka::math::tan(acc, slope) / slope; //FIXME: need approximate value

const float dLum = alpaka::math::copysign(acc, kDeltaZLum, z_InUp);
6 changes: 2 additions & 4 deletions RecoTracker/LSTCore/src/alpaka/Quintuplet.h
Original file line number Diff line number Diff line change
@@ -1400,8 +1400,7 @@ namespace lst {
float coshEta = dr3_InSeg / drt_InSeg;
float dzErr = (zpitch_InLo + zpitch_OutLo) * (zpitch_InLo + zpitch_OutLo) * 2.f;

float thetaMuls2 =
(kMulsInGeV * kMulsInGeV) * (0.1f + 0.2f * (rt_OutLo - rt_InLo) / 50.f) * (r3_InLo / rt_InLo);
float thetaMuls2 = (kMulsInGeV * kMulsInGeV) * (0.1f + 0.2f * (rt_OutLo - rt_InLo) / 50.f) * (r3_InLo / rt_InLo);
float muls2 = thetaMuls2 * 9.f / (lst::ptCut * lst::ptCut) * 16.f;
dzErr += muls2 * drt_OutLo_InLo * drt_OutLo_InLo / 3.f * coshEta * coshEta;
dzErr = alpaka::math::sqrt(acc, dzErr);
@@ -1673,8 +1672,7 @@ namespace lst {
float kZ = (z_OutLo - z_InLo) / dzSDIn;
float drtErr =
zGeom1_another * zGeom1_another * drtSDIn * drtSDIn / dzSDIn / dzSDIn * (1.f - 2.f * kZ + 2.f * kZ * kZ);
const float thetaMuls2 =
(kMulsInGeV * kMulsInGeV) * (0.1f + 0.2f * (rt_OutLo - rt_InLo) / 50.f) * (rIn / rt_InLo);
const float thetaMuls2 = (kMulsInGeV * kMulsInGeV) * (0.1f + 0.2f * (rt_OutLo - rt_InLo) / 50.f) * (rIn / rt_InLo);
const float muls2 = thetaMuls2 * 9.f / (lst::ptCut * lst::ptCut) * 16.f;
drtErr += muls2 * multDzDr * multDzDr / 3.f * coshEta * coshEta;
drtErr = alpaka::math::sqrt(acc, drtErr);

0 comments on commit c3f41a7

Please sign in to comment.