Skip to content

Commit

Permalink
Merge branch 'master' into fix-some-time-calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis authored Feb 28, 2024
2 parents 2593302 + ab3f747 commit 94b1efd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TRestDetectorHitsToSignalProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ TRestEvent* TRestDetectorHitsToSignalProcess::ProcessEvent(TRestEvent* inputEven
if (GetVerboseLevel() >= TRestStringOutput::REST_Verbose_Level::REST_Extreme) {
cout << "Drift velocity : " << fDriftVelocity << " mm/us" << endl;
}
time = ((Int_t)(time / fSampling)) * fSampling; // now time is in unit "us", but dispersed

time = floor(time / fSampling) * fSampling;

fSignalEvent->AddChargeToSignal(daqId, time, energy);

Expand Down

0 comments on commit 94b1efd

Please sign in to comment.