CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
LinearEquation3< T >::Array3< U > Class Template Reference

#include <LinearEquation3.h>

Public Member Functions

 Array3 ()
 
 Array3 (U a0, U a1, U a2)
 
 Array3 (const Basic3DVector< U > &v)
 
Array3 operator* (U t) const
 
void operator-= (const Array3 &other)
 
Array3operator= (const Array3 &other)
 
Array3operator= (const Basic3DVector< U > &v)
 
U & operator[] (int i)
 
const U & operator[] (int i) const
 
void subtractScaled (const Array3 &a, U c)
 

Private Attributes

a_ [3]
 

Detailed Description

template<class T>
template<class U>
class LinearEquation3< T >::Array3< U >

Definition at line 17 of file LinearEquation3.h.

Constructor & Destructor Documentation

template<class T>
template<class U>
LinearEquation3< T >::Array3< U >::Array3 ( )
inline

Definition at line 19 of file LinearEquation3.h.

Referenced by LinearEquation3< T >::Array3< U >::operator*().

19 {}
template<class T>
template<class U>
LinearEquation3< T >::Array3< U >::Array3 ( a0,
a1,
a2 
)
inline

Definition at line 20 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

20 { a_[0] = a0; a_[1] = a1; a_[2] = a2;}
template<class T>
template<class U>
LinearEquation3< T >::Array3< U >::Array3 ( const Basic3DVector< U > &  v)
inline

Definition at line 21 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().

21  {
22  a_[0] = v.x(); a_[1] = v.y(); a_[2] = v.z();
23  }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T z() const
Cartesian z coordinate.

Member Function Documentation

template<class T>
template<class U>
Array3 LinearEquation3< T >::Array3< U >::operator* ( t) const
inline
template<class T>
template<class U>
void LinearEquation3< T >::Array3< U >::operator-= ( const Array3< U > &  other)
inline

Definition at line 37 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

37  {
38  a_[0] -= other[0];
39  a_[1] -= other[1];
40  a_[2] -= other[2];
41  }
template<class T>
template<class U>
Array3& LinearEquation3< T >::Array3< U >::operator= ( const Array3< U > &  other)
inline

Definition at line 25 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

25  {
26  a_[0] = other[0]; a_[1] = other[1]; a_[2] = other[2];
27  return *this;
28  }
template<class T>
template<class U>
Array3& LinearEquation3< T >::Array3< U >::operator= ( const Basic3DVector< U > &  v)
inline

Definition at line 30 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().

30  {
31  a_[0] = v.x(); a_[1] = v.y(); a_[2] = v.z();
32  return *this;
33  }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T z() const
Cartesian z coordinate.
template<class T>
template<class U>
U& LinearEquation3< T >::Array3< U >::operator[] ( int  i)
inline

Definition at line 35 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, and i.

35 { return a_[i];}
int i
Definition: DBlmapReader.cc:9
template<class T>
template<class U>
const U& LinearEquation3< T >::Array3< U >::operator[] ( int  i) const
inline

Definition at line 36 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, and i.

36 { return a_[i];}
int i
Definition: DBlmapReader.cc:9
template<class T>
template<class U>
void LinearEquation3< T >::Array3< U >::subtractScaled ( const Array3< U > &  a,
c 
)
inline

Definition at line 47 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, and trackerHits::c.

Referenced by LinearEquation3< T >::solution().

47  {
48  a_[0] -= a[0]*c; a_[1] -= a[1]*c; a_[2] -= a[2]*c;
49  }
double a
Definition: hdecay.h:121

Member Data Documentation

template<class T>
template<class U>
U LinearEquation3< T >::Array3< U >::a_[3]
private