BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
__w
bdsim
bdsim
include
BDSPhysicsVectorLinear.hh
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4
This file is part of BDSIM.
5
6
BDSIM is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published
8
by the Free Software Foundation version 3 of the License.
9
10
BDSIM is distributed in the hope that it will be useful, but
11
WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#ifndef BDSPHYSICSVECTORLINEAR_H
19
#define BDSPHYSICSVECTORLINEAR_H
20
21
#include "G4Types.hh"
22
23
#include <vector>
24
36
class
BDSPhysicsVectorLinear
37
{
38
public
:
39
BDSPhysicsVectorLinear
() =
delete
;
41
BDSPhysicsVectorLinear
(
const
std::vector<G4double>& kineticEnergyIn,
42
const
std::vector<G4double>& values);
43
~BDSPhysicsVectorLinear
() =
default
;
44
46
G4double
Value
(G4double eK)
const
;
47
48
private
:
49
std::vector<G4double> kineticEnergy;
50
std::vector<G4double> values;
51
G4double eKMin;
52
G4double eKMax;
53
G4double eKMinValue;
54
G4double eKMaxValue;
55
};
56
57
#endif
BDSPhysicsVectorLinear
A vector of some values vs Ek that are linearly interpolated.
Definition
BDSPhysicsVectorLinear.hh:37
BDSPhysicsVectorLinear::Value
G4double Value(G4double eK) const
Get the linearly interpolated value for a given kinetic energy.
Definition
BDSPhysicsVectorLinear.cc:44
Generated on Thu Nov 12 2026 21:36:59 for BDSIM by
1.9.8