CMS 3D CMS Logo

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 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

◆ trig_pair() [1/3]

magfieldparam::trig_pair::trig_pair ( )
inline

Definition at line 19 of file rz_harm_poly.h.

Referenced by Add().

◆ trig_pair() [2/3]

magfieldparam::trig_pair::trig_pair ( const double  C,
const double  S 
)
inline

◆ trig_pair() [3/3]

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

Definition at line 21 of file rz_harm_poly.h.

21 : 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

Member Function Documentation

◆ Add()

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

Definition at line 24 of file rz_harm_poly.h.

References cmsswSequenceInfo::tp, and trig_pair().

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

Member Data Documentation

◆ CosPhi

double magfieldparam::trig_pair::CosPhi

◆ SinPhi

double magfieldparam::trig_pair::SinPhi