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