67 fRemainderLifeTime(-1.0),
75 G4cout <<
"G4Decay constructor " <<
" Name:" << processName <<
G4endl;
157 pathlength = ( rKineticEnergy + 1.0)* aCtau;
158 }
else if ( rKineticEnergy <
DBL_MIN ) {
162 G4cout <<
"G4Decay::GetMeanFreePath() !!particle stops!!";
201 G4bool isPreAssigned = (o_products !=
nullptr);
211 if ( (decaytable ==
nullptr) && !isExtDecayer && !isPreAssigned ){
213 G4cout <<
"G4Decay::DoIt : decay table not defined for ";
218 "Decay table is not defined");
232 }
else if ( isExtDecayer ) {
252 if ( decaychannel ==
nullptr) {
255 ed <<
"Can not determine decay channel for "
257 <<
" mass of dynamic particle: "
259 <<
" dacay table has " << decaytable->
entries()
262 if (massParent < 0.) {
264 ed <<
"Using PDG mass ("<<checkedmass/
GeV
265 <<
"(GeV)) in IsOKWithParentMass" <<
G4endl;
269 ed << ic <<
": BR " << dc->
GetBR() <<
", IsOK? "
273 for (
G4int id=0;
id<ndaughters;++id) {
274 if (
id>0) ed <<
" + ";
285 G4cout <<
"G4Decay::DoIt : selected decay channel addr:"
307 if (ParentEnergy < ParentMass) {
309 G4cout <<
"G4Decay::DoIt : Total Energy is less than its mass" <<
G4endl;
311 G4cout <<
" Energy:" << ParentEnergy/
MeV <<
"[MeV]";
312 G4cout <<
" Mass:" << ParentMass/
MeV <<
"[MeV]";
317 "Total Energy is less than its mass");
318 ParentEnergy = ParentMass;
332 if (isPreAssigned) products->
Boost( ParentEnergy, ParentDirection);
335 if (!isExtDecayer) products->
Boost( ParentEnergy, ParentDirection);
346 G4cout <<
"G4Decay::DoIt : Decay vertex :";
347 G4cout <<
" Time: " << finalGlobalTime/
ns <<
"[ns]";
352 G4cout <<
"G4Decay::DoIt : decay products in Lab. Frame" <<
G4endl;
359 for (index=0; index < numberOfSecondaries; index++){
424 if ( previousStepSize > 0.0){
437 G4cout <<
"G4Decay::PostStepGetPhysicalInteractionLength " <<
G4endl;
523 <<
"kinematics of daughters are dertermined by DecayChannels "
524 <<
" or by PreAssignedDecayProducts\n";
G4double GetLocalTime() const
void AddSecondary(G4Track *aSecondary)
std::ostringstream G4ExceptionDescription
G4double fRemainderLifeTime
G4DecayTable * GetDecayTable() const
virtual void ResetNumberOfInteractionLengthLeft()
static constexpr double MeV
G4double GetPDGLifeTime() const
void SetExtDecayer(G4VExtDecayer *)
void SetVerboseLevel(G4int value)
G4int GetNumberOfDaughters() const
const G4ThreeVector & GetMomentumDirection() const
virtual G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep) override
const G4String & GetParticleName() const
void SubtractNumberOfInteractionLengthLeft(G4double previousStepSize)
const G4TouchableHandle & GetTouchableHandle() const
static constexpr double perMillion
virtual G4bool IsApplicable(const G4ParticleDefinition &) override
G4double condition(const G4ErrorSymMatrix &m)
G4DynamicParticle * PopProducts()
G4double GetPDGMass() const
void Boost(G4double totalEnergy, const G4ThreeVector &momentumDirection)
virtual G4double GetMeanLifeTime(const G4Track &aTrack, G4ForceCondition *condition) override
G4double GetProperTime() const
G4double currentInteractionLength
const G4String & GetName() const
const G4double HighestValue
virtual void ProcessDescription(std::ostream &outFile) const override
G4ParticleDefinition * GetDefinition() const
G4ParticleChangeForDecay fParticleChangeForDecay
G4VParticleChange * pParticleChange
const XML_Char int const XML_Char * value
G4VDecayChannel * GetDecayChannel(G4int index) const
G4double GetGlobalTime() const
G4double GetPreAssignedDecayProperTime() const
G4int GetVerboseLevel() const
void SetTouchableHandle(const G4TouchableHandle &apValue)
const G4String & GetProcessName() const
const G4ThreeVector & GetPosition() const
G4Material * GetMaterial() const
G4int GetVerboseLevel() const
const G4String & GetDaughterName(G4int anIndex) const
void ProposeLocalTime(G4double t)
G4bool GetPDGStable() const
virtual void EndTracking() override
void SetGoodForTrackingFlag(G4bool value=true)
const G4DecayProducts * GetPreAssignedDecayProducts() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual G4double AtRestGetPhysicalInteractionLength(const G4Track &track, G4ForceCondition *condition) override
static constexpr double c_light
void SetProcessSubType(G4int)
G4double GetKineticEnergy() const
static constexpr double cm
G4GLOB_DLL std::ostream G4cout
void ClearNumberOfInteractionLengthLeft()
virtual void StartTracking(G4Track *) override
virtual G4DecayProducts * DecayIt(G4double parentMass=-1.0)=0
virtual G4DecayProducts * ImportDecayProducts(const G4Track &aTrack)=0
G4VExtDecayer * pExtDecayer
virtual G4bool IsOKWithParentMass(G4double parentMass)
G4VDecayChannel * SelectADecayChannel(G4double parentMass=-1.)
G4double GetTotalMomentum() const
G4double GetTotalEnergy() const
G4double theNumberOfInteractionLengthLeft
virtual void BuildPhysicsTable(const G4ParticleDefinition &) override
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
G4TrackStatus GetTrackStatus() const
virtual G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition) override
G4Decay(const G4String &processName="Decay")
virtual void Initialize(const G4Track &)
void DumpInfo(G4int mode=0) const
void ProposeTrackStatus(G4TrackStatus status)
static constexpr double GeV
const G4DynamicParticle * GetDynamicParticle() const
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
virtual void DaughterPolarization(const G4Track &aTrack, G4DecayProducts *products)
virtual G4VParticleChange * DecayIt(const G4Track &aTrack, const G4Step &aStep)
void SetNumberOfSecondaries(G4int totSecondaries)