BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSWrapperProcess.hh
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#ifndef BDSWRAPPERPROCESS_H
19#define BDSWRAPPERPROCESS_H
20#include "G4Types.hh"
21#include "G4VProcess.hh"
22#include "G4WrapperProcess.hh"
23
24class G4Track;
25
39class BDSWrapperProcess: public G4WrapperProcess
40{
41public:
42 using G4WrapperProcess::G4WrapperProcess;
43 virtual ~BDSWrapperProcess(){;}
44
46 virtual G4double AlongStepGetPhysicalInteractionLength(const G4Track& track,
47 G4double previousStepSize,
48 G4double currentMinimumStep,
49 G4double& proposedSafety,
50 G4GPILSelection* selection);
51
53 virtual G4double AtRestGetPhysicalInteractionLength(const G4Track& track,
54 G4ForceCondition* condition);
55
57 virtual G4double PostStepGetPhysicalInteractionLength(const G4Track& track,
58 G4double previousStepSize,
59 G4ForceCondition* condition);
60
61 //inline G4double GetTotalNumberOfInteractionLengthTraversed() const {return pRegProcess->GetTotalNumberOfInteractionLengthTraversed();}
62
63 // We only need this but unfortunately this function isn't virtual in G4WrapperProcess,
64 // so we can't override it and fix the interface. Therefore, we have to update it in the
65 // other calls for path lengths.
66 //inline G4double GetCurrentInteractionLength() const {return pRegProcess->GetCurrentInteractionLength();}
67};
68
69#endif
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.