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

#include <G4QNeutrinoPhysics.hh>

+ Inheritance diagram for G4QNeutrinoPhysics:

Public Member Functions

 G4QNeutrinoPhysics (G4int verbose=1)
 
 G4QNeutrinoPhysics (const G4String &name)
 
virtual ~G4QNeutrinoPhysics ()
 
void ConstructParticle ()
 
void ConstructProcess ()
 
G4String GetNuElNuclearOnOff ()
 
G4String GetNuMuNuclearOnOff ()
 
G4String GetNuTauNuclearOnOff ()
 
void SetNuElNuclearOnOff (G4String &aState)
 
void SetNuMuNuclearOnOff (G4String &aState)
 
void SetNuTauNuclearOnOff (G4String &aState)
 
void SetNuNuclearBias (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 58 of file G4QNeutrinoPhysics.hh.

Constructor & Destructor Documentation

◆ G4QNeutrinoPhysics() [1/2]

G4QNeutrinoPhysics::G4QNeutrinoPhysics ( G4int  verbose = 1)

Definition at line 41 of file G4QNeutrinoPhysics.cc.

41 :
42 G4VPhysicsConstructor("CHIPS neutrino-nuclear"), wasBuilt(false), nuEleActivated(false),
43 nuMuoActivated(false), nuTauActivated(false), nuEleOn(false),
44 nuMuoOn(false), nuTauOn(false), nuNucBias(1.), inelastic(0)
45{
46 theMessenger = G4QMessenger::GetPointer();
47 theMessenger->Add(this);
48}
void Add(G4QNeutrinoPhysics *weak)
Definition: G4QMessenger.cc:95
static G4QMessenger * GetPointer()
Definition: G4QMessenger.cc:89

◆ G4QNeutrinoPhysics() [2/2]

G4QNeutrinoPhysics::G4QNeutrinoPhysics ( const G4String name)

Definition at line 50 of file G4QNeutrinoPhysics.cc.

50 :
51 G4VPhysicsConstructor(name), wasBuilt(false), nuEleActivated(false),
52 nuMuoActivated(false), nuTauActivated(false), nuEleOn(false),
53 nuMuoOn(false), nuTauOn(false), nuNucBias(1.), inelastic(0)
54{
55 theMessenger = G4QMessenger::GetPointer();
56 theMessenger->Add(this);
57}

◆ ~G4QNeutrinoPhysics()

G4QNeutrinoPhysics::~G4QNeutrinoPhysics ( )
virtual

Definition at line 59 of file G4QNeutrinoPhysics.cc.

60{
61 if(wasBuilt && inelastic) delete inelastic;
62}

Member Function Documentation

◆ ConstructParticle()

void G4QNeutrinoPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 64 of file G4QNeutrinoPhysics.cc.

65{
72}
static G4AntiNeutrinoE * AntiNeutrinoE()
static G4AntiNeutrinoMu * AntiNeutrinoMu()
static G4AntiNeutrinoTau * AntiNeutrinoTau()
static G4NeutrinoE * NeutrinoE()
Definition: G4NeutrinoE.cc:85
static G4NeutrinoMu * NeutrinoMu()
Definition: G4NeutrinoMu.cc:85
static G4NeutrinoTau * NeutrinoTau()

◆ ConstructProcess()

void G4QNeutrinoPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 101 of file G4QNeutrinoPhysics.cc.

102{
103 if(wasBuilt) return;
104 if(nuEleOn || nuMuoOn || nuTauOn)
105 {
106 wasBuilt = true;
107 G4cout<<"Builded=>G4QNeutrinoPhysics: "<<nuEleOn<<", "<<nuMuoOn<<", "<<nuTauOn<<G4endl;
108 inelastic = new G4QInelastic("neutrinoNuclear");
109 inelastic->SetWeakNucBias(nuNucBias); // enough only once (static)
110 if (nuEleOn) BuildNuEleNuclear();
111 if (nuMuoOn) BuildNuMuoNuclear();
112 if (nuTauOn) BuildNuTauNuclear();
113 }
114}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
static void SetWeakNucBias(G4double ccnB=1.)

◆ GetNuElNuclearOnOff()

G4String G4QNeutrinoPhysics::GetNuElNuclearOnOff ( )
inline

Definition at line 68 of file G4QNeutrinoPhysics.hh.

68{return nuEleOn ? "on" : "off";}

Referenced by G4QMessenger::GetCurrentValue().

◆ GetNuMuNuclearOnOff()

G4String G4QNeutrinoPhysics::GetNuMuNuclearOnOff ( )
inline

Definition at line 69 of file G4QNeutrinoPhysics.hh.

69{return nuMuoOn ? "on" : "off";}

Referenced by G4QMessenger::GetCurrentValue().

◆ GetNuTauNuclearOnOff()

G4String G4QNeutrinoPhysics::GetNuTauNuclearOnOff ( )
inline

Definition at line 70 of file G4QNeutrinoPhysics.hh.

70{return nuTauOn ? "on" : "off";}

Referenced by G4QMessenger::GetCurrentValue().

◆ SetNuElNuclearOnOff()

void G4QNeutrinoPhysics::SetNuElNuclearOnOff ( G4String aState)

Definition at line 74 of file G4QNeutrinoPhysics.cc.

75{
76 if(wasBuilt) G4cout<<"G4QNeutrinoPhysics:No, processes are already builded!"<<G4endl;
77 else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") nuEleOn = true;
78 else nuEleOn = false;
79}

Referenced by G4QMessenger::SetNewValue().

◆ SetNuMuNuclearOnOff()

void G4QNeutrinoPhysics::SetNuMuNuclearOnOff ( G4String aState)

Definition at line 81 of file G4QNeutrinoPhysics.cc.

82{
83 if(wasBuilt) G4cout<<"G4QNeutrinoPhysics:No, processes are already builded!"<<G4endl;
84 else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") nuMuoOn = true;
85 else nuMuoOn = false;
86}

Referenced by G4QMessenger::SetNewValue().

◆ SetNuNuclearBias()

void G4QNeutrinoPhysics::SetNuNuclearBias ( G4double  newValue)

Definition at line 95 of file G4QNeutrinoPhysics.cc.

96{
97 if(wasBuilt) G4cout<<"G4QNeutrinoPhysics:No, processes are already builded!"<<G4endl;
98 else nuNucBias = newValue;
99}

Referenced by G4QMessenger::SetNewValue().

◆ SetNuTauNuclearOnOff()

void G4QNeutrinoPhysics::SetNuTauNuclearOnOff ( G4String aState)

Definition at line 88 of file G4QNeutrinoPhysics.cc.

89{
90 if(wasBuilt) G4cout<<"G4QNeutrinoPhysics:No, processes are already builded!"<<G4endl;
91 else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") nuTauOn = true;
92 else nuTauOn = false;
93}

Referenced by G4QMessenger::SetNewValue().


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