BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
DifRotation Class Reference

#include <DifRotation.h>

Public Member Functions

 DifRotation ()
 
 DifRotation (const DifNumber &alpha, const DifNumber &beta, const DifNumber &gamma)
 
 DifRotation (const DifVector &xp, const DifVector &yp, const DifVector &zp)
 
 DifRotation (const DifVector &xp, const DifVector &yp)
 
 ~DifRotation ()
 
DifVector xnew () const
 
DifVector ynew () const
 
DifVector znew () const
 
void rotate (DifVector &v) const
 
int fail () const
 
 DifRotation ()
 
 DifRotation (const DifNumber &alpha, const DifNumber &beta, const DifNumber &gamma)
 
 DifRotation (const DifVector &xp, const DifVector &yp, const DifVector &zp)
 
 DifRotation (const DifVector &xp, const DifVector &yp)
 
 ~DifRotation ()
 
DifVector xnew () const
 
DifVector ynew () const
 
DifVector znew () const
 
void rotate (DifVector &v) const
 
int fail () const
 

Detailed Description

Constructor & Destructor Documentation

◆ DifRotation() [1/8]

DifRotation::DifRotation ( )

Definition at line 25 of file DifRotation.cxx.

26 :_xnew(1.0,0.0,0.0),_ynew(0.0,1.0,0.0),_znew(0.0,0.0,1.0)
27{
28}

◆ DifRotation() [2/8]

DifRotation::DifRotation ( const DifNumber alpha,
const DifNumber beta,
const DifNumber gamma 
)

Definition at line 30 of file DifRotation.cxx.

32{
33
34 //active transformation - move the vector (reverse sines)
35 DifNumber calpha=cos(alpha); DifNumber salpha=-sin(alpha);
36 DifNumber cbeta=cos(beta); DifNumber sbeta=-sin(beta);
37 DifNumber cgamma=cos(gamma); DifNumber sgamma=-sin(gamma);
38
39 _xnew.x=cbeta*calpha*cgamma-salpha*sgamma;
40 _xnew.y=cbeta*salpha*cgamma+calpha*sgamma;
41 _xnew.z=-sbeta*cgamma;
42
43 _ynew.x=-cbeta*calpha*sgamma-salpha*cgamma;
44 _ynew.y=-cbeta*salpha*sgamma+calpha*cgamma;
45 _ynew.z=sbeta*sgamma;
46
47 _znew.x=sbeta*calpha;
48 _znew.y=sbeta*salpha;
49 _znew.z=cbeta;
50}
const double alpha
double sin(const BesAngle a)
double cos(const BesAngle a)

◆ DifRotation() [3/8]

DifRotation::DifRotation ( const DifVector xp,
const DifVector yp,
const DifVector zp 
)

Definition at line 52 of file DifRotation.cxx.

54 :_xnew(xp),_ynew(yp),_znew(zp)
55{}

◆ DifRotation() [4/8]

DifRotation::DifRotation ( const DifVector xp,
const DifVector yp 
)

Definition at line 57 of file DifRotation.cxx.

59 :_xnew(xp),_ynew(yp),_znew()
60{
61 _znew=cross(_xnew,_ynew);
62}
EvtVector3R cross(const EvtVector3R &p1, const EvtVector3R &p2)
Definition: EvtVector3R.cc:84

◆ ~DifRotation() [1/2]

DifRotation::~DifRotation ( )
inline

◆ DifRotation() [5/8]

DifRotation::DifRotation ( )

◆ DifRotation() [6/8]

DifRotation::DifRotation ( const DifNumber alpha,
const DifNumber beta,
const DifNumber gamma 
)

◆ DifRotation() [7/8]

DifRotation::DifRotation ( const DifVector xp,
const DifVector yp,
const DifVector zp 
)

◆ DifRotation() [8/8]

DifRotation::DifRotation ( const DifVector xp,
const DifVector yp 
)

◆ ~DifRotation() [2/2]

DifRotation::~DifRotation ( )
inline

Member Function Documentation

◆ fail() [1/2]

int DifRotation::fail ( ) const

Definition at line 64 of file DifRotation.cxx.

64 {
65 return 0;
66}

◆ fail() [2/2]

int DifRotation::fail ( ) const

◆ rotate() [1/2]

void DifRotation::rotate ( DifVector v) const

Definition at line 68 of file DifRotation.cxx.

68 {
69 DifNumber xcomp=xnew()*v;
70 DifNumber ycomp=ynew()*v;
71 DifNumber zcomp=znew()*v;
72 v.x=xcomp; v.y=ycomp; v.z=zcomp;
73}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35

Referenced by DifVector::rotate().

◆ rotate() [2/2]

void DifRotation::rotate ( DifVector v) const

◆ xnew() [1/2]

DifVector DifRotation::xnew ( ) const
inline

Definition at line 47 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifRotation.h.

47{return _xnew;}

Referenced by rotate().

◆ xnew() [2/2]

DifVector DifRotation::xnew ( ) const
inline

◆ ynew() [1/2]

DifVector DifRotation::ynew ( ) const
inline

Definition at line 48 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifRotation.h.

48{return _ynew;}

Referenced by rotate().

◆ ynew() [2/2]

DifVector DifRotation::ynew ( ) const
inline

◆ znew() [1/2]

DifVector DifRotation::znew ( ) const
inline

Definition at line 49 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifRotation.h.

49{return _znew;}

Referenced by rotate().

◆ znew() [2/2]

DifVector DifRotation::znew ( ) const
inline

The documentation for this class was generated from the following files: