BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BgsGentleGenocide Class Reference

#include <BgsGentleGenocide.hh>

Inheritance diagram for BgsGentleGenocide:

Public Member Functions

 BgsGentleGenocide (G4double theMaxKineticEnergy, G4int theMinNumberSteps, const G4String &name="BgsGentleGenocide", G4ProcessType type=fUserDefined)
virtual ~BgsGentleGenocide ()
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 BgsGentleGenocide (G4double theMaxKineticEnergy, G4int theMinNumberSteps, const G4String &name="BgsGentleGenocide", G4ProcessType type=fUserDefined)
virtual ~BgsGentleGenocide ()
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 BgsGentleGenocide (G4double theMaxKineticEnergy, G4int theMinNumberSteps, const G4String &name="BgsGentleGenocide", G4ProcessType type=fUserDefined)
virtual ~BgsGentleGenocide ()
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
Public Member Functions inherited from BgsGenocide
 BgsGenocide (const G4String &name="BgsGenocide", G4ProcessType type=fUserDefined)
virtual ~BgsGenocide ()
virtual G4VParticleChange * PostStepDoIt (const G4Track &track, const G4Step &step)
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double previousStepSize, G4double currentMinimumStep, G4double &currentSafety, G4GPILSelection *selection)
virtual G4VParticleChange * AlongStepDoIt (const G4Track &track, const G4Step &step)
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *force)
virtual G4VParticleChange * AtRestDoIt (const G4Track &track, const G4Step &step)
 BgsGenocide (const G4String &name="BgsGenocide", G4ProcessType type=fUserDefined)
virtual ~BgsGenocide ()
virtual G4VParticleChange * PostStepDoIt (const G4Track &track, const G4Step &step)
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double previousStepSize, G4double currentMinimumStep, G4double &currentSafety, G4GPILSelection *selection)
virtual G4VParticleChange * AlongStepDoIt (const G4Track &track, const G4Step &step)
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *force)
virtual G4VParticleChange * AtRestDoIt (const G4Track &track, const G4Step &step)
 BgsGenocide (const G4String &name="BgsGenocide", G4ProcessType type=fUserDefined)
virtual ~BgsGenocide ()
virtual G4VParticleChange * PostStepDoIt (const G4Track &track, const G4Step &step)
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double previousStepSize, G4double currentMinimumStep, G4double &currentSafety, G4GPILSelection *selection)
virtual G4VParticleChange * AlongStepDoIt (const G4Track &track, const G4Step &step)
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *force)
virtual G4VParticleChange * AtRestDoIt (const G4Track &track, const G4Step &step)

Protected Attributes

G4double maxKineticEnergy
G4int minNumberSteps

Detailed Description

Constructor & Destructor Documentation

◆ BgsGentleGenocide() [1/3]

BgsGentleGenocide::BgsGentleGenocide ( G4double theMaxKineticEnergy,
G4int theMinNumberSteps,
const G4String & name = "BgsGentleGenocide",
G4ProcessType type = fUserDefined )

Definition at line 31 of file BgsGentleGenocide.cc.

33 : BgsGenocide( name, type )
34 , maxKineticEnergy( theMaxKineticEnergy )
35 , minNumberSteps( theMinNumberSteps ) {
36 ;
37}
BgsGenocide(const G4String &name="BgsGenocide", G4ProcessType type=fUserDefined)
Definition BgsGenocide.cc:7

◆ ~BgsGentleGenocide() [1/3]

BgsGentleGenocide::~BgsGentleGenocide ( )
virtual

Definition at line 42 of file BgsGentleGenocide.cc.

42{ ; }

◆ BgsGentleGenocide() [2/3]

BgsGentleGenocide::BgsGentleGenocide ( G4double theMaxKineticEnergy,
G4int theMinNumberSteps,
const G4String & name = "BgsGentleGenocide",
G4ProcessType type = fUserDefined )

◆ ~BgsGentleGenocide() [2/3]

virtual BgsGentleGenocide::~BgsGentleGenocide ( )
virtual

◆ BgsGentleGenocide() [3/3]

BgsGentleGenocide::BgsGentleGenocide ( G4double theMaxKineticEnergy,
G4int theMinNumberSteps,
const G4String & name = "BgsGentleGenocide",
G4ProcessType type = fUserDefined )

◆ ~BgsGentleGenocide() [3/3]

virtual BgsGentleGenocide::~BgsGentleGenocide ( )
virtual

Member Function Documentation

◆ PostStepGetPhysicalInteractionLength() [1/3]

G4double BgsGentleGenocide::PostStepGetPhysicalInteractionLength ( const G4Track & track,
G4double previousStepSize,
G4ForceCondition * condition )
virtual

Reimplemented from BgsGenocide.

Definition at line 47 of file BgsGentleGenocide.cc.

48 {
49 *condition = NotForced;
50
51 //
52 // Do nothing if we haven't reached the minimum number of steps
53 //
54 if ( track.GetCurrentStepNumber() < minNumberSteps ) return DBL_MAX;
55
56 //
57 // Do nothing if we are above the threshold kinetic energy
58 //
59 const G4DynamicParticle* particle = track.GetDynamicParticle();
60
61 if ( particle->GetKineticEnergy() > maxKineticEnergy ) return DBL_MAX;
62
63 //
64 // Die!
65 //
66 // const G4ThreeVector &pos = track.GetPosition();
67
68 const G4VProcess* creator = track.GetCreatorProcess();
69 G4String creatorProcessName = "(none?)";
70 if ( creator ) creatorProcessName = creator->GetProcessName();
71
72 /*
73 G4cout << "BgsGentleGenocide: rogue "
74 << particle->GetDefinition()->GetParticleName()
75 << " terminated, created by "
76 << creatorProcessName << G4endl;
77
78 G4cout << " KE = "
79 << particle->GetKineticEnergy()/keV << " keV, "
80 << " global coords (cm): ("
81 << pos.x()/cm << ","
82 << pos.y()/cm << ","
83 << pos.z()/cm << ")" << G4endl;
84 */
85
86 *condition = NotForced;
87 return 0;
88}

◆ PostStepGetPhysicalInteractionLength() [2/3]

virtual G4double BgsGentleGenocide::PostStepGetPhysicalInteractionLength ( const G4Track & track,
G4double previousStepSize,
G4ForceCondition * condition )
virtual

Reimplemented from BgsGenocide.

◆ PostStepGetPhysicalInteractionLength() [3/3]

virtual G4double BgsGentleGenocide::PostStepGetPhysicalInteractionLength ( const G4Track & track,
G4double previousStepSize,
G4ForceCondition * condition )
virtual

Reimplemented from BgsGenocide.

Member Data Documentation

◆ maxKineticEnergy

G4double BgsGentleGenocide::maxKineticEnergy
protected

◆ minNumberSteps

G4int BgsGentleGenocide::minNumberSteps
protected

The documentation for this class was generated from the following files: