35 #ifndef G4KineticTrack_h
36 #define G4KineticTrack_h 1
131 void SetnChannels(
const G4int aChannel);
133 void SetActualWidth(
G4double* anActualWidth);
135 G4double EvaluateTotalActualWidth();
144 G4double IntegrateCMMomentum2()
const;
212 return theDefinition;
217 theDefinition = aDefinition;
222 return theFormationTime;
227 theFormationTime = aFormationTime;
237 thePosition = aPosition;
242 return theTotal4Momentum;
254 theTotal4Momentum=a4Momentum;
255 the4Momentum = theTotal4Momentum;
265 if (
sqr(aEnergy) > mass2 )
267 newP = std::sqrt(
sqr(aEnergy) - mass2 );
270 aEnergy=std::sqrt(mass2);
287 the4Momentum = aMomentum;
288 theTotal4Momentum=the4Momentum+theFermi3Momentum;
292 theTotal4Momentum.
setE(std::sqrt(mass2+p2));
301 if (
sqr(aEnergy) > mass2 )
303 newP = std::sqrt(
sqr(aEnergy) - mass2 );
306 aEnergy=std::sqrt(mass2);
321 return std::sqrt(std::abs(the4Momentum.
mag2()));
329 inline void G4KineticTrack::SetnChannels(
const G4int numberOfChannels)
331 nChannels = numberOfChannels;
336 return theActualWidth;
339 inline void G4KineticTrack::SetActualWidth(
G4double* anActualWidth)
341 theActualWidth = anActualWidth;
346 inline G4double G4KineticTrack::EvaluateTotalActualWidth()
350 for (index = nChannels - 1; index >= 0; index--)
352 theTotalActualWidth += theActualWidth[index];
354 return theTotalActualWidth;
359 G4double theTotalActualWidth = this->EvaluateTotalActualWidth();
362 return theResidualLifetime*the4Momentum.
gamma();
369 if((m_ij[0]+m_ij[1])<mass)
370 theCMMomentum = 1 / (2 * mass) *
371 std::sqrt (((mass * mass) - (m_ij[0] + m_ij[1]) * (m_ij[0] + m_ij[1])) *
372 ((mass * mass) - (m_ij[0] - m_ij[1]) * (m_ij[0] - m_ij[1])));
376 return theCMMomentum;
382 return (Gamma/((mass-rmass)*(mass-rmass)+Gamma*Gamma/4.))/Norm;
397 if(!theNucleon)
return true;
404 return theStateToNucleus;
411 theStateToNucleus=new_state;
418 theProjectilePotential = aPotential;
423 return theProjectilePotential;
void SetDefinition(const G4ParticleDefinition *aDefinition)
G4bool IsParticipant() const
void Update4Momentum(G4double aEnergy)
G4int operator==(const G4KineticTrack &right) const
CascadeState GetState() const
G4int GetnChannels() const
const G4ThreeVector & GetPosition() const
G4KineticTrackVector * Decay()
void SetFormationTime(G4double aFormationTime)
void UpdateTrackingMomentum(G4double aEnergy)
G4double GetActualMass() const
void SetProjectilePotential(const G4double aPotential)
G4double * GetActualWidth() const
G4int operator!=(const G4KineticTrack &right) const
CascadeState SetState(const CascadeState new_state)
G4bool nucleon(G4int ityp)
G4double GetFormationTime() const
void SetNucleon(G4Nucleon *aN)
void SetPosition(const G4ThreeVector aPosition)
G4KineticTrack & operator=(const G4KineticTrack &right)
void Set4Momentum(const G4LorentzVector &a4Momentum)
G4double G4Log(G4double x)
const G4LorentzVector & GetTrackingMomentum() const
void SetTrackingMomentum(const G4LorentzVector &a4Momentum)
void Hit(G4VSplitableHadron *aHit)
const G4LorentzVector & Get4Momentum() const
G4double SampleResidualLifetime()
static constexpr double hbar_Planck
const G4ParticleDefinition * GetDefinition() const
G4double BrWig(const G4double Gamma, const G4double rmass, const G4double mass) const
static constexpr double twopi
G4double GetProjectilePotential() const
CLHEP::HepLorentzVector G4LorentzVector