#include <G4KineticTrackVector.hh>
Public Member Functions | |
G4KineticTrackVector () | |
void | BoostBeam (G4ThreeVector &BeamMom) |
void | Boost (G4ThreeVector &Velocity) |
void | Shift (G4ThreeVector &Pos) |
Definition at line 38 of file G4KineticTrackVector.hh.
G4KineticTrackVector::G4KineticTrackVector | ( | ) |
void G4KineticTrackVector::Boost | ( | G4ThreeVector & | Velocity | ) |
Definition at line 50 of file G4KineticTrackVector.cc.
Referenced by G4VLongitudinalStringDecay::LightFragmentationTest().
00051 { 00052 for(unsigned int c1 = 0; c1 < size(); c1++) 00053 { 00054 G4KineticTrack& KT =**(begin()+c1); 00055 G4LorentzVector Mom = KT.Get4Momentum(); 00056 Mom.boost(Velocity); 00057 KT.Set4Momentum(Mom); 00058 } 00059 }
void G4KineticTrackVector::BoostBeam | ( | G4ThreeVector & | BeamMom | ) |
Definition at line 37 of file G4KineticTrackVector.cc.
References sqr().
00038 { 00039 for(unsigned int c1 = 0; c1 < size(); c1++) 00040 { 00041 G4KineticTrack& KT =**(begin()+c1); 00042 G4LorentzVector Mom = KT.Get4Momentum(); 00043 G4ThreeVector Velocity = (1/std::sqrt(BeamMom.mag2() + sqr(KT.GetDefinition()->GetPDGMass())))*BeamMom; 00044 Mom.boost(Velocity); 00045 KT.Set4Momentum(Mom); 00046 } 00047 }
void G4KineticTrackVector::Shift | ( | G4ThreeVector & | Pos | ) |
Definition at line 63 of file G4KineticTrackVector.cc.
00064 { 00065 for(unsigned int c1 = 0; c1 < size(); c1++) 00066 { 00067 G4KineticTrack& KT =**(begin()+c1); 00068 KT.SetPosition(KT.GetPosition() + Pos); 00069 } 00070 }