CMS 3D CMS Logo

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, Vector3DVector
 
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

◆ Scalar

typedef double CartesianState::Scalar

Definition at line 10 of file CartesianState.h.

◆ Vector

Definition at line 12 of file CartesianState.h.

◆ Vector3D

Definition at line 11 of file CartesianState.h.

Constructor & Destructor Documentation

◆ CartesianState() [1/3]

CartesianState::CartesianState ( )
inline

Definition at line 14 of file CartesianState.h.

14 {}

◆ CartesianState() [2/3]

CartesianState::CartesianState ( const Vector v,
Scalar  s 
)
inline

Definition at line 15 of file CartesianState.h.

15 : par_(v), charge_(s) {}

◆ CartesianState() [3/3]

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

Definition at line 16 of file CartesianState.h.

16 : par_(pos, mom), charge_(s) {}

Member Function Documentation

◆ charge()

Scalar CartesianState::charge ( void  ) const
inline

Definition at line 23 of file CartesianState.h.

23 { return charge_; }

◆ momentum()

const Vector3D& CartesianState::momentum ( ) const
inline

Definition at line 19 of file CartesianState.h.

19 { return par_.second(); }

◆ parameters()

const Vector& CartesianState::parameters ( void  ) const
inline

Definition at line 21 of file CartesianState.h.

21 { return par_; }

◆ position()

const Vector3D& CartesianState::position ( ) const
inline

Definition at line 18 of file CartesianState.h.

18 { return par_.first(); }

Member Data Documentation

◆ charge_

Scalar CartesianState::charge_
private

Definition at line 27 of file CartesianState.h.

◆ par_

Vector CartesianState::par_
private

Definition at line 26 of file CartesianState.h.

pos
Definition: PixelAliasList.h:18
CartesianState::charge_
Scalar charge_
Definition: CartesianState.h:27
findQualityFiles.v
v
Definition: findQualityFiles.py:179
VectorDoublet::second
const V2 & second() const
Definition: VectorDoublet.h:17
alignCSCRings.s
s
Definition: alignCSCRings.py:92
VectorDoublet::first
const V1 & first() const
Definition: VectorDoublet.h:16
CartesianState::par_
Vector par_
Definition: CartesianState.h:26