#include <CMSNeutronXS.h>
Definition at line 7 of file CMSNeutronXS.h.
CMSNeutronXS::CMSNeutronXS |
( |
const G4String & |
nam, |
|
|
G4int |
ver |
|
) |
| |
CMSNeutronXS::~CMSNeutronXS |
( |
| ) |
|
|
virtual |
void CMSNeutronXS::ConstructParticle |
( |
| ) |
|
|
virtual |
void CMSNeutronXS::ConstructProcess |
( |
| ) |
|
|
virtual |
Definition at line 21 of file CMSNeutronXS.cc.
References i, and n.
23 G4NeutronInelasticXS* xinel =
new G4NeutronInelasticXS();
24 G4NeutronCaptureXS* xcap =
new G4NeutronCaptureXS();
26 const G4ParticleDefinition* neutron = G4Neutron::Neutron();
28 G4cout <<
"### CMSNeutronXS: use alternative neutron X-sections"
32 G4ProcessVector* pv = neutron->GetProcessManager()->GetProcessList();
34 G4HadronicProcess* had = 0;
35 for(G4int
i=0;
i<
n;
i++) {
36 if(fHadronInelastic == ((*pv)[
i])->GetProcessSubType()) {
37 had =
static_cast<G4HadronicProcess*
>((*pv)[
i]);
38 had->AddDataSet(xinel);
39 }
else if(fCapture == ((*pv)[i])->GetProcessSubType()) {
40 had =
static_cast<G4HadronicProcess*
>((*pv)[
i]);
41 had->AddDataSet(xcap);
G4int CMSNeutronXS::verbose |
|
private |