68 delete theTotalResult;
75 productionModel =
model;
86 void CexmcHadronicProcess::CalculateTargetNucleus(
90 if ( numberOfElements > 1 )
93 "material is more than 1.\n Only the first "
94 "element will be chosen for target nucleus" <<
G4endl;
109 void CexmcHadronicProcess::FillTotalResult(
G4HadFinalState * hadFinalState,
114 theTotalResult->
Clear();
125 for (
G4int i( 0 ); i < numberOfSecondaries; ++i )
137 newTrack->SetWeight( newWeight );
142 hadFinalState->
Clear();
153 theTotalResult->
Clear();
156 return theTotalResult;
166 if ( ! isInitialized )
169 isInitialized =
true;
175 FillTotalResult(
result, track );
186 static_cast< CexmcIncidentParticleTrackInfo * >( trackInfo ) );
191 return theTotalResult;
198 if ( ! productionModel )
204 if ( ! incidentParticle )
207 return particle == *incidentParticle;
G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &step)
void SetNeedsTrackLengthResampling(G4bool on=true)
G4HadSecondary * GetSecondary(size_t i)
G4int GetFirstIsotope(G4int Z)
CexmcHadronicProcess(const G4String &name=CexmcStudiedProcessLastName)
const G4ThreeVector & GetPosition() const
G4TrackStatus GetTrackStatus() const
G4double G4NeutronHPJENDLHEData::G4double result
G4ParticleDefinition * GetIncidentParticle(void) const
G4double GetEnergyChange() const
const G4Element * GetElement(G4int iel) const
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
void RegisterProductionModel(CexmcProductionModel *model)
G4VUserTrackInformation * GetUserInformation() const
void RegisterMe(G4HadronicInteraction *a)
void SetSecondaryWeightByProcess(G4bool)
G4bool IsApplicable(const G4ParticleDefinition &particle)
G4GLOB_DLL std::ostream G4cout
const XML_Char XML_Content * model
G4double GetGlobalTime() const
virtual G4int GetTypeInfo(void) const
const G4TouchableHandle & GetTouchableHandle() const
G4Material * GetMaterial() const
virtual void Initialize(const G4Track &)
G4int GetIsotopeNucleonCount(G4int number)
void SetNumberOfSecondaries(G4int totSecondaries)
G4DynamicParticle * GetParticle()
void ProposeEnergy(G4double finalEnergy)
void AddSecondary(G4Track *aSecondary)
G4double GetWeight() const
size_t GetNumberOfElements() const
G4TrackStatus GetTrackStatus() const
void ProposeTrackStatus(G4TrackStatus status)
void SetParameters(const G4double A, const G4double Z)
G4int GetNumberOfSecondaries() const
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)=0
G4double GetLocalEnergyDeposit() const
G4HadFinalStateStatus GetStatusChange() const
G4double GetWeight() const