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

#include <G4HadronDElasticPhysics.hh>

Inheritance diagram for G4HadronDElasticPhysics:
G4VPhysicsConstructor

Public Member Functions

 G4HadronDElasticPhysics (G4int ver=1)
 
virtual ~G4HadronDElasticPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- 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 45 of file G4HadronDElasticPhysics.hh.

Constructor & Destructor Documentation

G4HadronDElasticPhysics::G4HadronDElasticPhysics ( G4int  ver = 1)

Definition at line 90 of file G4HadronDElasticPhysics.cc.

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

91  : G4VPhysicsConstructor("hElasticDIFFUSE"), verbose(ver)
92 {
93  if(verbose > 1) {
94  G4cout << "### G4HadronDElasticPhysics: " << GetPhysicsName()
95  << G4endl;
96  }
97 }
G4GLOB_DLL std::ostream G4cout
const G4String & GetPhysicsName() const
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
G4HadronDElasticPhysics::~G4HadronDElasticPhysics ( )
virtual

Definition at line 99 of file G4HadronDElasticPhysics.cc.

100 {}

Member Function Documentation

void G4HadronDElasticPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 102 of file G4HadronDElasticPhysics.cc.

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

103 {
104  // G4cout << "G4HadronDElasticPhysics::ConstructParticle" << G4endl;
105  G4MesonConstructor pMesonConstructor;
106  pMesonConstructor.ConstructParticle();
107 
108  G4BaryonConstructor pBaryonConstructor;
109  pBaryonConstructor.ConstructParticle();
110 
111  // Construct light ions
112  G4IonConstructor pConstructor;
113  pConstructor.ConstructParticle();
114 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
void G4HadronDElasticPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 116 of file G4HadronDElasticPhysics.cc.

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), aParticleIterator, G4ChipsKaonPlusElasticXS::Default_Name(), G4ChipsKaonMinusElasticXS::Default_Name(), G4ChipsKaonZeroElasticXS::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().

117 {
118  if(wasActivated) return;
119  wasActivated = true;
120 
121  const G4double elimitAntiNuc = 100.1*MeV;
122  if(verbose > 1) {
123  G4cout << "### HadronDElasticPhysics Construct Processes "
124  << " for anti-neuclei "
125  << elimitAntiNuc/GeV << " GeV" << G4endl;
126  }
127 
128  G4AntiNuclElastic* anuc = new G4AntiNuclElastic();
129  anuc->SetMinEnergy(elimitAntiNuc);
130  G4CrossSectionElastic* anucxs =
132 
133  G4HadronElastic* lhep0 = new G4HadronElastic();
134  G4HadronElastic* lhep1 = new G4HadronElastic();
135  lhep1->SetMaxEnergy(10.1*MeV);
136  G4HadronElastic* lhep2 = new G4HadronElastic();
137  lhep2->SetMaxEnergy(elimitAntiNuc);
138 
139  G4DiffuseElastic* model = 0;
140 
141  aParticleIterator->reset();
142  while( (*aParticleIterator)() )
143  {
144  G4ParticleDefinition* particle = aParticleIterator->value();
145  G4ProcessManager* pmanager = particle->GetProcessManager();
146  G4String pname = particle->GetParticleName();
147  if(pname == "anti_lambda" ||
148  pname == "anti_neutron" ||
149  pname == "anti_omega-" ||
150  pname == "anti_sigma-" ||
151  pname == "anti_sigma+" ||
152  pname == "anti_xi-" ||
153  pname == "anti_xi0" ||
154  pname == "lambda" ||
155  pname == "omega-" ||
156  pname == "sigma-" ||
157  pname == "sigma+" ||
158  pname == "xi-" ||
159  pname == "alpha" ||
160  pname == "deuteron" ||
161  pname == "triton"
162  ) {
163 
165  hel->RegisterMe(lhep0);
166  pmanager->AddDiscreteProcess(hel);
167  if(verbose > 1) {
168  G4cout << "### HadronDElasticPhysics: " << hel->GetProcessName()
169  << " added for " << particle->GetParticleName() << G4endl;
170  }
171 
172  } else if(pname == "proton") {
173 
175  hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
176  //hel->AddDataSet(new G4CHIPSElasticXS());
177  model = new G4DiffuseElastic();
178  hel->RegisterMe(lhep1);
179  hel->RegisterMe(model);
180  pmanager->AddDiscreteProcess(hel);
181  if(verbose > 1) {
182  G4cout << "### HadronDElasticPhysics: " << hel->GetProcessName()
183  << " added for " << particle->GetParticleName() << G4endl;
184  }
185 
186  } else if(pname == "neutron") {
187 
189  hel->AddDataSet(new G4NeutronElasticXS());
190  model = new G4DiffuseElastic();
191  hel->RegisterMe(lhep1);
192  hel->RegisterMe(model);
193  pmanager->AddDiscreteProcess(hel);
194  if(verbose > 1) {
195  G4cout << "### HadronDElasticPhysics: "
196  << hel->GetProcessName()
197  << " added for " << particle->GetParticleName() << G4endl;
198  }
199 
200  } else if (pname == "pi+" || pname == "pi-") {
201 
203  hel->AddDataSet(new G4BGGPionElasticXS(particle));
204  model = new G4DiffuseElastic();
205  hel->RegisterMe(lhep1);
206  hel->RegisterMe(model);
207  pmanager->AddDiscreteProcess(hel);
208  if(verbose > 1) {
209  G4cout << "### HadronDElasticPhysics: " << hel->GetProcessName()
210  << " added for " << particle->GetParticleName() << G4endl;
211  }
212 
213  } else if(pname == "kaon-") {
214 
217  model = new G4DiffuseElastic();
218  hel->RegisterMe(lhep1);
219  hel->RegisterMe(model);
220  pmanager->AddDiscreteProcess(hel);
221  if(verbose > 1) {
222  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
223  << " added for " << particle->GetParticleName() << G4endl;
224  }
225  } else if(pname == "kaon+") {
226 
229  model = new G4DiffuseElastic();
230  hel->RegisterMe(lhep1);
231  hel->RegisterMe(model);
232  pmanager->AddDiscreteProcess(hel);
233  if(verbose > 1) {
234  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
235  << " added for " << particle->GetParticleName() << G4endl;
236  }
237  } else if(pname == "kaon0S" ||
238  pname == "kaon0L"
239  ) {
240 
243  model = new G4DiffuseElastic();
244  hel->RegisterMe(lhep1);
245  hel->RegisterMe(model);
246  pmanager->AddDiscreteProcess(hel);
247  if(verbose > 1) {
248  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
249  << " added for " << particle->GetParticleName() << G4endl;
250  }
251  } else if(
252  pname == "anti_proton" ||
253  pname == "anti_alpha" ||
254  pname == "anti_deuteron" ||
255  pname == "anti_triton" ||
256  pname == "anti_He3" ) {
257 
259  hel->AddDataSet(anucxs);
260  hel->RegisterMe(lhep2);
261  hel->RegisterMe(anuc);
262  pmanager->AddDiscreteProcess(hel);
263  }
264  }
265  if(verbose > 1) {
266  G4cout << "### HadronDElasticPhysics Construct Processes " << G4endl;
267  }
268 }
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 G4CrossSectionDataSetRegistry * Instance()
static const char * Default_Name()
const XML_Char XML_Content * model
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
string pname
Definition: eplot.py:33
void SetMaxEnergy(const G4double anEnergy)
#define G4endl
Definition: G4ios.hh:61
static const char * Default_Name()
double G4double
Definition: G4Types.hh:76

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