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) Royal Holloway,
3University of London 2001 - 2023.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef BDSWRAPPERPROCESS_H
20#define BDSWRAPPERPROCESS_H
21#include "G4Types.hh"
22#include "G4VProcess.hh"
23#include "G4WrapperProcess.hh"
24
25class G4Track;
26
40class BDSWrapperProcess: public G4WrapperProcess
41{
42public:
43 using G4WrapperProcess::G4WrapperProcess;
44 virtual ~BDSWrapperProcess(){;}
45
47 virtual G4double AlongStepGetPhysicalInteractionLength(const G4Track& track,
48 G4double previousStepSize,
49 G4double currentMinimumStep,
50 G4double& proposedSafety,
51 G4GPILSelection* selection);
52
54 virtual G4double AtRestGetPhysicalInteractionLength(const G4Track& track,
55 G4ForceCondition* condition);
56
58 virtual G4double PostStepGetPhysicalInteractionLength(const G4Track& track,
59 G4double previousStepSize,
60 G4ForceCondition* condition);
61
62 //inline G4double GetTotalNumberOfInteractionLengthTraversed() const {return pRegProcess->GetTotalNumberOfInteractionLengthTraversed();}
63
64 // We only need this but unfortunately this function isn't virtual in G4WrapperProcess,
65 // so we can't override it and fix the interface. Therefore, we have to update it in the
66 // other calls for path lengths.
67 //inline G4double GetCurrentInteractionLength() const {return pRegProcess->GetCurrentInteractionLength();}
68};
69
70#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.