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::fabs(a) > 1.0 ) a<0.0 ? a=-1.0 : a=1.0;
432 if( std::fabs(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::fabs((1.-cost)*(1.+cost)))
676 G4cout <<
"G4GHEKinematicsVector: "
void Sub(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
G4double Dot4(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void Smul(const G4GHEKinematicsVector &p, G4double h)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
void Exch(G4GHEKinematicsVector &p1)
void SetEnergy(G4double e)
std::vector< ExP01TrackerHit * > a
void SetMass(G4double mas)
void SmulAndUpdate(const G4GHEKinematicsVector &p, G4double h)
void SetKineticEnergy(G4double ekin)
G4GHEKinematicsVector(const G4GHEKinematicsVector &p)
void SetKineticEnergyAndUpdate(G4double ekin)
void SetEnergyAndUpdate(G4double e)
G4double Ang(const G4GHEKinematicsVector &p)
double dot(const Hep3Vector &) const
void Defs1(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void Trac(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &mx, const G4GHEKinematicsVector &my, const G4GHEKinematicsVector &mz)
void Add3(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void SetMomentumAndUpdate(G4double x, G4double y, G4double z)
void SetMomentum(G4double x, G4double y, G4double z)
G4double CosAng(const G4GHEKinematicsVector &p)
void Norz(const G4GHEKinematicsVector &p)
void SetMomentum(G4ParticleMomentum mom)
void Cross(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
const G4ParticleMomentum GetMomentum() const
G4ParticleDefinition * particleDef
G4double Impu(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void SetParticleDef(G4ParticleDefinition *c)
void SetMomentumAndUpdate(G4double x, G4double y)
void SetMomentumAndUpdate(G4double z)
G4double GetKineticEnergy()
void SetMomentum(G4double x, G4double y)
void SetMassAndUpdate(G4double mas)
void SetMomentumAndUpdate(G4ParticleMomentum mom)
void Defs(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2, G4GHEKinematicsVector &my, G4GHEKinematicsVector &mz)
static constexpr double twopi
void Sub3(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
G4ParticleMomentum momentum
G4GHEKinematicsVector & operator=(const G4GHEKinematicsVector &p)
void Add(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * GetParticleDef()
void Lor(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
static constexpr double halfpi
G4double Dot(const G4GHEKinematicsVector &p1, const G4GHEKinematicsVector &p2)
void SetMomentum(G4double z)
void SetCharge(G4double c)
static constexpr double pi