#include <CMSGlauberGribovXS.h>
Definition at line 7 of file CMSGlauberGribovXS.h.
CMSGlauberGribovXS::CMSGlauberGribovXS |
( |
G4int |
ver | ) |
|
CMSGlauberGribovXS::~CMSGlauberGribovXS |
( |
| ) |
|
|
virtual |
void CMSGlauberGribovXS::ConstructParticle |
( |
| ) |
|
|
virtual |
void CMSGlauberGribovXS::ConstructProcess |
( |
| ) |
|
|
virtual |
Definition at line 47 of file CMSGlauberGribovXS.cc.
References i, and n.
50 G4GlauberGribovCrossSection* gg =
new G4GlauberGribovCrossSection();
51 gg->SetEnergyLowerLimit(90.*GeV);
53 theParticleIterator->reset();
54 while( (*theParticleIterator)() ){
55 G4ParticleDefinition* particle = theParticleIterator->value();
56 G4String particleName = particle->GetParticleName();
58 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
59 << particleName << G4endl;
62 if (particleName ==
"neutron" ||
63 particleName ==
"pi+" ||
64 particleName ==
"pi-" ||
65 particleName ==
"proton") {
67 G4ProcessVector* pv = particle->GetProcessManager()->GetProcessList();
69 G4HadronicProcess* had = 0;
70 for(G4int
i=0;
i<
n;
i++) {
71 if(fHadronInelastic == ((*pv)[
i])->GetProcessSubType()) {
72 had =
static_cast<G4HadronicProcess*
>((*pv)[
i]);
78 G4cout <<
"### CMSGlauberGribovXS::ConstructProcess for " << particleName;
81 if(
verbose > 0) {G4cout <<
" and " << had->GetProcessName();}
82 if (particleName ==
"neutron") {
83 had->AddDataSet(
new G4BGGNucleonInelasticXS(particle));
84 }
else if(particleName ==
"proton") {
85 had->AddDataSet(
new G4BGGNucleonInelasticXS(particle));
86 }
else if(particleName ==
"pi+") {
87 had->AddDataSet(
new G4BGGPionInelasticXS(particle));
88 }
else if(particleName ==
"pi-") {
89 had->AddDataSet(
new G4BGGPionInelasticXS(particle));
93 if(
verbose > 0) {G4cout << G4endl;}
G4int CMSGlauberGribovXS::verbose |
|
private |