Geant4.10
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
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

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

Definition at line 33 of file G4FieldTrack.cc.

References G4FieldTrack::GetCurveLength(), and CLHEP::Hep3Vector::mag().

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 }
G4double GetCurveLength() const
CLHEP::Hep3Vector G4ThreeVector
double G4double
Definition: G4Types.hh:76
double mag() const