62 G4cout <<
"G4MolecularDecayProcess constructor " <<
" Name:" << processName <<
G4endl;
68 fDecayAtFixedTime = true ;
73 DecayDisplacementMap::iterator it = fDecayDisplacementMap.begin();
75 for( ; it != fDecayDisplacementMap.end() ; it++)
83 fDecayDisplacementMap.clear();
89 fDecayAtFixedTime = right . fDecayAtFixedTime;
90 fDecayDisplacementMap = right.fDecayDisplacementMap;
91 fVerbose = right.fVerbose ;
101 G4cout<<
"G4MolecularDecay::IsApplicable(";
118 return (output > 0 ? output : 0 );
137 if(moleculeDefinition-> GetDecayTable())
139 const vector<const G4MolecularDecayChannel*>* DecayVector =
140 (theMotherMolecule -> GetDecayChannel());
146 exceptionDescription <<
"No decay channel was found for the molecule : " << theMotherMolecule-> GetName() <<
G4endl;
147 G4Exception(
"G4DNAMolecularDissociation::DecayIt",
"G4DNAMolecularDissociation::NoDecayChannel",
FatalException,exceptionDescription);
151 G4int DecayVectorSize = DecayVector-> size();
160 decayChannel = (*DecayVector)[i];
161 if(RdmValue < decayChannel->GetProbability())
break;
165 while(i< DecayVectorSize);
187 vector<G4ThreeVector> ProductsDisplacement(nbProducts);
190 DecayDisplacementMap::iterator it = fDecayDisplacementMap.find(moleculeDefinition);
192 if(it!=fDecayDisplacementMap.end())
196 theMotherMoleculeDisplacement = displacer-> GetMotherMoleculeDisplacement(decayChannel);
201 errMsg <<
"No G4MolecularDecayProcess::theDecayDisplacementMap["
202 << theMotherMolecule->
GetName() +
"]" ;
211 G4cout<<
"Decay Process : "
212 << theMotherMolecule->
GetName()
213 <<
" (trackID :" << track.
GetTrackID() <<
") "
219 for (
G4int j=0; j<nbProducts ; j++)
228 + theMotherMoleculeDisplacement + ProductsDisplacement[j]);
230 secondary-> SetTrackStatus(
fAlive);
252 else if(!decayEnergy && !nbProducts)
255 errMsg <<
"There is no products and no energy specified in the molecular decay channel";
267 fDecayDisplacementMap[molDef] = aDisplacer;
272 return fDecayDisplacementMap[molDef] ;
G4double GetEnergy() const
virtual G4double GetMeanLifeTime(const G4Track &, G4ForceCondition *)
G4VMolecularDecayDisplacer * GetDecayDisplacer(const G4ParticleDefinition *)
std::ostringstream G4ExceptionDescription
G4double GetProperTime() const
const G4String & GetName() const
const G4ThreeVector & GetPosition() const
G4double GetProbability() const
const G4String & GetParticleName() const
Identical to G4VRestProcess with dependency from G4VITProcess.
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
const G4String & GetName() const
G4GLOB_DLL std::ostream G4cout
static G4ITManager< T > * Instance()
virtual G4VParticleChange * DecayIt(const G4Track &, const G4Step &)
G4int GetNbProducts() const
void SetProcessSubType(G4int)
const G4String & GetParticleType() const
virtual ~G4DNAMolecularDissociation()
virtual std::vector< G4ThreeVector > GetProductsDisplacement(const G4MolecularDecayChannel *) const =0
G4bool enablePostStepDoIt
G4Molecule * GetMolecule(const G4Track &track)
const G4MoleculeDefinition * GetDefinition() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4Track * BuildTrack(G4double globalTime, const G4ThreeVector &Position)
virtual void Initialize(const G4Track &)
void SetNumberOfSecondaries(G4int totSecondaries)
G4VParticleChange * pParticleChange
G4ParticleChange aParticleChange
G4bool enableAlongStepDoIt
void SetDecayDisplacer(const G4ParticleDefinition *, G4VMolecularDecayDisplacer *)
void ProposeTrackStatus(G4TrackStatus status)
const G4ElectronOccupancy * GetElectronOccupancy() const
const G4Molecule * GetProduct(int) const
virtual G4bool IsApplicable(const G4ParticleDefinition &)
G4DNAMolecularDissociation(const G4String &processName="DNAMolecularDecay", G4ProcessType type=fDecay)