CMS 3D CMS Logo

Classes | Functions
CartesianState.h File Reference
#include "FWCore/Utilities/interface/Visibility.h"
#include "DataFormats/GeometryVector/interface/Basic3DVector.h"
#include "VectorDoublet.h"

Go to the source code of this file.

Classes

class  CartesianState
 

Functions

CartesianState operator* (const CartesianState &v, const CartesianState::Scalar &s)
 
CartesianState operator* (const CartesianState::Scalar &s, const CartesianState &v)
 
CartesianState operator+ (const CartesianState &a, const CartesianState &b)
 
CartesianState operator- (const CartesianState &a, const CartesianState &b)
 
CartesianState operator/ (const CartesianState &v, const CartesianState::Scalar &s)
 

Function Documentation

CartesianState operator* ( const CartesianState v,
const CartesianState::Scalar s 
)
inline

Definition at line 38 of file CartesianState.h.

References CartesianState::charge(), CartesianState::parameters(), and alignCSCRings::s.

38  {
39  return CartesianState(v.parameters() * s, v.charge());
40 }
const Vector & parameters() const
Scalar charge() const
CartesianState operator* ( const CartesianState::Scalar s,
const CartesianState v 
)
inline

Definition at line 41 of file CartesianState.h.

References CartesianState::charge(), CartesianState::parameters(), and alignCSCRings::s.

41  {
42  return CartesianState(v.parameters() * s, v.charge());
43 }
const Vector & parameters() const
Scalar charge() const
CartesianState operator+ ( const CartesianState a,
const CartesianState b 
)
inline

Definition at line 30 of file CartesianState.h.

References CartesianState::charge(), and CartesianState::parameters().

30  {
31  return CartesianState(a.parameters() + b.parameters(), a.charge());
32 }
const Vector & parameters() const
Scalar charge() const
CartesianState operator- ( const CartesianState a,
const CartesianState b 
)
inline

Definition at line 34 of file CartesianState.h.

References CartesianState::charge(), and CartesianState::parameters().

34  {
35  return CartesianState(a.parameters() - b.parameters(), a.charge());
36 }
const Vector & parameters() const
Scalar charge() const
CartesianState operator/ ( const CartesianState v,
const CartesianState::Scalar s 
)
inline

Definition at line 45 of file CartesianState.h.

References CartesianState::charge(), CartesianState::parameters(), and alignCSCRings::s.

45  {
46  return CartesianState(v.parameters() / s, v.charge());
47 }
const Vector & parameters() const
Scalar charge() const