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

#include <G4HadronHElasticPhysics.hh>

Inheritance diagram for G4HadronHElasticPhysics:
G4VPhysicsConstructor

Public Member Functions

 G4HadronHElasticPhysics (G4int ver=0)
 
virtual ~G4HadronHElasticPhysics ()
 
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 G4HadronHElasticPhysics.hh.

Constructor & Destructor Documentation

G4HadronHElasticPhysics::G4HadronHElasticPhysics ( G4int  ver = 0)

Definition at line 81 of file G4HadronHElasticPhysics.cc.

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

82  : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver)
83 {
84  if(verbose > 1) {
85  G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName()
86  << G4endl;
87  }
88 }
G4GLOB_DLL std::ostream G4cout
const G4String & GetPhysicsName() const
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
G4HadronHElasticPhysics::~G4HadronHElasticPhysics ( )
virtual

Definition at line 90 of file G4HadronHElasticPhysics.cc.

91 {}

Member Function Documentation

void G4HadronHElasticPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 93 of file G4HadronHElasticPhysics.cc.

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

94 {
95  // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
96  G4MesonConstructor pMesonConstructor;
97  pMesonConstructor.ConstructParticle();
98 
99  G4BaryonConstructor pBaryonConstructor;
100  pBaryonConstructor.ConstructParticle();
101 
102  // Construct light ions
103  G4IonConstructor pConstructor;
104  pConstructor.ConstructParticle();
105 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
void G4HadronHElasticPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 107 of file G4HadronHElasticPhysics.cc.

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

108 {
109  if(wasActivated) { return; }
110  wasActivated = true;
111 
112  const G4double elimit = 1.0*GeV;
113  const G4double elimitAntiNuc = 100*MeV;
114  const G4double delta = 0.1*MeV;
115  if(verbose > 1) {
116  G4cout << "### HadronElasticPhysics::ConstructProcess: Elimit for HE "
117  << elimit/GeV << " GeV" << G4endl;
118  G4cout << " for anti-neuclei "
119  << elimitAntiNuc/GeV << " GeV" << G4endl;
120  }
121 
122  G4AntiNuclElastic* anuc = new G4AntiNuclElastic();
123  anuc->SetMinEnergy(elimitAntiNuc);
124  G4CrossSectionElastic* anucxs =
126 
127  G4HadronElastic* lhep0 = new G4HadronElastic();
128  G4HadronElastic* lhep1 = new G4HadronElastic();
129  G4HadronElastic* lhep2 = new G4HadronElastic();
130  lhep1->SetMaxEnergy(elimit+delta);
131  lhep2->SetMaxEnergy(elimitAntiNuc+delta);
132 
134  chips->SetMaxEnergy(elimit+delta);
135 
137  he->SetMinEnergy(elimit);
138 
139  aParticleIterator->reset();
140  while( (*aParticleIterator)() )
141  {
142  G4ParticleDefinition* particle = aParticleIterator->value();
143  G4ProcessManager* pmanager = particle->GetProcessManager();
144  G4String pname = particle->GetParticleName();
145  if(pname == "anti_lambda" ||
146  pname == "anti_neutron" ||
147  pname == "anti_omega-" ||
148  pname == "anti_sigma-" ||
149  pname == "anti_sigma+" ||
150  pname == "anti_xi-" ||
151  pname == "anti_xi0" ||
152  pname == "lambda" ||
153  pname == "omega-" ||
154  pname == "sigma-" ||
155  pname == "sigma+" ||
156  pname == "xi-" ||
157  pname == "alpha" ||
158  pname == "deuteron" ||
159  pname == "triton"
160  ) {
161 
163  hel->RegisterMe(lhep0);
164  pmanager->AddDiscreteProcess(hel);
165  if(verbose > 1) {
166  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
167  << " added for " << particle->GetParticleName() << G4endl;
168  }
169 
170  } else if(pname == "proton") {
171 
173  hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
174  hel->RegisterMe(chips);
175  hel->RegisterMe(he);
176  pmanager->AddDiscreteProcess(hel);
177  if(verbose > 1) {
178  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
179  << " added for " << particle->GetParticleName() << G4endl;
180  }
181 
182  } else if(pname == "neutron") {
183 
185  hel->AddDataSet(new G4NeutronElasticXS());
186  hel->RegisterMe(chips);
187  hel->RegisterMe(he);
188  pmanager->AddDiscreteProcess(hel);
189  if(verbose > 1) {
190  G4cout << "### HadronElasticPhysics: "
191  << hel->GetProcessName()
192  << " added for " << particle->GetParticleName() << G4endl;
193  }
194 
195  } else if (pname == "pi+" || pname == "pi-") {
196 
198  hel->AddDataSet(new G4BGGPionElasticXS(particle));
199  hel->RegisterMe(lhep1);
200  hel->RegisterMe(he);
201  pmanager->AddDiscreteProcess(hel);
202  if(verbose > 1) {
203  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
204  << " added for " << particle->GetParticleName() << G4endl;
205  }
206 
207  } else if(pname == "kaon-" ||
208  pname == "kaon+" ||
209  pname == "kaon0S" ||
210  pname == "kaon0L"
211  ) {
212 
214  hel->RegisterMe(lhep0);
215  //hel->AddDataSet(new G4CHIPSElasticXS());
216  pmanager->AddDiscreteProcess(hel);
217  if(verbose > 1) {
218  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
219  << " added for " << particle->GetParticleName() << G4endl;
220  }
221 
222  } else if(
223  pname == "anti_proton" ||
224  pname == "anti_alpha" ||
225  pname == "anti_deuteron" ||
226  pname == "anti_triton" ||
227  pname == "anti_He3" ) {
228 
230  hel->AddDataSet(anucxs);
231  hel->RegisterMe(lhep2);
232  hel->RegisterMe(anuc);
233  pmanager->AddDiscreteProcess(hel);
234  }
235  }
236 }
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
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
double G4double
Definition: G4Types.hh:76

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