test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 44 of file CartesianState.h.

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

44  {
45  return CartesianState( v.parameters()*s, v.charge());
46 }
const Vector & parameters() const
Scalar charge() const
CartesianState operator* ( const CartesianState::Scalar s,
const CartesianState v 
)
inline

Definition at line 47 of file CartesianState.h.

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

47  {
48  return CartesianState( v.parameters()*s, v.charge());
49 }
const Vector & parameters() const
Scalar charge() const
CartesianState operator+ ( const CartesianState a,
const CartesianState b 
)
inline

Definition at line 35 of file CartesianState.h.

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

35  {
36  return CartesianState(a.parameters()+b.parameters(), a.charge());
37 }
const Vector & parameters() const
Scalar charge() const
CartesianState operator- ( const CartesianState a,
const CartesianState b 
)
inline

Definition at line 40 of file CartesianState.h.

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

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

Definition at line 51 of file CartesianState.h.

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

51  {
52  return CartesianState( v.parameters()/s, v.charge());
53 }
const Vector & parameters() const
Scalar charge() const