Skip to content

Commit

Permalink
Reconfigure pause for new track.
Browse files Browse the repository at this point in the history
  • Loading branch information
pslocum committed Aug 16, 2024
1 parent dbd719b commit 002eeb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Kassiopeia/LMCCyclotronRadiationExtractor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ namespace locust
fInterface->aTrack.Radius = pow(tX*tX + tY*tY, 0.5);
fInterface->aTrack.RadialPhase = calcOrbitPhase(tX, tY);
fInterface->aTrack.StartingEnergy_eV = LMCConst::kB_eV() / LMCConst::kB() * aFinalParticle.GetKineticEnergy();
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
}
else
{
Expand Down Expand Up @@ -216,6 +215,7 @@ namespace locust

if ( aFinalParticle.GetIndexNumber() > fLMCTrackID ) // check for new track
{
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
fLMCTrackID = aFinalParticle.GetIndexNumber();
fPitchAngle = -99.; // new electron needs central pitch angle reset.
double dt = aFinalParticle.GetTime() - anInitialParticle.GetTime();
Expand Down

0 comments on commit 002eeb9

Please sign in to comment.