145{
146
147
148
149 G4String rName = track.GetStep()->GetPreStepPoint()->GetPhysicalVolume()->GetLogicalVolume()->GetRegion()->GetName();
150
151 if( rName != fEnvelopeName )
152 {
154 {
155 G4cout<<
"Go out from G4TauNeutrinoNucleusProcess::PostStepDoIt: wrong volume "<<
G4endl;
156 }
158 }
161 G4double weight = track.GetWeight();
163
164 if( track.GetTrackStatus() !=
fAlive )
165 {
167 }
168
169
170 if (track.GetTrackStatus() !=
fAlive &&
172 {
176 {
178 ed << "G4TauNeutrinoNucleusProcess: track in unusable state - "
180 ed <<
"G4TauNeutrinoNucleusProcess: returning unchanged track " <<
G4endl;
183 }
184
186 }
187
188
190
191 G4double kineticEnergy = track.GetKineticEnergy();
195
196
197
198
200
203
204
205
206 const G4StepPoint* pPostStepPoint = step.GetPostStepPoint();
210
211 if( fNuNuclCcBias > 1.0 || fNuNuclNcBias > 1.0)
212 {
217
220
221 G4double forward = track.GetVolume()->GetLogicalVolume()->GetSolid()->DistanceToOut(localP, localV);
222 G4double backward = track.GetVolume()->GetLogicalVolume()->GetSolid()->DistanceToOut(localP, -localV);
223
224 G4double distance = forward+backward;
225
226
227
228
229
230
232
233 newPosition =
position + range*direction;
234
236
238 }
242
244
246 {
247
249
252
254
256
258
260 }
261 else
262 {
263
266
267 size_t idx = track.GetMaterialCutsCouple()->GetIndex();
268
270
272
274 {
275 G4cout <<
"G4TauNeutrinoNucleusProcess::PostStepDoIt for "
277 <<
" in " << material->
GetName()
280 }
281 try
282 {
284 }
286 {
290 ed << " Z= "
294 ed <<
" ApplyYourself failed" <<
G4endl;
295 G4Exception(
"G4TauNeutrinoNucleusProcess::PostStepDoIt",
"had006",
297 }
298
299
304
306 {
310 << " dir= " << outdir
312 }
313
314
317
318 if(efinal < 0.0) { efinal = 0.0; }
319 if(edep < 0.0) { edep = 0.0; }
320
321
322
323
324 if(efinal <= lowestEnergy)
325 {
326 edep += efinal;
327 efinal = 0.0;
328 }
329
330
332
334
335 if(efinal > 0.0)
336 {
340 }
341 else
342 {
344 {
346 }
347 else
348 {
350 }
352 }
353
354
356
357
358
360 {
362
364 {
367
368
369
370
373
374
375
377
378
379
381 track.GetPosition());
385 }
386 else
387 {
389 delete p;
390 }
391 }
395 }
397}
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