BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSTrajectoryFilter.cc
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#include "BDSTrajectoryFilter.hh"
19
20#include <map>
21#include <string>
22
23// dictionary for BDSTrajectoryFilter
24template<>
25std::map<BDSTrajectoryFilter, std::string>* BDSTrajectoryFilter::dictionary =
26 new std::map<BDSTrajectoryFilter, std::string> ({
27 {BDSTrajectoryFilter::primary, "primary"},
28 {BDSTrajectoryFilter::depth, "depth"},
29 {BDSTrajectoryFilter::particle, "particle"},
30 {BDSTrajectoryFilter::energyThreshold, "energyThreshold"},
31 {BDSTrajectoryFilter::sampler, "sampler"},
32 {BDSTrajectoryFilter::elossSRange, "elossSRange"},
33 {BDSTrajectoryFilter::minimumZ, "minimumZ"},
34 {BDSTrajectoryFilter::maximumR, "maximumR"},
35 {BDSTrajectoryFilter::connect, "connect"},
36 {BDSTrajectoryFilter::secondary, "secondary"}
37});
38
39namespace BDS
40{
41 BDSTrajectoryFilter BDSTrajectoryFilterEnumOfIndex(int i)
42 {return static_cast<BDSTrajectoryFilter>(i);}
43}
Improve type-safety of native enum data type in C++.
static std::map< BDSTypeSafeEnum< def, inner >, std::string > * dictionary
Return either G4Tubs or G4CutTubs depending on flat face.