BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSWrapperProcess.cc
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#include "BDSWrapperProcess.hh"
19
20#include "G4Types.hh"
21#include "G4VProcess.hh"
22
24 G4double previousStepSize,
25 G4double currentMinimumStep,
26 G4double& proposedSafety,
27 G4GPILSelection* selection)
28{
29 G4double result = pRegProcess->AlongStepGetPhysicalInteractionLength(track,
30 previousStepSize,
31 currentMinimumStep,
32 proposedSafety,
33 selection);
34 currentInteractionLength = pRegProcess->GetCurrentInteractionLength();
35 theNumberOfInteractionLengthLeft = pRegProcess->GetNumberOfInteractionLengthLeft();
36 return result;
37}
38
40 G4ForceCondition* condition)
41{
42 G4double result = pRegProcess->AtRestGetPhysicalInteractionLength( track, condition);
43 currentInteractionLength = pRegProcess->GetCurrentInteractionLength();
44 theNumberOfInteractionLengthLeft = pRegProcess->GetNumberOfInteractionLengthLeft();
45 return result;
46}
47
49 G4double previousStepSize,
50 G4ForceCondition* condition)
51{
52 G4double value = pRegProcess->PostStepGetPhysicalInteractionLength(track,
53 previousStepSize,
54 condition);
55 currentInteractionLength = pRegProcess->GetCurrentInteractionLength();
56 theNumberOfInteractionLengthLeft = pRegProcess->GetNumberOfInteractionLengthLeft();
57 return value;
58}
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
Same as base class but update currentInteractionLength.
virtual G4double AtRestGetPhysicalInteractionLength(const G4Track &track, G4ForceCondition *condition)
Same as base class but update currentInteractionLength.
virtual G4double AlongStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)
Same as base class but update currentInteractionLength.