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

◆ trig_pair() [1/4]

magfieldparam::trig_pair::trig_pair ( )
inline

Definition at line 19 of file rz_harm_poly.h.

Referenced by Add().

◆ trig_pair() [2/4]

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

Definition at line 20 of file rz_harm_poly.h.

◆ trig_pair() [3/4]

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

◆ trig_pair() [4/4]

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

Member Function Documentation

◆ Add()

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

Definition at line 25 of file rz_harm_poly.h.

References cmsswSequenceInfo::tp, 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

◆ CosPhi

double magfieldparam::trig_pair::CosPhi

◆ SinPhi

double magfieldparam::trig_pair::SinPhi