Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4HadronElasticPhysics Class Reference

#include <G4HadronElasticPhysics.hh>

Inheritance diagram for G4HadronElasticPhysics:
G4VPhysicsConstructor

Public Member Functions

 G4HadronElasticPhysics (G4int ver=0)
 
virtual ~G4HadronElasticPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
G4HadronElasticGetNeutronModel ()
 
G4HadronicProcessGetNeutronProcess ()
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 52 of file G4HadronElasticPhysics.hh.

Constructor & Destructor Documentation

G4HadronElasticPhysics::G4HadronElasticPhysics ( G4int  ver = 0)

Definition at line 87 of file G4HadronElasticPhysics.cc.

References G4cout, G4endl, and G4VPhysicsConstructor::GetPhysicsName().

88  : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver)
89 {
90  if(verbose > 1) {
91  G4cout << "### G4HadronElasticPhysics: " << GetPhysicsName()
92  << G4endl;
93  }
94 }
G4GLOB_DLL std::ostream G4cout
const G4String & GetPhysicsName() const
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
G4HadronElasticPhysics::~G4HadronElasticPhysics ( )
virtual

Definition at line 96 of file G4HadronElasticPhysics.cc.

97 {}

Member Function Documentation

void G4HadronElasticPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 99 of file G4HadronElasticPhysics.cc.

References G4MesonConstructor::ConstructParticle(), G4IonConstructor::ConstructParticle(), and G4BaryonConstructor::ConstructParticle().

Referenced by G4HadronElasticPhysicsHP::ConstructParticle(), G4HadronElasticPhysicsLEND::ConstructParticle(), and G4HadronElasticPhysicsXS::ConstructParticle().

100 {
101  // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
102  G4MesonConstructor pMesonConstructor;
103  pMesonConstructor.ConstructParticle();
104 
105  G4BaryonConstructor pBaryonConstructor;
106  pBaryonConstructor.ConstructParticle();
107 
108  G4IonConstructor pConstructor;
109  pConstructor.ConstructParticle();
110 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
void G4HadronElasticPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 112 of file G4HadronElasticPhysics.cc.

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), aParticleIterator, G4ChipsProtonElasticXS::Default_Name(), G4ChipsNeutronElasticXS::Default_Name(), G4cout, G4endl, G4AntiNuclElastic::GetComponentCrossSection(), G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetProcessManager(), G4VProcess::GetProcessName(), python.hepunit::GeV, G4CrossSectionDataSetRegistry::Instance(), python.hepunit::MeV, eplot::pname, G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

Referenced by G4HadronElasticPhysicsHP::ConstructProcess(), G4HadronElasticPhysicsLEND::ConstructProcess(), and G4HadronElasticPhysicsXS::ConstructProcess().

113 {
114  if(wasActivated) { return; }
115  wasActivated = true;
116 
117  const G4double elimitPi = 1.0*GeV;
118  const G4double elimitAntiNuc = 100.*MeV;
119  const G4double delta = 0.1*MeV;
120  if(verbose > 1) {
121  G4cout << "### HadronElasticPhysics::ConstructProcess: Elimit for pi "
122  << elimitPi/GeV << " GeV" << G4endl;
123  G4cout << " for anti-neuclei "
124  << elimitAntiNuc/GeV << " GeV" << G4endl;
125  }
126 
127  G4AntiNuclElastic* anuc = new G4AntiNuclElastic();
128  anuc->SetMinEnergy(elimitAntiNuc);
129  G4CrossSectionElastic* anucxs =
131 
132  G4HadronElastic* lhep0 = new G4HadronElastic();
133  G4HadronElastic* lhep1 = new G4HadronElastic();
134  G4HadronElastic* lhep2 = new G4HadronElastic();
135  lhep1->SetMaxEnergy(elimitPi+delta);
136  lhep2->SetMaxEnergy(elimitAntiNuc+delta);
137 
139  neutronModel = new G4ChipsElasticModel();
140 
142  he->SetMinEnergy(elimitPi);
143 
144  aParticleIterator->reset();
145  while( (*aParticleIterator)() )
146  {
147  G4ParticleDefinition* particle = aParticleIterator->value();
148  G4ProcessManager* pmanager = particle->GetProcessManager();
149  G4String pname = particle->GetParticleName();
150  if(pname == "anti_lambda" ||
151  pname == "anti_neutron" ||
152  pname == "anti_omega-" ||
153  pname == "anti_sigma-" ||
154  pname == "anti_sigma+" ||
155  pname == "anti_xi-" ||
156  pname == "anti_xi0" ||
157  pname == "lambda" ||
158  pname == "omega-" ||
159  pname == "sigma-" ||
160  pname == "sigma+" ||
161  pname == "xi-" ||
162  pname == "alpha" ||
163  pname == "deuteron" ||
164  pname == "triton"
165  ) {
166 
168  hel->RegisterMe(lhep0);
169  pmanager->AddDiscreteProcess(hel);
170  if(verbose > 1) {
171  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
172  << " added for " << particle->GetParticleName() << G4endl;
173  }
174 
175  } else if(pname == "proton") {
176 
178  //hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
179 
180  // hel->AddDataSet(new G4ChipsProtonElasticXS());
182 
183  hel->RegisterMe(chipsp);
184  pmanager->AddDiscreteProcess(hel);
185  if(verbose > 1) {
186  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
187  << " added for " << particle->GetParticleName() << G4endl;
188  }
189 
190  } else if(pname == "neutron") {
191 
192  neutronProcess = new G4HadronElasticProcess();
193  //neutronProcess->AddDataSet(new G4BGGNucleonElasticXS(particle));
195  neutronProcess->RegisterMe(neutronModel);
196  pmanager->AddDiscreteProcess(neutronProcess);
197  if(verbose > 1) {
198  G4cout << "### HadronElasticPhysics: "
199  << neutronProcess->GetProcessName()
200  << " added for " << particle->GetParticleName() << G4endl;
201  }
202 
203  } else if (pname == "pi+" || pname == "pi-") {
204 
206  hel->AddDataSet(new G4BGGPionElasticXS(particle));
207  hel->RegisterMe(lhep1);
208  hel->RegisterMe(he);
209  pmanager->AddDiscreteProcess(hel);
210  if(verbose > 1) {
211  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
212  << " added for " << particle->GetParticleName() << G4endl;
213  }
214 
215  } else if(pname == "kaon-" ||
216  pname == "kaon+" ||
217  pname == "kaon0S" ||
218  pname == "kaon0L"
219  ) {
220 
222  hel->RegisterMe(lhep0);
223  pmanager->AddDiscreteProcess(hel);
224  if(verbose > 1) {
225  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
226  << " added for " << particle->GetParticleName() << G4endl;
227  }
228 
229  } else if(
230  pname == "anti_proton" ||
231  pname == "anti_alpha" ||
232  pname == "anti_deuteron" ||
233  pname == "anti_triton" ||
234  pname == "anti_He3" ) {
235 
237  hel->AddDataSet(anucxs);
238  hel->RegisterMe(lhep2);
239  hel->RegisterMe(anuc);
240  pmanager->AddDiscreteProcess(hel);
241  }
242  }
243 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
G4ComponentAntiNuclNuclearXS * GetComponentCrossSection()
const G4String & GetParticleName() const
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
#define aParticleIterator
static const char * Default_Name()
static G4CrossSectionDataSetRegistry * Instance()
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
string pname
Definition: eplot.py:33
void SetMaxEnergy(const G4double anEnergy)
static const char * Default_Name()
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
G4HadronElastic * G4HadronElasticPhysics::GetNeutronModel ( )
inline

Definition at line 87 of file G4HadronElasticPhysics.hh.

Referenced by G4HadronElasticPhysicsHP::ConstructProcess(), and G4HadronElasticPhysicsLEND::ConstructProcess().

88 {
89  return neutronModel;
90 }
G4HadronicProcess * G4HadronElasticPhysics::GetNeutronProcess ( )
inline

The documentation for this class was generated from the following files: