File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ void TRestGeant4Track::UpdateTrack(const G4Track* track) {
149149
150150 SetTimeOffset (globalTimeOffset);
151151
152- const double precision = metadata->GetResetTimePrecision ();
152+ const double precision = metadata->GetResetTimePrecision () / CLHEP::microsecond ;
153153 const double globalTime = track->GetGlobalTime () / CLHEP::microsecond;
154154
155155 const auto processName = track->GetStep ()->GetPostStepPoint ()->GetProcessDefinedStep ()->GetProcessName ();
Original file line number Diff line number Diff line change 1313using namespace std ;
1414
1515StackingAction::StackingAction (SimulationManager* simulationManager) : fSimulationManager(simulationManager) {
16- fMaxAllowedLifetime = 100 ; // TODO: update this
16+ fMaxAllowedLifetime = fSimulationManager -> GetRestMetadata ()-> GetSubEventTimeDelay () * CLHEP::microsecond;
1717
1818 fMaxAllowedLifetimeWithUnit = G4BestUnit (fMaxAllowedLifetime , " Time" );
1919
You can’t perform that action at this time.
0 commit comments