34#ifndef G4KineticTrack_h
35#define G4KineticTrack_h 1
130 void SetnChannels(
const G4int aChannel);
132 void SetActualWidth(
G4double* anActualWidth);
134 G4double EvaluateTotalActualWidth();
143 G4double IntegrateCMMomentum2()
const;
211 return theDefinition;
216 theDefinition = aDefinition;
221 return theFormationTime;
226 theFormationTime = aFormationTime;
236 thePosition = aPosition;
241 return theTotal4Momentum;
253 theTotal4Momentum=a4Momentum;
254 the4Momentum = theTotal4Momentum;
264 if (
sqr(aEnergy) > mass2 )
266 newP = std::sqrt(
sqr(aEnergy) - mass2 );
269 aEnergy=std::sqrt(mass2);
286 the4Momentum = aMomentum;
287 theTotal4Momentum=the4Momentum+theFermi3Momentum;
291 theTotal4Momentum.
setE(std::sqrt(mass2+p2));
300 if (
sqr(aEnergy) > mass2 )
302 newP = std::sqrt(
sqr(aEnergy) - mass2 );
305 aEnergy=std::sqrt(mass2);
320 return std::sqrt(std::abs(the4Momentum.
mag2()));
328inline void G4KineticTrack::SetnChannels(
const G4int numberOfChannels)
330 nChannels = numberOfChannels;
335 return theActualWidth;
338inline void G4KineticTrack::SetActualWidth(
G4double* anActualWidth)
340 theActualWidth = anActualWidth;
345inline G4double G4KineticTrack::EvaluateTotalActualWidth()
349 for (index = nChannels - 1; index >= 0; index--)
351 theTotalActualWidth += theActualWidth[index];
353 return theTotalActualWidth;
358 G4double theTotalActualWidth = this->EvaluateTotalActualWidth();
359 G4double tau = CLHEP::hbar_Planck * (-1.0 / theTotalActualWidth);
361 return theResidualLifetime*the4Momentum.
gamma();
368 if((m_ij[0]+m_ij[1])<mass)
369 theCMMomentum = 1 / (2 * mass) *
370 std::sqrt (((mass * mass) - (m_ij[0] + m_ij[1]) * (m_ij[0] + m_ij[1])) *
371 ((mass * mass) - (m_ij[0] - m_ij[1]) * (m_ij[0] - m_ij[1])));
375 return theCMMomentum;
381 return (Gamma/((mass-rmass)*(mass-rmass)+Gamma*Gamma/4.))/Norm;
396 if(!theNucleon)
return true;
403 return theStateToNucleus;
410 theStateToNucleus=new_state;
417 theProjectilePotential = aPotential;
422 return theProjectilePotential;
G4double G4Log(G4double x)
CLHEP::HepLorentzVector G4LorentzVector
G4double GetFormationTime() const
CascadeState SetState(const CascadeState new_state)
G4double GetProjectilePotential() const
void SetPosition(const G4ThreeVector aPosition)
G4KineticTrackVector * Decay()
G4KineticTrack & operator=(const G4KineticTrack &right)
CascadeState GetState() const
void SetNucleon(G4Nucleon *aN)
G4bool operator!=(const G4KineticTrack &right) const
void SetProjectilePotential(const G4double aPotential)
void Set4Momentum(const G4LorentzVector &a4Momentum)
G4int GetnChannels() const
const G4ThreeVector & GetPosition() const
void SetTrackingMomentum(const G4LorentzVector &a4Momentum)
const G4ParticleDefinition * GetDefinition() const
G4bool operator==(const G4KineticTrack &right) const
G4bool IsParticipant() const
void SetDefinition(const G4ParticleDefinition *aDefinition)
const G4LorentzVector & GetTrackingMomentum() const
G4double * GetActualWidth() const
void UpdateTrackingMomentum(G4double aEnergy)
void SetFormationTime(G4double aFormationTime)
void Update4Momentum(G4double aEnergy)
G4double SampleResidualLifetime()
G4double BrWig(const G4double Gamma, const G4double rmass, const G4double mass) const
const G4LorentzVector & Get4Momentum() const
G4double GetActualMass() const
void Hit(G4VSplitableHadron *aHit)