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
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class TrackReference
float mTrackLength = 0; ///< track length from its origin in cm
float mTof = 0; ///< time of flight in cm
Int_t mUserId = 0; ///< optional Id defined by user
Int_t mDetectorId = 0; ///< Detector Id
Int_t mDetectorId = -1; ///< sensitive Detector Id (-1 if unknown or in passive material)
SimTrackStatus mStatus; ///< encoding the track status

friend std::ostream& operator<<(std::ostream&, const TrackReference&);
Expand Down
2 changes: 1 addition & 1 deletion Detectors/gconfig/src/StandardSteppingTrackRefHook.macro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// A default implementation of a hook called during
// MC stepping, with the aim to produce track references in the

Check failure on line 2 in Detectors/gconfig/src/StandardSteppingTrackRefHook.macro

View workflow job for this annotation

GitHub Actions / PR formatting / whitespace

Trailing spaces

Remove the trailing spaces at the end of the line.
// generic step function.

o2::steer::O2MCApplicationBase::TrackRefFcn trackRefHook() {
Expand All @@ -8,7 +8,7 @@
if (vmc->IsTrackStop() && stack->currentTrackLeftTrackRef()) {
// we add a stopping TrackRef when the current track already
// registered previous TrackRefs
stack->addTrackReference(o2::TrackReference(*vmc, 0));
stack->addTrackReference(o2::TrackReference(*vmc, -1));
}
};
}
Loading