File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments