CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
magfieldparam::trig_pair Struct Reference

#include <rz_harm_poly.h>

Public Member Functions

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

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().

magfieldparam::trig_pair::trig_pair ( const trig_pair tp)
inline

Definition at line 20 of file rz_harm_poly.h.

20 : 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.

magfieldparam::trig_pair::trig_pair ( const double  phi)
inline

Definition at line 22 of file rz_harm_poly.h.

22 : CosPhi(cos(phi)), SinPhi(sin(phi)) {}
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Definition: DDAxes.h:10

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().

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

Member Data Documentation

double magfieldparam::trig_pair::CosPhi
double magfieldparam::trig_pair::SinPhi