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

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 84 of file EvtVector3R.cc.

84 {
85
86 //Calcs the cross product. Added by djl on July 27, 1995.
87 //Modified for real vectros by ryd Aug 28-96
88
89 return EvtVector3R(p1.v[1]*p2.v[2] - p1.v[2]*p2.v[1],
90 p1.v[2]*p2.v[0] - p1.v[0]*p2.v[2],
91 p1.v[0]*p2.v[1] - p1.v[1]*p2.v[0]);
92
93}
double p1[4]
double p2[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(), and TTrackManager::removeHitsAcrossOverIp().

◆ operator<<()

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

Definition at line 75 of file EvtVector3R.cc.

75 {
76
77 s<<"("<<v.v[0]<<","<<v.v[1]<<","<<v.v[2]<<")";
78
79 return s;
80
81}
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 43 of file EvtVector3R.cc.

44 {
45
46 EvtVector3R tmp(v);
47 tmp.applyRotateEuler(alpha,beta,gamma);
48 return tmp;
49
50}
const double alpha