OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Classic
Algorithms
OpalParticle.cpp
Go to the documentation of this file.
1
//
2
// Class OpalParticle
3
// This class represents the canonical coordinates of a particle.
4
//
5
// Copyright (c) 2008 - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
6
// All rights reserved
7
//
8
// This file is part of OPAL.
9
//
10
// OPAL is free software: you can redistribute it and/or modify
11
// it under the terms of the GNU General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17
//
18
#include "
Algorithms/OpalParticle.h
"
19
20
21
OpalParticle::OpalParticle
()
22
{}
23
24
25
OpalParticle::OpalParticle
(int64_t
id
,
26
double
x,
double
px,
27
double
y,
double
py,
28
double
z,
double
pz,
29
double
t,
30
double
q,
double
m):
31
id_m(id),
32
R_m(x, y, z),
33
P_m(px, py, pz),
34
time_m(t),
35
charge_m(q),
36
mass_m(m)
37
{}
38
39
OpalParticle::OpalParticle
(int64_t
id
,
40
Vector_t
const
&
R
,
Vector_t
const
& P,
41
double
t,
double
q,
double
m):
42
id_m(id),
43
R_m(R),
44
P_m(P),
45
time_m(t),
46
charge_m(q),
47
mass_m(m)
48
{}
OpalParticle::OpalParticle
OpalParticle()
Definition:
OpalParticle.cpp:21
Attrib::Distribution::R
Definition:
Distribution.h:122
Vektor< double, 3 >
OpalParticle.h
Generated on Tue Jul 2 2024 15:05:19 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5