/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/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)
ostreamoperator<< (ostream &s, const EvtVector3R &v)
EvtVector3R cross (const EvtVector3R &p1, const EvtVector3R &p2)


Function Documentation

EvtVector3R cross ( const EvtVector3R p1,
const EvtVector3R p2 
)

Definition at line 84 of file EvtVector3R.cc.

References EvtVector3R::v.

Referenced by Lpar::arcfun(), DifFourVector::boostFrom(), DifFourVector::boostFromMe(), DifFourVector::boostTo(), DifFourVector::boostToMe(), EmcRecGeoPlane::Build(), TrkDifPoca::calcDist(), EvtVVP::decay(), EvtOmegaDalitz::decay(), DifRotation::DifRotation(), EmcRecGeoPlane::EmcRecGeoPlane(), BeamParams::execute(), and TTrackManager::removeHitsAcrossOverIp().

00084                                                                 {
00085 
00086   //Calcs the cross product.  Added by djl on July 27, 1995.
00087   //Modified for real vectros by ryd Aug 28-96
00088 
00089   return EvtVector3R(p1.v[1]*p2.v[2] - p1.v[2]*p2.v[1],
00090                      p1.v[2]*p2.v[0] - p1.v[0]*p2.v[2],
00091                      p1.v[0]*p2.v[1] - p1.v[1]*p2.v[0]);
00092 
00093 }

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

Definition at line 75 of file EvtVector3R.cc.

References v.

00075                                                     {
00076  
00077   s<<"("<<v.v[0]<<","<<v.v[1]<<","<<v.v[2]<<")";
00078 
00079   return s;
00080 
00081 }

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

Definition at line 43 of file EvtVector3R.cc.

References EvtVector3R::applyRotateEuler(), and v.

00044                                                               {
00045 
00046   EvtVector3R tmp(v);
00047   tmp.applyRotateEuler(alpha,beta,gamma);
00048   return tmp;
00049 
00050 }


Generated on Tue Nov 29 23:15:55 2016 for BOSS_7.0.2 by  doxygen 1.4.7