Skip to content

Commit

Permalink
Merge pull request #38 from rest-for-physics/lobis-working-on-veto-re…
Browse files Browse the repository at this point in the history
…adout

Attempt to clean hit class (just a little bit)
  • Loading branch information
lobis authored Aug 31, 2023
2 parents 7889ccd + 9830c40 commit 8cecd60
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 8cecd60

Please sign in to comment.