BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
bdsim
include
BDSProcessUserSpecialCutsPDG.hh
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3
University of London 2001 - 2023.
4
5
This file is part of BDSIM.
6
7
BDSIM is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published
9
by the Free Software Foundation version 3 of the License.
10
11
BDSIM is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef BDSPROCESSUSERSPECIALCUTSPDG_HH
20
#define BDSPROCESSUSERSPECIALCUTSPDG_HH
21
22
#include "G4Types.hh"
23
#include "G4UserSpecialCuts.hh"
24
25
#include <set>
26
27
class
G4Step;
28
class
G4Track;
29
36
class
BDSProcessUserSpecialCutsPDG
:
public
G4UserSpecialCuts
37
{
38
public
:
39
BDSProcessUserSpecialCutsPDG
();
40
explicit
BDSProcessUserSpecialCutsPDG
(
const
std::set<G4int>& pdgIDsIn);
41
virtual
~BDSProcessUserSpecialCutsPDG
();
42
43
virtual
G4double PostStepGetPhysicalInteractionLength(
const
G4Track& track,
44
G4double previousStepSize,
45
G4ForceCondition* condition);
46
47
BDSProcessUserSpecialCutsPDG
(
BDSProcessUserSpecialCutsPDG
&) =
delete
;
48
BDSProcessUserSpecialCutsPDG
& operator=(
const
BDSProcessUserSpecialCutsPDG
&) =
delete
;
49
50
private
:
51
std::set<G4int> pdgIDs;
52
};
53
54
#endif
55
BDSProcessUserSpecialCutsPDG
Apply regular cuts but not to a specified set of PDG IDs.
Definition:
BDSProcessUserSpecialCutsPDG.hh:37
Generated on Mon Aug 14 2023 13:49:30 for BDSIM by
1.9.6