Geant4  10.00.p03
G4FieldTrack Class Reference

#include <G4FieldTrack.hh>

+ Collaboration diagram for G4FieldTrack:

Public Types

enum  { ncompSVEC = 12 }
 

Public Member Functions

 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)
 
G4FieldTrackoperator= (const G4FieldTrack &rStVec)
 
G4ThreeVector GetMomentum () const
 
G4ThreeVector GetPosition () const
 
const G4ThreeVectorGetMomentumDir () 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
 
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 G4ChargeStateGetChargeState () const
 

Private Member Functions

G4FieldTrackSetCurvePnt (const G4ThreeVector &pPosition, const G4ThreeVector &pMomentum, G4double s_curve)
 

Private Attributes

G4double SixVector [6]
 
G4double fDistanceAlongCurve
 
G4double fKineticEnergy
 
G4double fRestMass_c2
 
G4double fLabTimeOfFlight
 
G4double fProperTimeOfFlight
 
G4ThreeVector fPolarization
 
G4ThreeVector fMomentumDir
 
G4ChargeState fChargeState
 

Friends

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

Detailed Description

Definition at line 54 of file G4FieldTrack.hh.

Member Enumeration Documentation

anonymous enum
Enumerator
ncompSVEC 

Definition at line 148 of file G4FieldTrack.hh.

Constructor & Destructor Documentation

G4FieldTrack::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 
)

Definition at line 53 of file G4FieldTrack.cc.

References SetPolarization(), SetPosition(), and UpdateFourMomentum().

+ Here is the call graph for this function:

G4FieldTrack::G4FieldTrack ( const G4FieldTrack pFieldTrack)
G4FieldTrack::G4FieldTrack ( char  )

Definition at line 109 of file G4FieldTrack.cc.

References SetCurvePnt(), and SetPolarization().

+ Here is the call graph for this function:

G4FieldTrack::~G4FieldTrack ( )
G4FieldTrack::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 
)

Definition at line 81 of file G4FieldTrack.cc.

References fChargeState, G4ChargeState::SetPDGSpin(), SetPolarization(), SetPosition(), and UpdateFourMomentum().

+ Here is the call graph for this function:

Member Function Documentation

void G4FieldTrack::DumpToArray ( G4double  valArr[ncompSVEC]) const
inline

Referenced by G4MagInt_Driver::AccurateAdvance(), and G4MagInt_Driver::QuickAdvance().

+ Here is the caller graph for this function:

G4double G4FieldTrack::GetCharge ( ) const
inline

Referenced by G4PathFinder::ComputeStep().

+ Here is the caller graph for this function:

const G4ChargeState* G4FieldTrack::GetChargeState ( ) const
inline

Definition at line 184 of file G4FieldTrack.hh.

References fChargeState.

G4double G4FieldTrack::GetKineticEnergy ( ) const
inline

Referenced by G4Transportation::AlongStepGetPhysicalInteractionLength(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), G4MonopoleTransportation::AlongStepGetPhysicalInteractionLength(), and G4MagInt_Driver::PrintStat_Aux().

+ Here is the caller graph for this function:

G4double G4FieldTrack::GetLabTimeOfFlight ( ) const
inline

Referenced by G4Transportation::AlongStepGetPhysicalInteractionLength(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), and G4MonopoleTransportation::AlongStepGetPhysicalInteractionLength().

+ Here is the caller graph for this function:

G4ThreeVector G4FieldTrack::GetMomentum ( ) const
inline

Referenced by G4VIntersectionLocator::printStatus(), G4PropagatorInField::printStatus(), and G4FieldTrackUpdator::Update().

+ Here is the caller graph for this function:

G4ThreeVector G4FieldTrack::GetMomentumDirection ( ) const
inline

Referenced by G4PathFinder::ComputeStep(), G4PathFinder::DoNextLinearStep(), G4BrentLocator::EstimateIntersectionPoint(), G4MultiLevelLocator::EstimateIntersectionPoint(), and G4SimpleLocator::EstimateIntersectionPoint().

+ Here is the caller graph for this function:

G4double G4FieldTrack::GetPDGSpin ( )
inline

Definition at line 94 of file G4FieldTrack.hh.

References fChargeState, and G4ChargeState::GetPDGSpin().

+ Here is the call graph for this function:

G4ThreeVector G4FieldTrack::GetPolarization ( ) const
inline

Referenced by GetSpin().

+ Here is the caller graph for this function:

G4double G4FieldTrack::GetProperTimeOfFlight ( ) const
inline
G4ThreeVector G4FieldTrack::GetSpin ( ) const
inline

Definition at line 160 of file G4FieldTrack.hh.

References GetPolarization().

Referenced by G4Transportation::AlongStepGetPhysicalInteractionLength(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), and G4MonopoleTransportation::AlongStepGetPhysicalInteractionLength().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4FieldTrack::InitialiseSpin ( const G4ThreeVector vecPolarization)
inline

Definition at line 158 of file G4FieldTrack.hh.

References SetPolarization().

+ Here is the call graph for this function:

void G4FieldTrack::LoadFromArray ( const G4double  valArr[ncompSVEC],
G4int  noVarsIntegrated 
)

Definition at line 147 of file G4FieldTrack.cc.

References fKineticEnergy, fLabTimeOfFlight, fMomentumDir, fProperTimeOfFlight, fRestMass_c2, ncompSVEC, SetPolarization(), and SixVector.

Referenced by G4MagInt_Driver::AccurateAdvance(), G4MagInt_Driver::PrintStatus(), and G4MagInt_Driver::QuickAdvance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4FieldTrack& G4FieldTrack::operator= ( const G4FieldTrack rStVec)
inline
void G4FieldTrack::SetChargeAndMoments ( G4double  charge,
G4double  magnetic_dipole_moment = DBL_MAX,
G4double  electric_dipole_moment = DBL_MAX,
G4double  magnetic_charge = DBL_MAX 
)

Definition at line 121 of file G4FieldTrack.cc.

References fChargeState, and G4ChargeState::SetChargesAndMoments().

Referenced by G4FieldTrackUpdator::Update().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4FieldTrack::SetCurveLength ( G4double  nCurve_s)
inline

Referenced by G4MagInt_Driver::AccurateAdvance(), G4MagInt_Driver::PrintStatus(), and G4MagInt_Driver::QuickAdvance().

+ Here is the caller graph for this function:

G4FieldTrack& G4FieldTrack::SetCurvePnt ( const G4ThreeVector pPosition,
const G4ThreeVector pMomentum,
G4double  s_curve 
)
inlineprivate

Referenced by G4FieldTrack().

+ Here is the caller graph for this function:

void G4FieldTrack::SetKineticEnergy ( G4double  nEnergy)
inline
void G4FieldTrack::SetLabTimeOfFlight ( G4double  tofLab)
inline
void G4FieldTrack::SetMomentum ( G4ThreeVector  nMomDir)
inline
void G4FieldTrack::SetMomentumDir ( G4ThreeVector  nMomDir)
inline
void G4FieldTrack::SetPDGSpin ( G4double  pdgSpin)
inline

Definition at line 93 of file G4FieldTrack.hh.

References fChargeState, and G4ChargeState::SetPDGSpin().

+ Here is the call graph for this function:

void G4FieldTrack::SetPolarization ( const G4ThreeVector vecPol)
inline

Referenced by G4FieldTrack(), InitialiseSpin(), LoadFromArray(), and SetSpin().

+ Here is the caller graph for this function:

void G4FieldTrack::SetPosition ( G4ThreeVector  nPos)
inline

Referenced by G4PathFinder::DoNextLinearStep(), G4BrentLocator::EstimateIntersectionPoint(), G4MultiLevelLocator::EstimateIntersectionPoint(), G4SimpleLocator::EstimateIntersectionPoint(), and G4FieldTrack().

+ Here is the caller graph for this function:

void G4FieldTrack::SetProperTimeOfFlight ( G4double  tofProper)
inline

Referenced by G4PathFinder::DoNextLinearStep(), and G4FieldTrackUpdator::Update().

+ Here is the caller graph for this function:

void G4FieldTrack::SetRestMass ( G4double  Mass_c2)
inline

Definition at line 135 of file G4FieldTrack.hh.

References fRestMass_c2.

Referenced by G4FieldTrackUpdator::Update().

+ Here is the caller graph for this function:

void G4FieldTrack::SetSpin ( G4ThreeVector  vSpin)
inline

Definition at line 161 of file G4FieldTrack.hh.

References SetPolarization().

Referenced by G4FieldTrackUpdator::Update().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4FieldTrack::UpdateFourMomentum ( G4double  kineticEnergy,
const G4ThreeVector momentumDirection 
)
inline

Referenced by G4FieldTrack().

+ Here is the caller graph for this function:

void G4FieldTrack::UpdateState ( const G4ThreeVector pPosition,
G4double  LaboratoryTimeOfFlight,
const G4ThreeVector pMomentumDirection,
G4double  kineticEnergy 
)
inline

Referenced by G4FieldTrackUpdator::Update().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

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

Definition at line 33 of file G4FieldTrack.cc.

Member Data Documentation

G4ChargeState G4FieldTrack::fChargeState
private
G4double G4FieldTrack::fDistanceAlongCurve
private

Definition at line 170 of file G4FieldTrack.hh.

G4double G4FieldTrack::fKineticEnergy
private

Definition at line 171 of file G4FieldTrack.hh.

Referenced by LoadFromArray(), and operator<<().

G4double G4FieldTrack::fLabTimeOfFlight
private

Definition at line 173 of file G4FieldTrack.hh.

Referenced by LoadFromArray(), and operator<<().

G4ThreeVector G4FieldTrack::fMomentumDir
private

Definition at line 176 of file G4FieldTrack.hh.

Referenced by LoadFromArray(), and operator<<().

G4ThreeVector G4FieldTrack::fPolarization
private

Definition at line 175 of file G4FieldTrack.hh.

G4double G4FieldTrack::fProperTimeOfFlight
private

Definition at line 174 of file G4FieldTrack.hh.

Referenced by LoadFromArray(), and operator<<().

G4double G4FieldTrack::fRestMass_c2
private

Definition at line 172 of file G4FieldTrack.hh.

Referenced by LoadFromArray(), operator<<(), and SetRestMass().

G4double G4FieldTrack::SixVector[6]
private

Definition at line 169 of file G4FieldTrack.hh.

Referenced by LoadFromArray(), and operator<<().


The documentation for this class was generated from the following files: