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

#include <G4AdjointhMultipleScattering.hh>

+ Inheritance diagram for G4AdjointhMultipleScattering:

Public Member Functions

 G4AdjointhMultipleScattering (const G4String &processName="msc")
 
virtual ~G4AdjointhMultipleScattering ()
 
G4bool IsApplicable (const G4ParticleDefinition &p)
 
void PrintInfo ()
 
void Setsamplez (G4bool value)
 
void Setdtrl (G4double value)
 
void SetLambdalimit (G4double value)
 
- Public Member Functions inherited from G4VMultipleScattering
 G4VMultipleScattering (const G4String &name="msc", G4ProcessType type=fElectromagnetic)
 
virtual ~G4VMultipleScattering ()
 
virtual G4bool IsApplicable (const G4ParticleDefinition &p)=0
 
virtual void PrintInfo ()=0
 
void PreparePhysicsTable (const G4ParticleDefinition &)
 
void BuildPhysicsTable (const G4ParticleDefinition &)
 
void PrintInfoDefinition ()
 
G4bool StorePhysicsTable (const G4ParticleDefinition *, const G4String &directory, G4bool ascii=false)
 
G4bool RetrievePhysicsTable (const G4ParticleDefinition *, const G4String &directory, G4bool ascii)
 
void StartTracking (G4Track *)
 
G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double previousStepSize, G4double currentMinimalStep, G4double &currentSafety, G4GPILSelection *selection)
 
G4double PostStepGetPhysicalInteractionLength (const G4Track &, G4double previousStepSize, G4ForceCondition *condition)
 
G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
 
G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
G4double ContinuousStepLimit (const G4Track &track, G4double previousStepSize, G4double currentMinimalStep, G4double &currentSafety)
 
G4VEmModelSelectModel (G4double kinEnergy, size_t idx)
 
void AddEmModel (G4int order, G4VEmModel *, const G4Region *region=0)
 
void SetModel (G4VMscModel *, G4int index=1)
 
G4VMscModelModel (G4int index=1)
 
void SetEmModel (G4VMscModel *, G4int index=1)
 
G4VMscModelEmModel (G4int index=1)
 
G4VEmModelGetModelByIndex (G4int idx=0, G4bool ver=false) const
 
void SetIonisation (G4VEnergyLossProcess *)
 
G4bool LateralDisplasmentFlag () const
 
void SetLateralDisplasmentFlag (G4bool val)
 
G4double Skin () const
 
void SetSkin (G4double val)
 
G4double RangeFactor () const
 
void SetRangeFactor (G4double val)
 
G4double GeomFactor () const
 
void SetGeomFactor (G4double val)
 
G4double PolarAngleLimit () const
 
void SetPolarAngleLimit (G4double val)
 
G4MscStepLimitType StepLimitType () const
 
void SetStepLimitType (G4MscStepLimitType val)
 
const G4ParticleDefinitionFirstParticle () const
 
- Public Member Functions inherited from G4VContinuousDiscreteProcess
 G4VContinuousDiscreteProcess (const G4String &, G4ProcessType aType=fNotDefined)
 
 G4VContinuousDiscreteProcess (G4VContinuousDiscreteProcess &)
 
virtual ~G4VContinuousDiscreteProcess ()
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double previousStepSize, G4double currentMinimumStep, G4double &currentSafety, G4GPILSelection *selection)
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &, G4ForceCondition *)
 
virtual G4VParticleChangeAtRestDoIt (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
 

Protected Member Functions

void InitialiseProcess (const G4ParticleDefinition *)
 
- Protected Member Functions inherited from G4VMultipleScattering
virtual void InitialiseProcess (const G4ParticleDefinition *)=0
 
G4double GetMeanFreePath (const G4Track &track, G4double, G4ForceCondition *condition)
 
G4double GetContinuousStepLimit (const G4Track &track, G4double previousStepSize, G4double currentMinimalStep, G4double &currentSafety)
 
- Protected Member Functions inherited from G4VContinuousDiscreteProcess
virtual G4double GetMeanFreePath (const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)=0
 
virtual G4double GetContinuousStepLimit (const G4Track &aTrack, G4double previousStepSize, G4double currentMinimumStep, G4double &currentSafety)=0
 
void SetGPILSelection (G4GPILSelection selection)
 
G4GPILSelection GetGPILSelection () const
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double previousStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
- Protected Attributes inherited from G4VMultipleScattering
G4GPILSelection valueGPILSelectionMSC
 
G4ParticleChangeForMSC fParticleChange
 
- 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 73 of file G4AdjointhMultipleScattering.hh.

Constructor & Destructor Documentation

◆ G4AdjointhMultipleScattering()

G4AdjointhMultipleScattering::G4AdjointhMultipleScattering ( const G4String processName = "msc")

Definition at line 52 of file G4AdjointhMultipleScattering.cc.

53 : G4VMultipleScattering(processName)
54{
55 isInitialized = false;
56 isIon = false;
58
59 dtrl=0.;
60 lambdalimit=0.;
61 samplez=0.;
62}
@ fMinimal
void SetStepLimitType(G4MscStepLimitType val)

◆ ~G4AdjointhMultipleScattering()

G4AdjointhMultipleScattering::~G4AdjointhMultipleScattering ( )
virtual

Definition at line 66 of file G4AdjointhMultipleScattering.cc.

67{}

Member Function Documentation

◆ InitialiseProcess()

void G4AdjointhMultipleScattering::InitialiseProcess ( const G4ParticleDefinition p)
protectedvirtual

Implements G4VMultipleScattering.

Definition at line 78 of file G4AdjointhMultipleScattering.cc.

79{
80 // Modification of parameters between runs
81 if(isInitialized) {
82 if (p->GetParticleType() != "adjoint_nucleus" && p->GetPDGMass() < GeV) {
85 mscUrban->SetSkin(Skin());
86 mscUrban->SetRangeFactor(RangeFactor());
87 mscUrban->SetGeomFactor(GeomFactor());
88 }
89 return;
90 }
91
92 // defaults for ions, which cannot be overwritten
93 if (p->GetParticleType() == "adjoint_nucleus" || p->GetPDGMass() > GeV) {
96 //SetBuildLambdaTable(false);
97 if(p->GetParticleType() == "adjoint_nucleus") isIon = true;
98 }
99
100 // initialisation of parameters
101 G4String part_name = p->GetParticleName();
102 mscUrban = new G4UrbanMscModel90();
103
104 mscUrban->SetStepLimitType(StepLimitType());
106 mscUrban->SetSkin(Skin());
107 mscUrban->SetRangeFactor(RangeFactor());
108 mscUrban->SetGeomFactor(GeomFactor());
109
110 AddEmModel(1,mscUrban);
111 isInitialized = true;
112}
const G4String & GetParticleType() const
const G4String & GetParticleName() const
void SetSkin(G4double)
Definition: G4VMscModel.hh:203
void SetRangeFactor(G4double)
Definition: G4VMscModel.hh:210
void SetLateralDisplasmentFlag(G4bool val)
Definition: G4VMscModel.hh:196
void SetGeomFactor(G4double)
Definition: G4VMscModel.hh:217
void SetStepLimitType(G4MscStepLimitType)
Definition: G4VMscModel.hh:224
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
void SetLateralDisplasmentFlag(G4bool val)
G4bool LateralDisplasmentFlag() const
G4MscStepLimitType StepLimitType() const

◆ IsApplicable()

G4bool G4AdjointhMultipleScattering::IsApplicable ( const G4ParticleDefinition p)
virtual

Implements G4VMultipleScattering.

Definition at line 71 of file G4AdjointhMultipleScattering.cc.

72{
73 return (p.GetPDGCharge() != 0.0 && !p.IsShortLived());
74}
G4double GetPDGCharge() const

◆ PrintInfo()

void G4AdjointhMultipleScattering::PrintInfo ( )
virtual

Implements G4VMultipleScattering.

Definition at line 116 of file G4AdjointhMultipleScattering.cc.

117{
118 G4cout << " RangeFactor= " << RangeFactor()
119 << ", step limit type: " << StepLimitType()
120 << ", lateralDisplacement: " << LateralDisplasmentFlag()
121 << ", skin= " << Skin()
122 // << ", geomFactor= " << GeomFactor()
123 << G4endl;
124}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ Setdtrl()

void G4AdjointhMultipleScattering::Setdtrl ( G4double  value)
inline

Definition at line 92 of file G4AdjointhMultipleScattering.hh.

92{ dtrl = value;};

◆ SetLambdalimit()

void G4AdjointhMultipleScattering::SetLambdalimit ( G4double  value)
inline

Definition at line 95 of file G4AdjointhMultipleScattering.hh.

95{ lambdalimit = value;};

◆ Setsamplez()

void G4AdjointhMultipleScattering::Setsamplez ( G4bool  value)
inline

Definition at line 89 of file G4AdjointhMultipleScattering.hh.

89{ samplez = value;};

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