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();
116 void G4QNeutrinoPhysics::BuildNuEleNuclear()
118 if(nuEleActivated)
return;
119 nuEleActivated =
true;
129 void G4QNeutrinoPhysics::BuildNuMuoNuclear()
131 if(nuMuoActivated)
return;
132 nuMuoActivated =
true;
142 void G4QNeutrinoPhysics::BuildNuTauNuclear()
144 if(nuTauActivated)
return;
145 nuTauActivated =
true;