Skip to content

Commit

Permalink
attempt to clean hit class (just a little bit)
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Aug 30, 2023
1 parent 59e023f commit 9830c40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TRestTrack.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void TRestTrack::Initialize() {

void TRestTrack::SetVolumeHits(TRestVolumeHits hits) {
fVolumeHits = hits;
fTrackEnergy = hits.GetEnergyIntegral();
fTrackEnergy = hits.GetTotalEnergy();
fTrackLength = hits.GetTotalDistance();
}

Expand Down
2 changes: 1 addition & 1 deletion src/TRestTrackAnalysisProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ TRestEvent* TRestTrackAnalysisProcess::ProcessEvent(TRestEvent* inputEvent) {
auto time = arg->GetTime(n);
auto type = arg->GetType(n);

hits.AddHit(x, y, z, eDep, time, type);
hits.AddHit({x, y, z}, eDep, time, type);
}
}
tckMaxTrack_XYZ_GaussSigmaZ = hits.GetGaussSigmaZ();
Expand Down

0 comments on commit 9830c40

Please sign in to comment.