CMS 3D CMS Logo

Public Member Functions | Public Attributes

magfieldparam::trig_pair Struct Reference

#include <rz_harm_poly.h>

List of all members.

Public Member Functions

trig_pair Add (const trig_pair &tp)
 trig_pair (const trig_pair &tp)
 trig_pair (const double phi)
 trig_pair (const double C, const double S)
 trig_pair ()

Public Attributes

double CosPhi
double SinPhi

Detailed Description

Definition at line 15 of file rz_harm_poly.h.


Constructor & Destructor Documentation

magfieldparam::trig_pair::trig_pair ( ) [inline]

Definition at line 19 of file rz_harm_poly.h.

Referenced by Add().

: CosPhi(1.), SinPhi(0.) {}
magfieldparam::trig_pair::trig_pair ( const trig_pair tp) [inline]

Definition at line 20 of file rz_harm_poly.h.

: CosPhi(tp.CosPhi), SinPhi(tp.SinPhi) {}
magfieldparam::trig_pair::trig_pair ( const double  C,
const double  S 
) [inline]

Definition at line 21 of file rz_harm_poly.h.

: CosPhi(C), SinPhi(S) {}
magfieldparam::trig_pair::trig_pair ( const double  phi) [inline]

Definition at line 22 of file rz_harm_poly.h.

: CosPhi(cos(phi)), SinPhi(sin(phi)) {}

Member Function Documentation

trig_pair magfieldparam::trig_pair::Add ( const trig_pair tp) [inline]

Definition at line 25 of file rz_harm_poly.h.

References CosPhi, SinPhi, and trig_pair().

                                      {
      return trig_pair(this->CosPhi*tp.CosPhi - this->SinPhi*tp.SinPhi,
                       this->SinPhi*tp.CosPhi + this->CosPhi*tp.SinPhi);
   }

Member Data Documentation