CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

CartesianState Class Reference

#include <CartesianState.h>

List of all members.

Public Types

typedef double Scalar
typedef VectorDoublet
< Vector3D, Vector3D
Vector
typedef Basic3DVector< ScalarVector3D

Public Member Functions

 CartesianState ()
 CartesianState (const Vector &v, Scalar s)
 CartesianState (const Vector3D &pos, const Vector3D &mom, Scalar s)
Scalar charge () const
const Vector3Dmomentum () const
const Vectorparameters () const
const Vector3Dposition () const

Private Attributes

Scalar charge_
Vector par_

Detailed Description

Definition at line 8 of file CartesianState.h.


Member Typedef Documentation

typedef double CartesianState::Scalar

Definition at line 12 of file CartesianState.h.

Definition at line 14 of file CartesianState.h.

Definition at line 13 of file CartesianState.h.


Constructor & Destructor Documentation

CartesianState::CartesianState ( ) [inline]

Definition at line 16 of file CartesianState.h.

: par_(v), charge_(s) {}
CartesianState::CartesianState ( const Vector v,
Scalar  s 
) [inline]

Definition at line 17 of file CartesianState.h.

: 
CartesianState::CartesianState ( const Vector3D pos,
const Vector3D mom,
Scalar  s 
) [inline]

Definition at line 18 of file CartesianState.h.

                              {}


Member Function Documentation

Scalar CartesianState::charge ( void  ) const [inline]

Definition at line 26 of file CartesianState.h.

Referenced by operator*(), operator+(), operator-(), and operator/().

:

const Vector3D& CartesianState::momentum ( ) const [inline]

Definition at line 22 of file CartesianState.h.

Referenced by RK4PreciseStep::distance().

{ return par_;}
const Vector& CartesianState::parameters ( void  ) const [inline]

Definition at line 24 of file CartesianState.h.

Referenced by operator*(), operator+(), operator-(), and operator/().

{ return charge_;}
const Vector3D& CartesianState::position ( void  ) const [inline]

Definition at line 21 of file CartesianState.h.

Referenced by RK4PreciseStep::distance(), and RK4PreciseStep::operator()().

{ return par_.second();}

Member Data Documentation

Definition at line 31 of file CartesianState.h.

Definition at line 30 of file CartesianState.h.