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)
 
 trig_pair (const trig_pair &tp)
 

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.

19 : CosPhi(1.), SinPhi(0.) {}

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.

20 : CosPhi(tp.CosPhi), SinPhi(tp.SinPhi) {}

◆ trig_pair() [3/4]

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

Definition at line 21 of file rz_harm_poly.h.

21 : CosPhi(C), SinPhi(S) {}

◆ 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)) {}

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.

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

References cmsswSequenceInfo::tp, and trig_pair().

Member Data Documentation

◆ CosPhi

double magfieldparam::trig_pair::CosPhi

◆ SinPhi

double magfieldparam::trig_pair::SinPhi
magfieldparam::trig_pair::SinPhi
double SinPhi
Definition: rz_harm_poly.h:17
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
magfieldparam::trig_pair::trig_pair
trig_pair()
Definition: rz_harm_poly.h:19
DDAxes::phi
gen::C
C
Definition: PomwigHadronizer.cc:76
S
Definition: CSCDBL1TPParametersExtended.h:16
magfieldparam::trig_pair::CosPhi
double CosPhi
Definition: rz_harm_poly.h:16