Skip to content

Commit

Permalink
Harmonize pixelType determination in CMSSW with the standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
VourMa committed Aug 25, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
sei-vsarvepalli Vijay Sarvepalli
1 parent bb8402d commit b5a1383
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RecoTracker/LSTCore/src/alpaka/LST.dev.cc
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
using namespace ALPAKA_ACCELERATOR_NAMESPACE;

#include "Math/Vector3D.h"
#include "Math/VectorUtil.h"
using XYZVector = ROOT::Math::XYZVector;

namespace {
@@ -93,7 +94,8 @@ void ALPAKA_ACCELERATOR_NAMESPACE::lst::LST::prepareInput(std::vector<float> con
XYZVector p3PCA(see_px[iSeed], see_py[iSeed], see_pz[iSeed]);
XYZVector r3PCA(calculateR3FromPCA(p3PCA, see_dxy[iSeed], see_dz[iSeed]));

float pixelSegmentDeltaPhiChange = (r3LH - p3LH).phi();
// The charge could be used directly in the line below
float pixelSegmentDeltaPhiChange = ROOT::Math::VectorUtil::DeltaPhi(r3LH, p3LH);
float etaErr = see_etaErr[iSeed];
float px = p3LH.x();
float py = p3LH.y();
1 change: 1 addition & 0 deletions RecoTracker/LSTCore/standalone/code/core/trkCore.cc
Original file line number Diff line number Diff line change
@@ -710,6 +710,7 @@ void addInputsToLineSegmentTrackingPreLoad(std::vector<std::vector<float>> &out_
TVector3 seedSD_r3 = r3LH;
TVector3 seedSD_p3 = p3LH;

// The charge could be used directly in the line below
float pixelSegmentDeltaPhiChange = r3LH.DeltaPhi(p3LH);
float etaErr = trk.see_etaErr()[iSeed];
float px = p3LH.X();

0 comments on commit b5a1383

Please sign in to comment.