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

#include <G4QPhotoNuclearPhysics.hh>

+ Inheritance diagram for G4QPhotoNuclearPhysics:

Public Member Functions

 G4QPhotoNuclearPhysics (G4int verbose=1)
 
 G4QPhotoNuclearPhysics (const G4String &name)
 
virtual ~G4QPhotoNuclearPhysics ()
 
void ConstructParticle ()
 
void ConstructProcess ()
 
G4String GetSynchRadOnOff ()
 
G4String GetGammaNuclearOnOff ()
 
G4String GetElPosNuclearOnOff ()
 
G4String GetMuonNuclearOnOff ()
 
G4String GetTauNuclearOnOff ()
 
void SetSynchRadOnOff (G4String &aSwitch)
 
void SetGammaNuclearOnOff (G4String &aSwitch)
 
void SetElPosNuclearOnOff (G4String &aSwitch)
 
void SetMuonNuclearOnOff (G4String &aSwitch)
 
void SetTauNuclearOnOff (G4String &aSwitch)
 
void SetMinGammaSR (G4double newValue)
 
void SetPhotoNucBias (G4double newValue)
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 
G4PhysicsListHelperthePLHelper
 

Detailed Description

Definition at line 64 of file G4QPhotoNuclearPhysics.hh.

Constructor & Destructor Documentation

◆ G4QPhotoNuclearPhysics() [1/2]

G4QPhotoNuclearPhysics::G4QPhotoNuclearPhysics ( G4int  verbose = 1)

Definition at line 42 of file G4QPhotoNuclearPhysics.cc.

42 :
43 G4VPhysicsConstructor("CHIPS photo-nuclear"), wasBuilt(false), SynchRActivated(false),
44 GamNucActivated(false), EleNucActivated(false), MuoNucActivated(false),
45 TauNucActivated(false), synchrOn(true), synchrMinGam(227.), gamNucOn(true),
46 eleNucOn(true), muoNucOn(true), tauNucOn(true), photoNucBias(1.)
47{
48 theMessenger = G4QMessenger::GetPointer();
49 theMessenger->Add(this);
50}
void Add(G4QNeutrinoPhysics *weak)
Definition: G4QMessenger.cc:95
static G4QMessenger * GetPointer()
Definition: G4QMessenger.cc:89

◆ G4QPhotoNuclearPhysics() [2/2]

G4QPhotoNuclearPhysics::G4QPhotoNuclearPhysics ( const G4String name)

Definition at line 52 of file G4QPhotoNuclearPhysics.cc.

52 :
53 G4VPhysicsConstructor(name), wasBuilt(false), SynchRActivated(false),
54 GamNucActivated(false), EleNucActivated(false), MuoNucActivated(false),
55 TauNucActivated(false), synchrOn(true), synchrMinGam(227.), gamNucOn(true),
56 eleNucOn(true), muoNucOn(true), tauNucOn(true), photoNucBias(1.)
57{
58 theMessenger = G4QMessenger::GetPointer();
59 theMessenger->Add(this);
60}

◆ ~G4QPhotoNuclearPhysics()

G4QPhotoNuclearPhysics::~G4QPhotoNuclearPhysics ( )
virtual

Definition at line 62 of file G4QPhotoNuclearPhysics.cc.

63{
64 if(wasBuilt)
65 {
66 delete inelastic;
67 if(synchrOn) delete synchrad;
68 }
69}

Member Function Documentation

◆ ConstructParticle()

void G4QPhotoNuclearPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 118 of file G4QPhotoNuclearPhysics.cc.

119{
127 if (synchrOn)
128 {
129 G4MesonConstructor pMesonConstructor;
130 pMesonConstructor.ConstructParticle();
131
132 G4BaryonConstructor pBaryonConstructor;
133 pBaryonConstructor.ConstructParticle();
134 }
135}
static void ConstructParticle()
static G4Electron * Electron()
Definition: G4Electron.cc:94
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static void ConstructParticle()
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
static G4Positron * Positron()
Definition: G4Positron.cc:94
static G4TauMinus * TauMinus()
Definition: G4TauMinus.cc:135
static G4TauPlus * TauPlus()
Definition: G4TauPlus.cc:134

◆ ConstructProcess()

void G4QPhotoNuclearPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 137 of file G4QPhotoNuclearPhysics.cc.

138{
139 if(wasBuilt) return;
140 wasBuilt = true;
141
142 inelastic = new G4QInelastic("photoNuclear");
143 inelastic->SetPhotNucBias(photoNucBias);
144
145 if (synchrOn) BuildSynchRad();
146 if (gamNucOn) BuildGammaNuclear();
147 if (eleNucOn) BuildElectroNuclear();
148 if (muoNucOn) BuildMuonNuclear();
149 if (tauNucOn) BuildTauNuclear();
150}
static void SetPhotNucBias(G4double phnB=1.)

◆ GetElPosNuclearOnOff()

G4String G4QPhotoNuclearPhysics::GetElPosNuclearOnOff ( )
inline

Definition at line 76 of file G4QPhotoNuclearPhysics.hh.

76{return eleNucOn ? "on" : "off";}

Referenced by G4QMessenger::GetCurrentValue().

◆ GetGammaNuclearOnOff()

G4String G4QPhotoNuclearPhysics::GetGammaNuclearOnOff ( )
inline

Definition at line 75 of file G4QPhotoNuclearPhysics.hh.

75{return gamNucOn ? "on" : "off";}

Referenced by G4QMessenger::GetCurrentValue().

◆ GetMuonNuclearOnOff()

G4String G4QPhotoNuclearPhysics::GetMuonNuclearOnOff ( )
inline

Definition at line 77 of file G4QPhotoNuclearPhysics.hh.

77{return muoNucOn ? "on" : "off";}

Referenced by G4QMessenger::GetCurrentValue().

◆ GetSynchRadOnOff()

G4String G4QPhotoNuclearPhysics::GetSynchRadOnOff ( )
inline

Definition at line 74 of file G4QPhotoNuclearPhysics.hh.

74{return synchrOn ? "on" : "off";}

Referenced by G4QMessenger::GetCurrentValue().

◆ GetTauNuclearOnOff()

G4String G4QPhotoNuclearPhysics::GetTauNuclearOnOff ( )
inline

Definition at line 78 of file G4QPhotoNuclearPhysics.hh.

78{return tauNucOn ? "on" : "off";}

Referenced by G4QMessenger::GetCurrentValue().

◆ SetElPosNuclearOnOff()

void G4QPhotoNuclearPhysics::SetElPosNuclearOnOff ( G4String aSwitch)

Definition at line 85 of file G4QPhotoNuclearPhysics.cc.

86{
87 if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
88 else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") eleNucOn = true;
89 else eleNucOn = false;
90}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

Referenced by G4QMessenger::SetNewValue().

◆ SetGammaNuclearOnOff()

void G4QPhotoNuclearPhysics::SetGammaNuclearOnOff ( G4String aSwitch)

Definition at line 78 of file G4QPhotoNuclearPhysics.cc.

79{
80 if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
81 else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") gamNucOn = true;
82 else gamNucOn = false;
83}

Referenced by G4QMessenger::SetNewValue().

◆ SetMinGammaSR()

void G4QPhotoNuclearPhysics::SetMinGammaSR ( G4double  newValue)

Definition at line 106 of file G4QPhotoNuclearPhysics.cc.

107{
108 if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
109 else synchrMinGam = newValue;
110}

Referenced by G4QMessenger::SetNewValue().

◆ SetMuonNuclearOnOff()

void G4QPhotoNuclearPhysics::SetMuonNuclearOnOff ( G4String aSwitch)

Definition at line 92 of file G4QPhotoNuclearPhysics.cc.

93{
94 if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
95 else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") muoNucOn = true;
96 else muoNucOn = false;
97}

Referenced by G4QMessenger::SetNewValue().

◆ SetPhotoNucBias()

void G4QPhotoNuclearPhysics::SetPhotoNucBias ( G4double  newValue)

Definition at line 112 of file G4QPhotoNuclearPhysics.cc.

113{
114 if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
115 else photoNucBias = newValue;
116}

Referenced by G4QMessenger::SetNewValue().

◆ SetSynchRadOnOff()

void G4QPhotoNuclearPhysics::SetSynchRadOnOff ( G4String aSwitch)

Definition at line 71 of file G4QPhotoNuclearPhysics.cc.

72{
73 if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
74 else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") synchrOn = true;
75 else synchrOn = false;
76}

Referenced by G4QMessenger::SetNewValue().

◆ SetTauNuclearOnOff()

void G4QPhotoNuclearPhysics::SetTauNuclearOnOff ( G4String aSwitch)

Definition at line 99 of file G4QPhotoNuclearPhysics.cc.

100{
101 if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
102 else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") tauNucOn = true;
103 else tauNucOn = false;
104}

Referenced by G4QMessenger::SetNewValue().


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