#include <G4FieldTrack.hh>
|
| 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) |
|
| G4FieldTrack (const G4FieldTrack &pFieldTrack) |
|
| G4FieldTrack (char) |
|
| ~G4FieldTrack () |
|
void | UpdateState (const G4ThreeVector &pPosition, G4double LaboratoryTimeOfFlight, const G4ThreeVector &pMomentumDirection, G4double kineticEnergy) |
|
void | UpdateFourMomentum (G4double kineticEnergy, const G4ThreeVector &momentumDirection) |
|
void | SetChargeAndMoments (G4double charge, G4double magnetic_dipole_moment=DBL_MAX, G4double electric_dipole_moment=DBL_MAX, G4double magnetic_charge=DBL_MAX) |
|
void | SetPDGSpin (G4double pdgSpin) |
|
G4double | GetPDGSpin () |
|
| G4FieldTrack (const G4ThreeVector &pPosition, const G4ThreeVector &pMomentumDirection, G4double curve_length, G4double kineticEnergy, const G4double restMass_c2, G4double velocity, G4double LaboratoryTimeOfFlight=0.0, G4double ProperTimeOfFlight=0.0, const G4ThreeVector *pPolarization=0, G4double PDGspin=-1.0) |
|
G4FieldTrack & | operator= (const G4FieldTrack &rStVec) |
|
G4ThreeVector | GetMomentum () const |
|
G4ThreeVector | GetPosition () const |
|
const G4ThreeVector & | GetMomentumDir () const |
|
G4ThreeVector | GetMomentumDirection () const |
|
G4double | GetCurveLength () const |
|
G4ThreeVector | GetPolarization () const |
|
void | SetPolarization (const G4ThreeVector &vecPol) |
|
G4double | GetLabTimeOfFlight () const |
|
G4double | GetProperTimeOfFlight () const |
|
G4double | GetKineticEnergy () const |
|
G4double | GetCharge () const |
|
G4double | GetRestMass () const |
|
void | SetPosition (G4ThreeVector nPos) |
|
void | SetMomentum (G4ThreeVector nMomDir) |
|
void | SetMomentumDir (G4ThreeVector nMomDir) |
|
void | SetRestMass (G4double Mass_c2) |
|
void | SetCurveLength (G4double nCurve_s) |
|
void | SetKineticEnergy (G4double nEnergy) |
|
void | SetLabTimeOfFlight (G4double tofLab) |
|
void | SetProperTimeOfFlight (G4double tofProper) |
|
void | DumpToArray (G4double valArr[ncompSVEC]) const |
|
void | LoadFromArray (const G4double valArr[ncompSVEC], G4int noVarsIntegrated) |
|
void | InitialiseSpin (const G4ThreeVector &vecPolarization) |
|
G4ThreeVector | GetSpin () const |
|
void | SetSpin (G4ThreeVector vSpin) |
|
const G4ChargeState * | GetChargeState () const |
|
Definition at line 54 of file G4FieldTrack.hh.
Definition at line 72 of file G4FieldTrack.cc.
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 )
void SetPosition(G4ThreeVector nPos)
void SetPolarization(const G4ThreeVector &vecPol)
void UpdateFourMomentum(G4double kineticEnergy, const G4ThreeVector &momentumDirection)
G4FieldTrack::G4FieldTrack |
( |
const G4FieldTrack & |
pFieldTrack | ) |
|
G4FieldTrack::G4FieldTrack |
( |
char |
| ) |
|
Definition at line 128 of file G4FieldTrack.cc.
129 : fKineticEnergy(0.), fRestMass_c2(0.), fLabTimeOfFlight(0.),
133 SetCurvePnt( Zero, Zero, 0.0 );
void SetPolarization(const G4ThreeVector &vecPol)
G4FieldTrack::~G4FieldTrack |
( |
| ) |
|
Definition at line 100 of file G4FieldTrack.cc.
110 : fDistanceAlongCurve(curve_length),
111 fKineticEnergy(kineticEnergy),
112 fRestMass_c2(restMass_c2),
113 fLabTimeOfFlight(pLaboratoryTimeOfFlight),
114 fProperTimeOfFlight(pProperTimeOfFlight),
124 if( pPolarization ) { PolarVec= *pPolarization; }
void SetPosition(G4ThreeVector nPos)
void SetPolarization(const G4ThreeVector &vecPol)
void UpdateFourMomentum(G4double kineticEnergy, const G4ThreeVector &momentumDirection)
void SetPDGSpin(G4double spin)
void G4FieldTrack::DumpToArray |
( |
G4double |
valArr[ncompSVEC] | ) |
const |
|
inline |
G4double G4FieldTrack::GetCharge |
( |
| ) |
const |
|
inline |
G4double G4FieldTrack::GetCurveLength |
( |
| ) |
const |
|
inline |
G4double G4FieldTrack::GetKineticEnergy |
( |
| ) |
const |
|
inline |
G4double G4FieldTrack::GetLabTimeOfFlight |
( |
| ) |
const |
|
inline |
G4double G4FieldTrack::GetProperTimeOfFlight |
( |
| ) |
const |
|
inline |
G4double G4FieldTrack::GetRestMass |
( |
| ) |
const |
|
inline |
Definition at line 159 of file G4FieldTrack.hh.
void SetPolarization(const G4ThreeVector &vecPol)
void G4FieldTrack::LoadFromArray |
( |
const G4double |
valArr[ncompSVEC], |
|
|
G4int |
noVarsIntegrated |
|
) |
| |
Definition at line 166 of file G4FieldTrack.cc.
173 for( i=0; i<noVarsIntegrated; i++){
174 valArr[i]= valArrIn[i];
176 for( i=noVarsIntegrated; i<
ncompSVEC; i++) {
180 SixVector[0]=valArr[0];
181 SixVector[1]=valArr[1];
182 SixVector[2]=valArr[2];
183 SixVector[3]=valArr[3];
184 SixVector[4]=valArr[4];
185 SixVector[5]=valArr[5];
189 G4double momentum_square= Momentum.mag2();
190 fMomentumDir= Momentum.
unit();
192 fKineticEnergy = momentum_square /
193 (std::sqrt(momentum_square+fRestMass_c2*fRestMass_c2)
201 fLabTimeOfFlight=valArr[7];
202 fProperTimeOfFlight=valArr[8];
CLHEP::Hep3Vector G4ThreeVector
void SetPolarization(const G4ThreeVector &vecPol)
Definition at line 140 of file G4FieldTrack.cc.
146 magnetic_dipole_moment,
147 electric_dipole_moment,
void SetChargesAndMoments(G4double charge, G4double magnetic_dipole_moment, G4double electric_dipole_moment, G4double magnetic_charge)
void G4FieldTrack::SetProperTimeOfFlight |
( |
G4double |
tofProper | ) |
|
|
inline |
Definition at line 162 of file G4FieldTrack.hh.
void SetPolarization(const G4ThreeVector &vecPol)
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const G4FieldTrack & |
SixVec |
|
) |
| |
|
friend |
Definition at line 33 of file G4FieldTrack.cc.
35 const G4double *SixV = SixVec.SixVector;
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] <<
" "
50 os <<
" Ekin= " << SixVec.fKineticEnergy ;
51 os.precision(precLen);
54 os <<
" m0= " << SixVec.fRestMass_c2;
55 os <<
" (Pdir-1)= " << SixVec.fMomentumDir.
mag()-1.0;
56 if( SixVec.fLabTimeOfFlight > 0.0 ) os.precision(precTime);
58 os <<
" t_lab= " << SixVec.fLabTimeOfFlight;
59 os <<
" t_proper= " << SixVec.fProperTimeOfFlight ;
61 if( pol.
mag2() > 0.0 ){
62 os.precision(precSpin);
63 os <<
" PolV= " << pol;
65 os <<
" PolV= (0,0,0) ";
G4double GetCurveLength() const
CLHEP::Hep3Vector G4ThreeVector
G4ThreeVector GetPolarization() const
The documentation for this class was generated from the following files: