BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtVector3R.cc File Reference
#include "EvtVector3R.hh"
#include "EvtPatches.hh"
#include <iostream>
#include <math.h>

Go to the source code of this file.

Functions

EvtVector3R rotateEuler (const EvtVector3R &v, double alpha, double beta, double gamma)
ostream & operator<< (ostream &s, const EvtVector3R &v)
EvtVector3R cross (const EvtVector3R &p1, const EvtVector3R &p2)

Function Documentation

◆ cross()

EvtVector3R cross ( const EvtVector3R & p1,
const EvtVector3R & p2 )

Definition at line 76 of file EvtVector3R.cc.

76 {
77
78 // Calcs the cross product. Added by djl on July 27, 1995.
79 // Modified for real vectros by ryd Aug 28-96
80
81 return EvtVector3R( p1.v[1] * p2.v[2] - p1.v[2] * p2.v[1],
82 p1.v[2] * p2.v[0] - p1.v[0] * p2.v[2],
83 p1.v[0] * p2.v[1] - p1.v[1] * p2.v[0] );
84}
double p2[4]
double p1[4]

Referenced by DifFourVector::boostFrom(), DifFourVector::boostFromMe(), DifFourVector::boostTo(), DifFourVector::boostToMe(), EmcRecGeoPlane::Build(), EvtOmegaDalitz::decay(), EvtVVP::decay(), DifRotation::DifRotation(), EmcRecGeoPlane::EmcRecGeoPlane(), BeamParams::execute(), MucGeometron::GetIntersectionLinePlane(), MucGeometron::GetIntersectionLinePlaneWithSigma(), m_vcut(), and TTrackManager::removeHitsAcrossOverIp().

◆ operator<<()

ostream & operator<< ( ostream & s,
const EvtVector3R & v )

Definition at line 69 of file EvtVector3R.cc.

69 {
70
71 s << "(" << v.v[0] << "," << v.v[1] << "," << v.v[2] << ")";
72
73 return s;
74}
XmlRpcServer s
**********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

◆ rotateEuler()

EvtVector3R rotateEuler ( const EvtVector3R & v,
double alpha,
double beta,
double gamma )

Definition at line 39 of file EvtVector3R.cc.

39 {
40
41 EvtVector3R tmp( v );
42 tmp.applyRotateEuler( alpha, beta, gamma );
43 return tmp;
44}
double alpha