BOSS 8.0.0
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
 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/12]

DifRotation::DifRotation ( )

Definition at line 24 of file DifRotation.cxx.

25 : _xnew( 1.0, 0.0, 0.0 ), _ynew( 0.0, 1.0, 0.0 ), _znew( 0.0, 0.0, 1.0 ) {}

Referenced by DifRotation(), DifRotation(), and DifRotation().

◆ DifRotation() [2/12]

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

Definition at line 27 of file DifRotation.cxx.

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

◆ DifRotation() [3/12]

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

Definition at line 51 of file DifRotation.cxx.

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

◆ DifRotation() [4/12]

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

Definition at line 54 of file DifRotation.cxx.

55 : _xnew( xp ), _ynew( yp ), _znew() {
56 _znew = cross( _xnew, _ynew );
57}
EvtVector3R cross(const EvtVector3R &p1, const EvtVector3R &p2)

◆ ~DifRotation() [1/3]

DifRotation::~DifRotation ( )
inline

◆ DifRotation() [5/12]

DifRotation::DifRotation ( )

◆ DifRotation() [6/12]

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

◆ DifRotation() [7/12]

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

◆ DifRotation() [8/12]

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

◆ ~DifRotation() [2/3]

DifRotation::~DifRotation ( )
inline

◆ DifRotation() [9/12]

DifRotation::DifRotation ( )

◆ DifRotation() [10/12]

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

◆ DifRotation() [11/12]

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

◆ DifRotation() [12/12]

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

◆ ~DifRotation() [3/3]

DifRotation::~DifRotation ( )
inline

Member Function Documentation

◆ fail() [1/3]

int DifRotation::fail ( ) const

Definition at line 59 of file DifRotation.cxx.

59{ return 0; }

◆ fail() [2/3]

int DifRotation::fail ( ) const

◆ fail() [3/3]

int DifRotation::fail ( ) const

◆ rotate() [1/3]

void DifRotation::rotate ( DifVector & v) const

Definition at line 61 of file DifRotation.cxx.

61 {
62 DifNumber xcomp = xnew() * v;
63 DifNumber ycomp = ynew() * v;
64 DifNumber zcomp = znew() * v;
65 v.x = xcomp;
66 v.y = ycomp;
67 v.z = zcomp;
68}
**********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/3]

void DifRotation::rotate ( DifVector & v) const

◆ rotate() [3/3]

void DifRotation::rotate ( DifVector & v) const

◆ xnew() [1/3]

DifVector DifRotation::xnew ( ) const
inline

Definition at line 44 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/DifRotation.h.

44{ return _xnew; }

Referenced by rotate().

◆ xnew() [2/3]

DifVector DifRotation::xnew ( ) const
inline

Definition at line 44 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/DifRotation.h.

44{ return _xnew; }

◆ xnew() [3/3]

DifVector DifRotation::xnew ( ) const
inline

Definition at line 44 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/DifRotation.h.

44{ return _xnew; }

◆ ynew() [1/3]

DifVector DifRotation::ynew ( ) const
inline

Definition at line 45 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/DifRotation.h.

45{ return _ynew; }

Referenced by rotate().

◆ ynew() [2/3]

DifVector DifRotation::ynew ( ) const
inline

Definition at line 45 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/DifRotation.h.

45{ return _ynew; }

◆ ynew() [3/3]

DifVector DifRotation::ynew ( ) const
inline

Definition at line 45 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/DifRotation.h.

45{ return _ynew; }

◆ znew() [1/3]

DifVector DifRotation::znew ( ) const
inline

Definition at line 46 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/DifRotation.h.

46{ return _znew; }

Referenced by rotate().

◆ znew() [2/3]

DifVector DifRotation::znew ( ) const
inline

Definition at line 46 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/DifRotation.h.

46{ return _znew; }

◆ znew() [3/3]

DifVector DifRotation::znew ( ) const
inline

Definition at line 46 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/DifRotation.h.

46{ return _znew; }

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