43#ifndef G4GHEKinematicsVector_h
44#define G4GHEKinematicsVector_h 1
202 G4double sint = std::sqrt(1. - cost*cost);
242 G4double sint = std::sqrt(1. - cost*cost);
287 G4double sint = std::sqrt(1.-cost*cost);
367 mass = -1. * std::sqrt( -b );
369 mass = std::sqrt( b );
383 mass = -1. * std::sqrt( -b );
385 mass = std::sqrt( b );
419 if( std::abs(a) > 1.0 ) a<0.0 ? a=-1.0 : a=1.0;
432 if( std::abs(a) > 1.0 ) a<0.0 ? a=-1.0 : a=1.0;
525 if (a > 0.0) a = 1./std::sqrt(a);
586 G4double sint = 0.5 * ( std::sqrt(std::abs((1.-cost)*(1.+cost)))
588 (p2.
momentum.
y() < 0.) ? ph = 1.5*CLHEP::pi : ph = CLHEP::halfpi;
676 G4cout <<
"G4GHEKinematicsVector: "
G4GLOB_DLL std::ostream G4cout
double dot(const Hep3Vector &) const
void SetMomentumAndUpdate(G4double z)
void SetEnergy(G4double e)
void SetMomentumAndUpdate(G4double x, G4double y)
void SetEnergyAndUpdate(G4double e)
void SetMomentumAndUpdate(G4double x, G4double y, G4double z)
void Defs(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2, G4GHEKinematicsVector &my, G4GHEKinematicsVector &mz)
G4GHEKinematicsVector(const G4GHEKinematicsVector &p)
G4ParticleDefinition * GetParticleDef()
const G4ParticleMomentum GetMomentum() const
void Trac(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &mx, const G4GHEKinematicsVector &my, const G4GHEKinematicsVector &mz)
void SmulAndUpdate(const G4GHEKinematicsVector &p, G4double h)
void SetMassAndUpdate(G4double mas)
void Sub3(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void Exch(G4GHEKinematicsVector &p1)
void SetParticleDef(G4ParticleDefinition *c)
void SetMomentum(G4double x, G4double y)
G4double Ang(const G4GHEKinematicsVector &p)
void SetMomentum(G4ParticleMomentum mom)
void SetMomentumAndUpdate(G4ParticleMomentum mom)
void Sub(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
G4ParticleDefinition * particleDef
void SetMass(G4double mas)
void Lor(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void SetMomentum(G4double x, G4double y, G4double z)
void Cross(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
G4double Dot(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
G4double Impu(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void Norz(const G4GHEKinematicsVector &p)
G4double CosAng(const G4GHEKinematicsVector &p)
G4GHEKinematicsVector & operator=(const G4GHEKinematicsVector &p)
void Add3(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void SetKineticEnergyAndUpdate(G4double ekin)
G4double GetKineticEnergy()
void Defs1(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
G4double Dot4(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
G4ParticleMomentum momentum
void SetKineticEnergy(G4double ekin)
void Smul(const G4GHEKinematicsVector &p, G4double h)
void SetMomentum(G4double z)
void Add(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void SetCharge(G4double c)