148{
149
150
151
152 G4String rName = track.GetStep()->GetPreStepPoint()->GetPhysicalVolume()->GetLogicalVolume()->GetRegion()->GetName();
153
154 if( rName != fEnvelopeName )
155 {
157 {
158 G4cout<<
"Go out from G4ElNeutrinoNucleusProcess::PostStepDoIt: wrong volume "<<
G4endl;
159 }
161 }
164 G4double weight = track.GetWeight();
166
167 if( track.GetTrackStatus() !=
fAlive )
168 {
170 }
171
172
173 if (track.GetTrackStatus() !=
fAlive &&
175 {
179 {
181 ed << "G4HadronicProcess: track in unusable state - "
183 ed <<
"G4HadronicProcess: returning unchanged track " <<
G4endl;
186 }
187
189 }
190
191
193
194 G4double kineticEnergy = track.GetKineticEnergy();
198
199
200
201
203
206
207
208
209 const G4StepPoint* pPostStepPoint = step.GetPostStepPoint();
213
214 if( fNuNuclCcBias > 1.0 || fNuNuclNcBias > 1.0)
215 {
220
223
224 G4double forward = track.GetVolume()->GetLogicalVolume()->GetSolid()->DistanceToOut(localP, localV);
225 G4double backward = track.GetVolume()->GetLogicalVolume()->GetSolid()->DistanceToOut(localP, -localV);
226
227 G4double distance = forward+backward;
228
229
230
231
232
233
235
236 newPosition =
position + range*direction;
237
239
241 }
245
247
249 {
250
252
255
257
259
261
263 }
264 else
265 {
266
269
270 size_t idx = track.GetMaterialCutsCouple()->GetIndex();
271
273
275
277 {
278 G4cout <<
"G4ElNeutrinoNucleusProcess::PostStepDoIt for "
280 <<
" in " << material->
GetName()
283 }
284 try
285 {
287 }
289 {
293 ed << " Z= "
297 ed <<
" ApplyYourself failed" <<
G4endl;
298 G4Exception(
"G4ElNeutrinoNucleusProcess::PostStepDoIt",
"had006",
300 }
301
302
307
309 {
313 << " dir= " << outdir
315 }
316
317
320
321 if(efinal < 0.0) { efinal = 0.0; }
322 if(edep < 0.0) { edep = 0.0; }
323
324
325
326
327 if(efinal <= lowestEnergy)
328 {
329 edep += efinal;
330 efinal = 0.0;
331 }
332
333
335
337
338 if(efinal > 0.0)
339 {
343 }
344 else
345 {
347 {
349 }
350 else
351 {
353 }
355 }
356
357
359
360
361
363 {
365
367 {
370
371
372
373
376
377
378
380
381
382
384 track.GetPosition());
388 }
389 else
390 {
392 delete p;
393 }
394 }
398 }
400}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
@ fKillTrackAndSecondaries
G4GLOB_DLL std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
Hep3Vector & rotate(double, const Hep3Vector &)
void SetMomentumDirection(const G4ThreeVector &aDirection)
const G4ThreeVector & GetMomentumDirection() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double GetEnergyChange() const
void SetTrafoToLab(const G4LorentzRotation &aT)
G4double GetLocalEnergyDeposit() const
const G4ThreeVector & GetMomentumChange() const
std::size_t GetNumberOfSecondaries() const
G4HadSecondary * GetSecondary(size_t i)
void Initialise(const G4Track &aT)
G4LorentzRotation & GetTrafoToLab()
G4DynamicParticle * GetParticle()
void Report(std::ostream &aS) const
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
const G4String & GetModelName() const
void SetRecoilEnergyThreshold(G4double val)
void FillResult(G4HadFinalState *aR, const G4Track &aT)
G4Nucleus * GetTargetNucleusPointer()
G4ParticleChange * theTotalResult
std::vector< G4HadronicInteraction * > & GetHadronicInteractionList()
void DumpState(const G4Track &, const G4String &, G4ExceptionDescription &)
const G4String & GetName() const
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
void AddSecondary(G4Track *aSecondary)
void ProposePosition(G4double x, G4double y, G4double z)
void Initialize(const G4Track &) override
void ProposeEnergy(G4double finalEnergy)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4ProcessVector * GetAtRestProcessVector(G4ProcessVectorTypeIndex typ=typeGPIL) const
const std::vector< G4double > * GetEnergyCutsVector(std::size_t pcIdx) const
static G4ProductionCutsTable * GetProductionCutsTable()
void ReLocateWithinVolume(const G4ThreeVector &pGlobalPoint)
const G4VTouchable * GetTouchable() const
const G4ThreeVector & GetPosition() const
void SetWeight(G4double aValue)
void SetTouchableHandle(const G4TouchableHandle &apValue)
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
void ProposeTrackStatus(G4TrackStatus status)
void ProposeNonIonizingEnergyDeposit(G4double anEnergyPart)
void ProposeWeight(G4double finalWeight)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
void SetNumberOfSecondaries(G4int totSecondaries)
G4TrackStatus GetTrackStatus() const
void ClearNumberOfInteractionLengthLeft()
virtual const G4ThreeVector & GetTranslation(G4int depth=0) const =0
virtual const G4RotationMatrix * GetRotation(G4int depth=0) const =0