BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSWrapperMuonSplitting.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 BDSWRAPPERMUONSPLITTING_H
20#define BDSWRAPPERMUONSPLITTING_H
21#include "BDSWrapperProcess.hh"
22
23#include "G4Types.hh"
24
26class G4Step;
27class G4Track;
28class G4VParticleChange;
29class G4VProcess;
30
52{
53public:
54 BDSWrapperMuonSplitting() = delete;
55 BDSWrapperMuonSplitting(G4VProcess* originalProcess,
56 G4int splittingFactorIn,
57 G4double splittingThresholdEKIn = 0,
58 G4int splittingFactor2In = 1,
59 G4double splittingThresholdEK2In = 0,
60 G4bool excludeWeight1Particles = false,
61 G4double muonSplittingExclusionWeightIn = 1e99);
63
65 virtual G4VParticleChange* PostStepDoIt(const G4Track& track,
66 const G4Step& step);
67
69 static G4int nCallsThisEvent;
70
71private:
72 G4int splittingFactor;
73 G4double splittingThresholdEK;
74 G4int splittingFactor2;
75 G4double splittingThresholdEK2;
76 G4bool excludeWeight1Particles;
77 G4double muonSplittingExclusionWeight;
78 BDSPhysicsVectorLinear* splitting;
79};
80
81#endif
A vector of some values vs Ek that are linearly interpolated.
Wrapper process to produce more muons by resampling the process.
static G4int nCallsThisEvent
Counter for understanding occurence.
virtual G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &step)
Do the splitting operation.