Geant4  10.02.p03
ExExChHadronElasticPhysics Class Reference

#include <ExExChHadronElasticPhysics.hh>

Inheritance diagram for ExExChHadronElasticPhysics:
Collaboration diagram for ExExChHadronElasticPhysics:

Public Member Functions

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

Private Member Functions

 ExExChHadronElasticPhysics (ExExChHadronElasticPhysics &)
 
ExExChHadronElasticPhysicsoperator= (const ExExChHadronElasticPhysics &right)
 

Private Attributes

G4int verbose
 

Static Private Attributes

static G4ThreadLocal G4bool wasActivated = false
 
static G4ThreadLocal G4HadronElasticneutronModel = 0
 
static G4ThreadLocal G4HadronicProcessneutronProcess = 0
 

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)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- 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 36 of file ExExChHadronElasticPhysics.hh.

Constructor & Destructor Documentation

◆ ExExChHadronElasticPhysics() [1/2]

ExExChHadronElasticPhysics::ExExChHadronElasticPhysics ( G4int  ver = 0)

Definition at line 72 of file ExExChHadronElasticPhysics.cc.

73 : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver)
74 {
75  if(verbose > 1) {
76  G4cout << "### ExExChHadronElasticPhysics: " << GetPhysicsName()
77  << G4endl;
78  }
79 }
const G4String & GetPhysicsName() const
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:

◆ ~ExExChHadronElasticPhysics()

ExExChHadronElasticPhysics::~ExExChHadronElasticPhysics ( )
virtual

Definition at line 81 of file ExExChHadronElasticPhysics.cc.

82 {}

◆ ExExChHadronElasticPhysics() [2/2]

ExExChHadronElasticPhysics::ExExChHadronElasticPhysics ( ExExChHadronElasticPhysics )
private

Member Function Documentation

◆ ConstructParticle()

void ExExChHadronElasticPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 84 of file ExExChHadronElasticPhysics.cc.

85 {
86  G4MesonConstructor pMesonConstructor;
87  pMesonConstructor.ConstructParticle();
88 
89  G4BaryonConstructor pBaryonConstructor;
90  pBaryonConstructor.ConstructParticle();
91 
92  G4IonConstructor pConstructor;
93  pConstructor.ConstructParticle();
94 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
Here is the call graph for this function:

◆ ConstructProcess()

void ExExChHadronElasticPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 96 of file ExExChHadronElasticPhysics.cc.

97 {
98  if(wasActivated) { return; }
99  wasActivated = true;
100 
101  const G4double elimitPi = 1.0*GeV;
102  const G4double elimitAntiNuc = 100.*MeV;
103  const G4double delta = 0.1*MeV;
104  if(verbose > 1) {
105  G4cout << "### HadronElasticPhysics::ConstructProcess: Elimit for pi "
106  << elimitPi/GeV << " GeV" << G4endl;
107  G4cout << " for anti-neuclei "
108  << elimitAntiNuc/GeV << " GeV" << G4endl;
109  }
110 
111  G4AntiNuclElastic* anuc = new G4AntiNuclElastic();
112  anuc->SetMinEnergy(elimitAntiNuc);
113  G4CrossSectionElastic* anucxs =
115 
116  G4HadronElastic* lhep0 = new G4HadronElastic();
117  G4HadronElastic* lhep1 = new G4HadronElastic();
118  G4HadronElastic* lhep2 = new G4HadronElastic();
119  lhep1->SetMaxEnergy(elimitPi+delta);
120  lhep2->SetMaxEnergy(elimitAntiNuc+delta);
121 
124 
125  G4ElasticHadrNucleusHE* he = new G4ElasticHadrNucleusHE();
126  he->SetMinEnergy(elimitPi);
127 
129  particleIterator->reset();
130  while( (*particleIterator)() )
131  {
132  G4ParticleDefinition* particle = particleIterator->value();
133  G4ProcessManager* pmanager = particle->GetProcessManager();
134  G4String pname = particle->GetParticleName();
135  if(pname == "anti_lambda" ||
136  pname == "anti_neutron" ||
137  pname == "anti_omega-" ||
138  pname == "anti_sigma-" ||
139  pname == "anti_sigma+" ||
140  pname == "anti_xi-" ||
141  pname == "anti_xi0" ||
142  pname == "lambda" ||
143  pname == "omega-" ||
144  pname == "sigma-" ||
145  pname == "sigma+" ||
146  pname == "xi-" ||
147  pname == "alpha" ||
148  pname == "deuteron" ||
149  pname == "triton"
150  ) {
151 
153  hel->RegisterMe(lhep0);
154 
155  XWrapperDiscreteProcess* hel_wrapper =
157  hel_wrapper->RegisterProcess(hel,1);
158  pmanager->AddDiscreteProcess(hel_wrapper);
159 
160  if(verbose > 1) {
161  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
162  << " added for " << particle->GetParticleName() << G4endl;
163  }
164 
165  } else if(pname == "proton") {
166 
168 
170  Instance()->GetCrossSectionDataSet(
172 
173  hel->RegisterMe(chipsp);
174 
175  XWrapperDiscreteProcess* hel_wrapper =
177  hel_wrapper->RegisterProcess(hel,1);
178  pmanager->AddDiscreteProcess(hel_wrapper);
179  if(verbose > 1) {
180  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
181  << " added for " << particle->GetParticleName() << G4endl;
182  }
183 
184  } else if(pname == "neutron") {
185 
187  //neutronProcess->AddDataSet(new G4BGGNucleonElasticXS(particle));
190  Instance()->GetCrossSectionDataSet(
194  if(verbose > 1) {
195  G4cout << "### HadronElasticPhysics: "
197  << " added for " << particle->GetParticleName() << G4endl;
198  }
199 
200  } else if (pname == "pi+" || pname == "pi-") {
201 
203  hel->AddDataSet(new G4BGGPionElasticXS(particle));
204  hel->RegisterMe(lhep1);
205  hel->RegisterMe(he);
206  XWrapperDiscreteProcess* hel_wrapper =
208  hel_wrapper->RegisterProcess(hel,1);
209  pmanager->AddDiscreteProcess(hel_wrapper);
210 
211  if(verbose > 1) {
212  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
213  << " added for " << particle->GetParticleName() << G4endl;
214  }
215 
216  } else if(pname == "kaon-" ||
217  pname == "kaon+" ||
218  pname == "kaon0S" ||
219  pname == "kaon0L"
220  ) {
221 
223  hel->RegisterMe(lhep0);
224  XWrapperDiscreteProcess* hel_wrapper =
226  hel_wrapper->RegisterProcess(hel,1);
227  pmanager->AddDiscreteProcess(hel_wrapper);
228  if(verbose > 1) {
229  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
230  << " added for " << particle->GetParticleName() << G4endl;
231  }
232 
233  } else if(
234  pname == "anti_proton" ||
235  pname == "anti_alpha" ||
236  pname == "anti_deuteron" ||
237  pname == "anti_triton" ||
238  pname == "anti_He3" ) {
239 
241  hel->AddDataSet(anucxs);
242  hel->RegisterMe(lhep2);
243  hel->RegisterMe(anuc);
244  XWrapperDiscreteProcess* hel_wrapper =
246  hel_wrapper->RegisterProcess(hel,1);
247  pmanager->AddDiscreteProcess(hel_wrapper);
248  }
249  }
250 }
static const double MeV
Definition: G4SIunits.hh:211
static G4ThreadLocal G4HadronElastic * neutronModel
static G4ThreadLocal G4HadronicProcess * neutronProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4ThreadLocal G4bool wasActivated
G4ProcessManager * GetProcessManager() const
G4ComponentAntiNuclNuclearXS * GetComponentCrossSection()
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
static const char * Default_Name()
static const double GeV
Definition: G4SIunits.hh:214
string pname
Definition: eplot.py:33
void SetMaxEnergy(const G4double anEnergy)
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65
static const char * Default_Name()
#define G4endl
Definition: G4ios.hh:61
void RegisterProcess(G4VDiscreteProcess *)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:

◆ GetNeutronModel()

G4HadronElastic * ExExChHadronElasticPhysics::GetNeutronModel ( )
inline

Definition at line 72 of file ExExChHadronElasticPhysics.hh.

73 {
74  return neutronModel;
75 }
static G4ThreadLocal G4HadronElastic * neutronModel

◆ GetNeutronProcess()

G4HadronicProcess * ExExChHadronElasticPhysics::GetNeutronProcess ( )
inline

Definition at line 77 of file ExExChHadronElasticPhysics.hh.

78 {
79  return neutronProcess;
80 }
static G4ThreadLocal G4HadronicProcess * neutronProcess

◆ operator=()

ExExChHadronElasticPhysics& ExExChHadronElasticPhysics::operator= ( const ExExChHadronElasticPhysics right)
private

Member Data Documentation

◆ neutronModel

G4ThreadLocal G4HadronElastic * ExExChHadronElasticPhysics::neutronModel = 0
staticprivate

Definition at line 67 of file ExExChHadronElasticPhysics.hh.

◆ neutronProcess

G4ThreadLocal G4HadronicProcess * ExExChHadronElasticPhysics::neutronProcess = 0
staticprivate

Definition at line 68 of file ExExChHadronElasticPhysics.hh.

◆ verbose

G4int ExExChHadronElasticPhysics::verbose
private

Definition at line 64 of file ExExChHadronElasticPhysics.hh.

◆ wasActivated

G4ThreadLocal G4bool ExExChHadronElasticPhysics::wasActivated = false
staticprivate

Definition at line 65 of file ExExChHadronElasticPhysics.hh.


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