Skip to content

Commit

Permalink
feat: support EDM4eic v3 TrackPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Sep 7, 2023
1 parent 42f07f4 commit f3f8708
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions JugTrack/src/components/TrackProjector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "Acts/EventData/MultiTrajectoryHelpers.hpp"

// Event Model related classes
#include "edm4eic/EDM4eicVersion.h"
#include "edm4eic/TrackerHitCollection.h"
#include "edm4eic/TrackParametersCollection.h"
#include "edm4eic/TrajectoryCollection.h"
Expand Down Expand Up @@ -178,8 +179,17 @@ namespace Jug::Reco {
const float pathLength = static_cast<float>(trackstate.pathLength());
const float pathLengthError = 0;

#if EDM4EIC_VERSION_MAJOR >= 3
uint64_t surface = 0; // trackstate.referenceSurface().geometryId().value(); FIXME - ASAN is not happy with this
uint32_t system = 0;
#endif

// Store track point
track_segment.addToPoints({
#if EDM4EIC_VERSION_MAJOR >= 3
surface,
system,
#endif
position,
positionError,
momentum,
Expand Down
10 changes: 10 additions & 0 deletions external/algorithms/acts/include/algorithms/acts/TrackProjector.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "Acts/EventData/MultiTrajectoryHelpers.hpp"

// Event Model related classes
#include "edm4eic/EDM4eicVersion.h"
#include "edm4eic/TrackerHitCollection.h"
#include "edm4eic/TrackParametersCollection.h"
#include "edm4eic/TrajectoryCollection.h"
Expand Down Expand Up @@ -179,8 +180,17 @@ namespace Jug::Reco {
const float pathLength = static_cast<float>(trackstate.pathLength());
const float pathLengthError = 0;

#if EDM4EIC_VERSION_MAJOR >= 3
uint64_t surface = 0; // trackstate.referenceSurface().geometryId().value(); FIXME - ASAN is not happy with this
uint32_t system = 0;
#endif

// Store track point
track_segment.addToPoints({
#if EDM4EIC_VERSION_MAJOR >= 3
surface,
system,
#endif
position,
positionError,
momentum,
Expand Down

0 comments on commit f3f8708

Please sign in to comment.