Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions k4Reco/GaudiTrkUtils/include/GaudiDDKalTestTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ class GaudiDDKalTestTrack {
int propagate(const edm4hep::Vector3d& point, const TKalTrackSite& site, edm4hep::TrackState& ts, double& chi2,
int& ndf, const DDVMeasLayer* ml = nullptr);

// Used by Pandora to propagate the refitted tracks
int propagateToLayer(int layerID, edm4hep::TrackState& ts, double& chi2, int& ndf, int& detElementID, int mode);

/** propagate the fit at the measurement site associated with the given hit, to numbered sensitive layer,
* returning TrackState, chi2, ndf and integer ID of sensitive detector element via reference
*/
Expand Down
7 changes: 7 additions & 0 deletions k4Reco/GaudiTrkUtils/src/GaudiDDKalTestTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,13 @@ int GaudiDDKalTestTrack::propagate(const edm4hep::Vector3d& point, const TKalTra
return 0;
}

int GaudiDDKalTestTrack::propagateToLayer(int layerID, edm4hep::TrackState& ts, double& chi2, int& ndf,
int& detElementID, int mode) {
const auto& site = *static_cast<const TKalTrackSite*>(m_kaltrack->Last());

return this->propagateToLayer(layerID, site, ts, chi2, ndf, detElementID, mode);
}

int GaudiDDKalTestTrack::propagateToLayer(int layerID, const edm4hep::TrackerHit* trkhit, edm4hep::TrackState& ts,
double& chi2, int& ndf, int& detElementID, int mode) {
TKalTrackSite* site = nullptr;
Expand Down