38 const int precLen= 12;
39 const int precSpin= 9;
40 const int precTime= 6;
41 const int oldpr= os.precision(precPos);
43 os <<
" X= " << SixV[0] <<
" " << SixV[1] <<
" "
46 os <<
" P= " << SixV[3] <<
" " << SixV[4] <<
" "
51 os.precision(precLen);
61 if( pol.mag2() > 0.0 ){
62 os.precision(precSpin);
63 os <<
" PolV= " << pol;
65 os <<
" PolV= (0,0,0) ";
82 : fDistanceAlongCurve(curve_length),
83 fKineticEnergy(kineticEnergy),
84 fRestMass_c2(restMass_c2),
85 fLabTimeOfFlight(LaboratoryTimeOfFlight),
86 fProperTimeOfFlight(0.),
88 fChargeState( charge, magnetic_dipole_moment, pdgSpin )
110 : fDistanceAlongCurve(curve_length),
111 fKineticEnergy(kineticEnergy),
112 fRestMass_c2(restMass_c2),
113 fLabTimeOfFlight(pLaboratoryTimeOfFlight),
114 fProperTimeOfFlight(pProperTimeOfFlight),
124 if( pPolarization ) { PolarVec= *pPolarization; }
129 : fKineticEnergy(0.), fRestMass_c2(0.), fLabTimeOfFlight(0.),
146 magnetic_dipole_moment,
147 electric_dipole_moment,
167 G4int noVarsIntegrated)
173 for( i=0; i<noVarsIntegrated; i++){
174 valArr[i]= valArrIn[i];
176 for( i=noVarsIntegrated; i<
ncompSVEC; i++) {
189 G4double momentum_square= Momentum.mag2();
void SetPosition(G4ThreeVector nPos)
G4double GetCurveLength() const
CLHEP::Hep3Vector G4ThreeVector
void SetPolarization(const G4ThreeVector &vecPol)
G4double fLabTimeOfFlight
void UpdateFourMomentum(G4double kineticEnergy, const G4ThreeVector &momentumDirection)
void SetChargesAndMoments(G4double charge, G4double magnetic_dipole_moment, G4double electric_dipole_moment, G4double magnetic_charge)
G4FieldTrack(const G4ThreeVector &pPosition, G4double LaboratoryTimeOfFlight, const G4ThreeVector &pMomentumDirection, G4double kineticEnergy, G4double restMass_c2, G4double charge, const G4ThreeVector &polarization, G4double magnetic_dipole_moment=0.0, G4double curve_length=0.0, G4double PDGspin=-1.0)
G4ThreeVector fMomentumDir
std::ostream & operator<<(std::ostream &os, const G4FieldTrack &SixVec)
G4ThreeVector GetPolarization() const
void LoadFromArray(const G4double valArr[ncompSVEC], G4int noVarsIntegrated)
G4double fProperTimeOfFlight
void SetChargeAndMoments(G4double charge, G4double magnetic_dipole_moment=DBL_MAX, G4double electric_dipole_moment=DBL_MAX, G4double magnetic_charge=DBL_MAX)
G4FieldTrack & SetCurvePnt(const G4ThreeVector &pPosition, const G4ThreeVector &pMomentum, G4double s_curve)
G4ChargeState fChargeState
void SetPDGSpin(G4double spin)