Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ProtonAntiProtonAtRestChips Class Reference

#include <G4ProtonAntiProtonAtRestChips.hh>

+ Inheritance diagram for G4ProtonAntiProtonAtRestChips:

Public Member Functions

 G4ProtonAntiProtonAtRestChips (const G4String &processName="AntiProtonAnnihilationAtRest")
 
 ~G4ProtonAntiProtonAtRestChips ()
 
G4bool IsApplicable (const G4ParticleDefinition &aParticle)
 
void BuildPhysicsTable (const G4ParticleDefinition &)
 
G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *condition)
 
G4double GetMeanLifeTime (const G4Track &aTrack, G4ForceCondition *condition)
 
G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
- Public Member Functions inherited from G4VRestProcess
 G4VRestProcess (const G4String &, G4ProcessType aType=fNotDefined)
 
 G4VRestProcess (G4VRestProcess &)
 
virtual ~G4VRestProcess ()
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *condition)
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &, G4double, G4ForceCondition *)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
 
- Public Member Functions inherited from G4VProcess
 G4VProcess (const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
 
 G4VProcess (const G4VProcess &right)
 
virtual ~G4VProcess ()
 
G4int operator== (const G4VProcess &right) const
 
G4int operator!= (const G4VProcess &right) const
 
virtual G4VParticleChangePostStepDoIt (const G4Track &track, const G4Step &stepData)=0
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &track, const G4Step &stepData)=0
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &track, const G4Step &stepData)=0
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)=0
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *condition)=0
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)=0
 
G4double GetCurrentInteractionLength () const
 
void SetPILfactor (G4double value)
 
G4double GetPILfactor () const
 
G4double AlongStepGPIL (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)
 
G4double AtRestGPIL (const G4Track &track, G4ForceCondition *condition)
 
G4double PostStepGPIL (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void PreparePhysicsTable (const G4ParticleDefinition &)
 
virtual G4bool StorePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
virtual G4bool RetrievePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
const G4StringGetPhysicsTableFileName (const G4ParticleDefinition *, const G4String &directory, const G4String &tableName, G4bool ascii=false)
 
const G4StringGetProcessName () const
 
G4ProcessType GetProcessType () const
 
void SetProcessType (G4ProcessType)
 
G4int GetProcessSubType () const
 
void SetProcessSubType (G4int)
 
virtual void StartTracking (G4Track *)
 
virtual void EndTracking ()
 
virtual void SetProcessManager (const G4ProcessManager *)
 
virtual const G4ProcessManagerGetProcessManager ()
 
virtual void ResetNumberOfInteractionLengthLeft ()
 
G4double GetNumberOfInteractionLengthLeft () const
 
G4double GetTotalNumberOfInteractionLengthTraversed () const
 
G4bool isAtRestDoItIsEnabled () const
 
G4bool isAlongStepDoItIsEnabled () const
 
G4bool isPostStepDoItIsEnabled () const
 
virtual void DumpInfo () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
virtual G4double GetMeanLifeTime (const G4Track &aTrack, G4ForceCondition *condition)=0
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double previousStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 
- Protected Attributes inherited from G4VProcess
const G4ProcessManageraProcessManager
 
G4VParticleChangepParticleChange
 
G4ParticleChange aParticleChange
 
G4double theNumberOfInteractionLengthLeft
 
G4double currentInteractionLength
 
G4double theInitialNumberOfInteractionLength
 
G4String theProcessName
 
G4String thePhysicsTableFileName
 
G4ProcessType theProcessType
 
G4int theProcessSubType
 
G4double thePILfactor
 
G4bool enableAtRestDoIt
 
G4bool enableAlongStepDoIt
 
G4bool enablePostStepDoIt
 
G4int verboseLevel
 

Detailed Description

Definition at line 49 of file G4ProtonAntiProtonAtRestChips.hh.

Constructor & Destructor Documentation

◆ G4ProtonAntiProtonAtRestChips()

G4ProtonAntiProtonAtRestChips::G4ProtonAntiProtonAtRestChips ( const G4String processName = "AntiProtonAnnihilationAtRest")
inline

Definition at line 58 of file G4ProtonAntiProtonAtRestChips.hh.

60 : G4VRestProcess (processName, fHadronic)
61 {
62 G4HadronicDeprecate("G4ProtonAntiProtonAtRestChips");
64 }
#define G4HadronicDeprecate(name)
@ fHadronAtRest
@ fHadronic
void SetProcessSubType(G4int)
Definition: G4VProcess.hh:403

◆ ~G4ProtonAntiProtonAtRestChips()

G4ProtonAntiProtonAtRestChips::~G4ProtonAntiProtonAtRestChips ( )
inline

Definition at line 66 of file G4ProtonAntiProtonAtRestChips.hh.

66{}

Member Function Documentation

◆ AtRestDoIt()

G4VParticleChange * G4ProtonAntiProtonAtRestChips::AtRestDoIt ( const G4Track aTrack,
const G4Step aStep 
)
inlinevirtual

Reimplemented from G4VRestProcess.

Definition at line 91 of file G4ProtonAntiProtonAtRestChips.hh.

93{
94 // Create target
95 G4Element * theTarget = theSelector.GetElement(aTrack.GetMaterial());
96 G4Nucleus aTargetNucleus(theTarget->GetA_asInt(), theTarget->GetZ_asInt());
97
98 // Check model validity - note this will be a sub-branch in the ordinary stopping @@@@@@
99 // in the long haul. @@@@@@
101 {
102 throw G4HadronicException(__FILE__, __LINE__,
103 "Calling G4ProtonAntiProtonAtRestChips with particle other than p-bar!!!");
104 }
105 if(aTargetNucleus.GetZ_asInt() != 1)
106 {
107 throw G4HadronicException(__FILE__, __LINE__,
108 "Calling G4ProtonAntiProtonAtRestChips for target other than Hydrogen!!!");
109 }
110
111 // Call chips
112 return theModel.ApplyYourself(aTrack, aTargetNucleus);
113}
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus, G4HadFinalState *aChange=0)
G4ParticleDefinition * GetDefinition() const
G4Element * GetElement(const G4Material *aMaterial)
G4Material * GetMaterial() const
const G4DynamicParticle * GetDynamicParticle() const

◆ AtRestGetPhysicalInteractionLength()

G4double G4ProtonAntiProtonAtRestChips::AtRestGetPhysicalInteractionLength ( const G4Track track,
G4ForceCondition condition 
)
virtual

Reimplemented from G4VRestProcess.

Definition at line 115 of file G4ProtonAntiProtonAtRestChips.hh.

118{
122#ifdef CHIPSdebug
123 if ((currentInteractionLength <0.0) || (verboseLevel>2))
124 {
125 G4cout << "G4ProtonAntiProtonAtRestChips::AtRestGetPhysicalInteractionLength ";
126 G4cout << "[ " << GetProcessName() << "]" <<G4endl;
127 track.GetDynamicParticle()->DumpInfo();
128 G4cout << " in Material " << track.GetMaterial()->GetName() <<G4endl;
129 G4cout << "MeanLifeTime = " << currentInteractionLength/CLHEP::ns << "[ns]" <<G4endl;
130 }
131#endif
133}
G4double condition(const G4ErrorSymMatrix &m)
@ NotForced
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void DumpInfo(G4int mode=0) const
const G4String & GetName() const
Definition: G4Material.hh:177
G4double GetMeanLifeTime(const G4Track &aTrack, G4ForceCondition *condition)
G4double currentInteractionLength
Definition: G4VProcess.hh:297
virtual void ResetNumberOfInteractionLengthLeft()
Definition: G4VProcess.cc:92
G4int verboseLevel
Definition: G4VProcess.hh:368
G4double theNumberOfInteractionLengthLeft
Definition: G4VProcess.hh:293
const G4String & GetProcessName() const
Definition: G4VProcess.hh:379

◆ BuildPhysicsTable()

void G4ProtonAntiProtonAtRestChips::BuildPhysicsTable ( const G4ParticleDefinition )
inlinevirtual

Reimplemented from G4VProcess.

Definition at line 74 of file G4ProtonAntiProtonAtRestChips.hh.

74{}

◆ GetMeanLifeTime()

G4double G4ProtonAntiProtonAtRestChips::GetMeanLifeTime ( const G4Track aTrack,
G4ForceCondition condition 
)
inlinevirtual

Implements G4VRestProcess.

Definition at line 80 of file G4ProtonAntiProtonAtRestChips.hh.

81 {return 0.0;}

Referenced by AtRestGetPhysicalInteractionLength().

◆ IsApplicable()

G4bool G4ProtonAntiProtonAtRestChips::IsApplicable ( const G4ParticleDefinition aParticle)
inlinevirtual

Reimplemented from G4VProcess.

Definition at line 68 of file G4ProtonAntiProtonAtRestChips.hh.

69 {
70 return ( &aParticle == G4AntiProton::AntiProtonDefinition() );
71 }
static G4AntiProton * AntiProtonDefinition()
Definition: G4AntiProton.cc:88

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