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) 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 BDSWRAPPERMUONSPLITTING_H
19#define BDSWRAPPERMUONSPLITTING_H
20#include "BDSWrapperProcess.hh"
21
22#include "G4Types.hh"
23
25class G4Step;
26class G4Track;
27class G4VParticleChange;
28class G4VProcess;
29
51{
52public:
53 BDSWrapperMuonSplitting() = delete;
54 BDSWrapperMuonSplitting(G4VProcess* originalProcess,
55 G4int splittingFactorIn,
56 G4double splittingThresholdEKIn = 0,
57 G4int splittingFactor2In = 1,
58 G4double splittingThresholdEK2In = 0,
59 G4bool excludeWeight1Particles = false,
60 G4double muonSplittingExclusionWeightIn = 1e99);
62
64 virtual G4VParticleChange* PostStepDoIt(const G4Track& track,
65 const G4Step& step);
66
68 static G4int nCallsThisEvent;
69
70private:
71 G4int splittingFactor;
72 G4double splittingThresholdEK;
73 G4int splittingFactor2;
74 G4double splittingThresholdEK2;
75 G4bool excludeWeight1Particles;
76 G4double muonSplittingExclusionWeight;
77 BDSPhysicsVectorLinear* splitting;
78};
79
80#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.