89{
90 if(wasActivated) return;
91 wasActivated = true;
95 {
98 if(pname == "kaon-" || pname == "kaon+" || pname == "kaon0S" || pname == "kaon0L" ||
99
100 pname == "pi-" || pname == "pi+" || pname == "proton" ||
101 pname == "lambda" || pname == "sigma+" || pname == "sigma0" ||
102 pname == "sigma-" || pname == "xi0" || pname == "xi-" || pname == "omega-" ||
103 pname == "anti_proton" || pname == "anti_neutron" || pname == "anti_lambda" ||
104 pname == "anti_sigma+" || pname == "anti_sigma0" || pname == "anti_sigma-" ||
105 pname == "anti_xi0" || pname == "anti_xi-" || pname == "anti_omega-" )
106 {
107 if(verbose>1)
108 G4cout<<
"__G4QInelCHIPS_HPBuilder: "<< pname <<
" is defined here"<<
G4endl;
112 <<
" is added for "<<pname<<
G4endl;
113 }
114 else if(pname == "neutron")
115 {
116 if(verbose>1)
117 G4cout<<
"__G4QInelCHIPS_HPBuilder: "<< pname <<
" is defined here"<<
G4endl;
119
120#ifdef debug
121 G4cout<<
"G4QInelasticCHIPS_HPBuilder::Build: before NeutronBuild"<<
G4endl;
122#endif
125
132#ifdef debug
133 G4cout<<
"G4QInelasticCHIPS_HPBuilder::Build: before Build HP processes"<<
G4endl;
134#endif
136 theHPNeutron->
Build(theNeutronInelastic);
137 theHPNeutron->
Build(theNeutronCapture);
138 theHPNeutron->
Build(theNeutronFission);
139#ifdef debug
140 G4cout<<
"G4QInelasticCHIPS_HPBuilder::Build: before QIn="<<theCHIPSInelastic<<
G4endl;
141#endif
143#ifdef debug
144 G4cout<<
"G4QInelasticCHIPS_HPBuilder::Build: befr HPI="<<theNeutronInelastic<<
G4endl;
145#endif
147
148#ifdef debug
149 G4cout<<
"G4QInelasticCHIPS_HPBuilder::Build: before QNG="<<theCHIPSNGamma<<
G4endl;
150#endif
152#ifdef debug
153 G4cout<<
"G4QInelasticCHIPS_HPBuilder::Build: before HPC="<<theNeutronCapture<<
G4endl;
154#endif
156
157
158
159
160#ifdef debug
161 G4cout<<
"G4QInelasticCHIPS_HPBuilder::Build: before ProcessAdd"<<
G4endl;
162#endif
164 if(verbose>1)
166 <<
" is added for "<<pname<<
G4endl;
168 if(verbose>1)
170 <<
" is added for "<<pname<<
G4endl;
172
173 if(verbose>1)
175 <<
" is added for "<<pname<<
G4endl;
176 }
177 }
178}
G4DLLIMPORT std::ostream G4cout
virtual void Build(G4HadronElasticProcess *aP)
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void AddDiscreteProcess(G4VDiscreteProcess *DP, G4double MaxE)
const G4String & GetProcessName() const