Skip to content

Commit

Permalink
* extend GlueXBernardConversionProcess.cc to support nuclear targets,
Browse files Browse the repository at this point in the history
  like the 209Pb target to be used in CPP. [rtj]
  • Loading branch information
rjones30 committed Jul 29, 2021
1 parent d4d8b72 commit ecec9e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/GlueXBernardConversionProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
// pairs inside, otherwise the standard pair conversion
// probabilities apply.
#define FORCED_LIH2_PAIR_CONVERSION 0
#define FORCED_TGT0_PAIR_CONVERSION 0

#include <G4SystemOfUnits.hh>
#include "G4PhysicalConstants.hh"
Expand Down Expand Up @@ -204,6 +205,15 @@ G4double GlueXBernardConversionProcess::PostStepGetPhysicalInteractionLength(
*condition = Forced;
return 100*cm;
}
else if (track.GetTrackID() == 1 && pvol && pvol->GetName() == "TGT0" &&
(FORCED_TGT0_PAIR_CONVERSION ||
fStopBeamAfterTarget ))
{
fPIL = G4VEmProcess::PostStepGetPhysicalInteractionLength(
track, previousStepSize, condition);
*condition = Forced;
return 100*cm;
}
*condition = NotForced;
return 1e99;
}
Expand Down

0 comments on commit ecec9e9

Please sign in to comment.