Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TrackPropagation
RungeKutta
src
CartesianStateAdaptor.h
Go to the documentation of this file.
1
#ifndef CartesianStateAdaptor_H
2
#define CartesianStateAdaptor_H
3
4
class
dso_internal
CartesianStateAdaptor
{
5
public
:
6
7
typedef
double
Scalar
;
8
typedef
Basic3DVector<Scalar>
Vector3D
;
9
10
CartesianStateAdaptor
(
const
RKSmallVector<double,6>
& rk) :
11
pos_(rk[0], rk[1], rk[2]), mom_(rk[3], rk[4], rk[5]) {}
12
13
const
Vector3D
&
position
()
const
{
return
pos_;}
14
const
Vector3D
&
momentum
()
const
{
return
mom_;}
15
16
static
Vector3D
position
(
const
RKSmallVector<double,6>
& rk) {
17
return
Vector3D
(rk[0], rk[1], rk[2]);
18
}
19
20
static
Vector3D
momentum
(
const
RKSmallVector<double,6>
& rk) {
21
return
Vector3D
(rk[3], rk[4], rk[5]);
22
}
23
24
static
RKSmallVector<double,6>
rkstate
(
const
Vector3D
& pos,
const
Vector3D
& mom) {
25
RKSmallVector<double,6>
res;
26
res[0] = pos.
x
();
27
res[1] = pos.
y
();
28
res[2] = pos.
z
();
29
res[3] = mom.
x
();
30
res[4] = mom.
y
();
31
res[5] = mom.
z
();
32
return
res;
33
}
34
35
private
:
36
37
Vector3D
pos_
;
38
Vector3D
mom_
;
39
40
};
41
42
#endif
CartesianStateAdaptor::momentum
static Vector3D momentum(const RKSmallVector< double, 6 > &rk)
Definition:
CartesianStateAdaptor.h:20
Basic3DVector::y
T y() const
Cartesian y coordinate.
Definition:
extBasic3DVector.h:102
CartesianStateAdaptor::mom_
Vector3D mom_
Definition:
CartesianStateAdaptor.h:38
Basic3DVector::x
T x() const
Cartesian x coordinate.
Definition:
extBasic3DVector.h:99
RKSmallVector
ROOT::Math::SVector< T, N > RKSmallVector
Definition:
RKSmallVector.h:13
CartesianStateAdaptor::Scalar
double Scalar
Definition:
CartesianStateAdaptor.h:7
CartesianStateAdaptor::position
static Vector3D position(const RKSmallVector< double, 6 > &rk)
Definition:
CartesianStateAdaptor.h:16
Basic3DVector::z
T z() const
Cartesian z coordinate.
Definition:
extBasic3DVector.h:105
Basic3DVector< Scalar >
CartesianStateAdaptor::rkstate
static RKSmallVector< double, 6 > rkstate(const Vector3D &pos, const Vector3D &mom)
Definition:
CartesianStateAdaptor.h:24
CartesianStateAdaptor::momentum
const Vector3D & momentum() const
Definition:
CartesianStateAdaptor.h:14
dso_internal
#define dso_internal
Definition:
Visibility.h:13
CartesianStateAdaptor::Vector3D
Basic3DVector< Scalar > Vector3D
Definition:
CartesianStateAdaptor.h:8
CartesianStateAdaptor
Definition:
CartesianStateAdaptor.h:4
CartesianStateAdaptor::pos_
Vector3D pos_
Definition:
CartesianStateAdaptor.h:37
CartesianStateAdaptor::position
const Vector3D & position() const
Definition:
CartesianStateAdaptor.h:13
CartesianStateAdaptor::CartesianStateAdaptor
CartesianStateAdaptor(const RKSmallVector< double, 6 > &rk)
Definition:
CartesianStateAdaptor.h:10
Generated for CMSSW Reference Manual by
1.8.5