Skip to content

Commit ecec9e9

Browse files
committed
* extend GlueXBernardConversionProcess.cc to support nuclear targets,
like the 209Pb target to be used in CPP. [rtj]
1 parent d4d8b72 commit ecec9e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/GlueXBernardConversionProcess.cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
// pairs inside, otherwise the standard pair conversion
2929
// probabilities apply.
3030
#define FORCED_LIH2_PAIR_CONVERSION 0
31+
#define FORCED_TGT0_PAIR_CONVERSION 0
3132

3233
#include <G4SystemOfUnits.hh>
3334
#include "G4PhysicalConstants.hh"
@@ -204,6 +205,15 @@ G4double GlueXBernardConversionProcess::PostStepGetPhysicalInteractionLength(
204205
*condition = Forced;
205206
return 100*cm;
206207
}
208+
else if (track.GetTrackID() == 1 && pvol && pvol->GetName() == "TGT0" &&
209+
(FORCED_TGT0_PAIR_CONVERSION ||
210+
fStopBeamAfterTarget ))
211+
{
212+
fPIL = G4VEmProcess::PostStepGetPhysicalInteractionLength(
213+
track, previousStepSize, condition);
214+
*condition = Forced;
215+
return 100*cm;
216+
}
207217
*condition = NotForced;
208218
return 1e99;
209219
}

0 commit comments

Comments
 (0)