CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
CartesianState Class Reference

#include <CartesianState.h>

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 11 of file CartesianState.h.

Definition at line 13 of file CartesianState.h.

Definition at line 12 of file CartesianState.h.

Constructor & Destructor Documentation

CartesianState::CartesianState ( )
inline

Definition at line 15 of file CartesianState.h.

15 {}
CartesianState::CartesianState ( const Vector v,
Scalar  s 
)
inline

Definition at line 16 of file CartesianState.h.

16 : par_(v), charge_(s) {}
mathSSE::Vec4< T > v
CartesianState::CartesianState ( const Vector3D pos,
const Vector3D mom,
Scalar  s 
)
inline

Definition at line 17 of file CartesianState.h.

17  :
18  par_(pos,mom), charge_(s) {}

Member Function Documentation

Scalar CartesianState::charge ( void  ) const
inline

Definition at line 25 of file CartesianState.h.

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

25 { return charge_;}
const Vector3D& CartesianState::momentum ( ) const
inline

Definition at line 21 of file CartesianState.h.

Referenced by RK4PreciseStep::distance().

21 { return par_.second();}
const V2 & second() const
Definition: VectorDoublet.h:18
const Vector& CartesianState::parameters ( void  ) const
inline

Definition at line 23 of file CartesianState.h.

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

23 { return par_;}
const Vector3D& CartesianState::position ( ) const
inline

Definition at line 20 of file CartesianState.h.

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

20 { return par_.first();}
const V1 & first() const
Definition: VectorDoublet.h:17

Member Data Documentation

Scalar CartesianState::charge_
private

Definition at line 30 of file CartesianState.h.

Vector CartesianState::par_
private

Definition at line 29 of file CartesianState.h.