Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FieldTrack.cc File Reference
#include "G4FieldTrack.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4FieldTrack &SixVec)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const G4FieldTrack SixVec 
)

Definition at line 33 of file G4FieldTrack.cc.

34{
35 const G4double *SixV = SixVec.SixVector;
36 os << " ( ";
37 os << " X= " << SixV[0] << " " << SixV[1] << " "
38 << SixV[2] << " "; // Position
39 os << " V= " << SixV[3] << " " << SixV[4] << " "
40 << SixV[5] << " "; // Momentum
41 os << " v2= "
42 << G4ThreeVector(SixV[3], SixV[4], SixV[5]).mag(); // mom magnitude
43 os << " mdm= " << SixVec.fMomentumDir.mag();
44 os << " l= " << SixVec.GetCurveLength();
45 os << " ) ";
46 return os;
47}
CLHEP::Hep3Vector G4ThreeVector
double G4double
Definition: G4Types.hh:64
double mag() const
G4double GetCurveLength() const