43 nuMuoActivated(false), nuTauActivated(false), nuEleOn(false),
44 nuMuoOn(false), nuTauOn(false), nuNucBias(1.), inelastic(0)
47 theMessenger->
Add(
this);
52 nuMuoActivated(false), nuTauActivated(false), nuEleOn(false),
53 nuMuoOn(false), nuTauOn(false), nuNucBias(1.), inelastic(0)
56 theMessenger->
Add(
this);
61 if(wasBuilt && inelastic)
delete inelastic;
76 if(wasBuilt)
G4cout<<
"G4QNeutrinoPhysics:No, processes are already builded!"<<
G4endl;
77 else if(newSwitch ==
"on" || newSwitch ==
"ON" || newSwitch ==
"On") nuEleOn =
true;
83 if(wasBuilt)
G4cout<<
"G4QNeutrinoPhysics:No, processes are already builded!"<<
G4endl;
84 else if(newSwitch ==
"on" || newSwitch ==
"ON" || newSwitch ==
"On") nuMuoOn =
true;
90 if(wasBuilt)
G4cout<<
"G4QNeutrinoPhysics:No, processes are already builded!"<<
G4endl;
91 else if(newSwitch ==
"on" || newSwitch ==
"ON" || newSwitch ==
"On") nuTauOn =
true;
97 if(wasBuilt)
G4cout<<
"G4QNeutrinoPhysics:No, processes are already builded!"<<
G4endl;
98 else nuNucBias = newValue;
104 if(nuEleOn || nuMuoOn || nuTauOn)
107 G4cout<<
"Builded=>G4QNeutrinoPhysics: "<<nuEleOn<<
", "<<nuMuoOn<<
", "<<nuTauOn<<
G4endl;
110 if (nuEleOn) BuildNuEleNuclear();
111 if (nuMuoOn) BuildNuMuoNuclear();
112 if (nuTauOn) BuildNuTauNuclear();
116void G4QNeutrinoPhysics::BuildNuEleNuclear()
118 if(nuEleActivated)
return;
119 nuEleActivated =
true;
129void G4QNeutrinoPhysics::BuildNuMuoNuclear()
131 if(nuMuoActivated)
return;
132 nuMuoActivated =
true;
142void G4QNeutrinoPhysics::BuildNuTauNuclear()
144 if(nuTauActivated)
return;
145 nuTauActivated =
true;
G4DLLIMPORT std::ostream G4cout
static G4AntiNeutrinoE * AntiNeutrinoE()
static G4AntiNeutrinoMu * AntiNeutrinoMu()
static G4AntiNeutrinoTau * AntiNeutrinoTau()
static G4NeutrinoE * NeutrinoE()
static G4NeutrinoMu * NeutrinoMu()
static G4NeutrinoTau * NeutrinoTau()
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static void SetWeakNucBias(G4double ccnB=1.)
void Add(G4QNeutrinoPhysics *weak)
static G4QMessenger * GetPointer()
void SetNuNuclearBias(G4double newValue)
G4QNeutrinoPhysics(G4int verbose=1)
virtual ~G4QNeutrinoPhysics()
void SetNuElNuclearOnOff(G4String &aState)
void SetNuMuNuclearOnOff(G4String &aState)
void SetNuTauNuclearOnOff(G4String &aState)