Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HadronHElasticPhysics Class Reference

#include <G4HadronHElasticPhysics.hh>

Inheritance diagram for G4HadronHElasticPhysics:
Collaboration diagram for G4HadronHElasticPhysics:

Public Member Functions

 G4HadronHElasticPhysics (G4int ver=0, G4bool diffraction=false)
 
virtual ~G4HadronHElasticPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
void SetDiffraction (G4bool val)
 
- 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)
 
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 47 of file G4HadronHElasticPhysics.hh.

Constructor & Destructor Documentation

G4HadronHElasticPhysics::G4HadronHElasticPhysics ( G4int  ver = 0,
G4bool  diffraction = false 
)

Definition at line 89 of file G4HadronHElasticPhysics.cc.

90  : G4VPhysicsConstructor( "hElastic_BEST" ), verbose( ver ),
91  fDiffraction(diffraction)
92 {
93  if ( verbose > 1 ) {
94  G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName()
95  << " low-mass diffraction: " << fDiffraction << G4endl;
96  }
97 }
G4GLOB_DLL std::ostream G4cout
const G4String & GetPhysicsName() const
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

G4HadronHElasticPhysics::~G4HadronHElasticPhysics ( )
virtual

Definition at line 99 of file G4HadronHElasticPhysics.cc.

99 {}

Member Function Documentation

void G4HadronHElasticPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 102 of file G4HadronHElasticPhysics.cc.

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

Here is the call graph for this function:

void G4HadronHElasticPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 115 of file G4HadronHElasticPhysics.cc.

115  {
116 
117  const G4double elimitDiffuse = 0.0;
118  const G4double elimitAntiNuc = 100.0*MeV;
119  const G4double delta = 0.1*MeV;
120 
121  if ( verbose > 1 ) {
122  G4cout << "### HadronHElasticPhysics::ConstructProcess: lower energy limit for DiffuseElastic : "
123  << elimitDiffuse/GeV << " GeV" << G4endl
124  << " transition energy for anti-nuclei : "
125  << elimitAntiNuc/GeV << " GeV" << G4endl;
126  }
127 
128  G4AntiNuclElastic* anuc = new G4AntiNuclElastic();
129  anuc->SetMinEnergy( elimitAntiNuc );
130  G4CrossSectionElastic* anucxs =
132 
133  G4HadronElastic* lhep = new G4HadronElastic();
134  lhep->SetMaxEnergy( elimitAntiNuc + delta );
135 
136  // Three instances of Chips elastic model: one used everywhere,
137  // one used below a energy threshold, and one used only for the
138  // hydrogen element.
141  chips2->SetMaxEnergy( elimitAntiNuc + delta );
143  const G4ElementTable* theElementTable = G4Element::GetElementTable();
144  for ( size_t i_ele = 0; i_ele < theElementTable->size(); i_ele++ ) {
145  G4Element* element = (*theElementTable)[ i_ele ];
146  if ( element->GetZ() > 1.0 ) chipsH->DeActivateFor( element );
147  }
148 
149  G4NuclNuclDiffuseElastic* diffuseNuclNuclElastic = new G4NuclNuclDiffuseElastic();
150  diffuseNuclNuclElastic->SetMinEnergy( elimitDiffuse );
151 
152  G4VCrossSectionDataSet* theComponentGGNuclNuclData =
154 
155  G4LMsdGenerator* diffGen = 0;
156  if(fDiffraction) {
157  diffGen = new G4LMsdGenerator("LMsdDiffraction");
158  diffRatio = new G4DiffElasticRatio();
159  G4AutoDelete::Register(diffRatio);
160  }
161 
162  auto myParticleIterator=GetParticleIterator();
163  myParticleIterator->reset();
164  while( (*myParticleIterator)() ) {
165 
166  G4ParticleDefinition* particle = myParticleIterator->value();
167  G4ProcessManager* pmanager = particle->GetProcessManager();
168  G4String pname = particle->GetParticleName();
169 
170  if ( pname == "anti_lambda" ||
171  pname == "anti_sigma-" ||
172  pname == "anti_sigma0" ||
173  pname == "anti_sigma+" ||
174  pname == "anti_xi-" ||
175  pname == "anti_xi0" ||
176  pname == "anti_omega-"
177  ) {
180  hel->RegisterMe( chips1 );
181  pmanager->AddDiscreteProcess( hel );
182  if ( verbose > 1 ) {
183  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
184  << " added for " << particle->GetParticleName() << G4endl;
185  }
186 
187  } else if ( pname == "lambda" ||
188  pname == "sigma-" ||
189  pname == "sigma0" ||
190  pname == "sigma+" ||
191  pname == "xi-" ||
192  pname == "xi0" ||
193  pname == "omega-"
194  ) {
197  hel->RegisterMe( chips1 );
198  pmanager->AddDiscreteProcess( hel );
199  if ( verbose > 1 ) {
200  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
201  << " added for " << particle->GetParticleName() << G4endl;
202  }
203 
204  } else if ( pname == "proton" ) {
206  hel->AddDataSet( new G4BGGNucleonElasticXS( particle ) );
207  // To preserve reproducibility, a different instance of
208  // G4DiffuseElastic must be used for each particle type.
209  G4DiffuseElastic* protonDiffuseElastic = new G4DiffuseElastic();
210  protonDiffuseElastic->SetMinEnergy( elimitDiffuse );
211  hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
212  hel->RegisterMe( protonDiffuseElastic );
213  pmanager->AddDiscreteProcess( hel );
214  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
215  if ( verbose > 1 ) {
216  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
217  << " added for " << particle->GetParticleName() << G4endl;
218  }
219 
220  } else if ( pname == "neutron" ) {
223  // To preserve reproducibility, a different instance of
224  // G4DiffuseElastic must be used for each particle type.
225  G4DiffuseElastic* neutronDiffuseElastic = new G4DiffuseElastic();
226  neutronDiffuseElastic->SetMinEnergy( elimitDiffuse );
227  hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
228  hel->RegisterMe( neutronDiffuseElastic );
229  pmanager->AddDiscreteProcess( hel );
230  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
231  if ( verbose > 1 ) {
232  G4cout << "### HadronElasticPhysics: "
233  << hel->GetProcessName()
234  << " added for " << particle->GetParticleName() << G4endl;
235  }
236 
237  } else if ( pname == "pi-" ) {
239  hel->AddDataSet( new G4BGGPionElasticXS( particle ) );
240  // To preserve reproducibility, a different instance of
241  // G4DiffuseElastic must be used for each particle type.
242  G4DiffuseElastic* pionMinusDiffuseElastic = new G4DiffuseElastic();
243  pionMinusDiffuseElastic->SetMinEnergy( elimitDiffuse );
244  hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
245  hel->RegisterMe( pionMinusDiffuseElastic );
246  pmanager->AddDiscreteProcess( hel );
247  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
248  if ( verbose > 1 ) {
249  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
250  << " added for " << particle->GetParticleName() << G4endl;
251  }
252 
253  } else if ( pname == "pi+" ) {
255  hel->AddDataSet( new G4BGGPionElasticXS( particle ) );
256  // To preserve reproducibility, a different instance of
257  // G4DiffuseElastic must be used for each particle type.
258  G4DiffuseElastic* pionPlusDiffuseElastic = new G4DiffuseElastic();
259  hel->RegisterMe( chipsH ); // Use Chips only for Hydrogen element
260  pionPlusDiffuseElastic->SetMinEnergy( elimitDiffuse );
261  hel->RegisterMe( pionPlusDiffuseElastic );
262  pmanager->AddDiscreteProcess( hel );
263  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
264  if ( verbose > 1 ) {
265  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
266  << " added for " << particle->GetParticleName() << G4endl;
267  }
268 
269  } else if ( pname == "kaon-" ||
270  pname == "kaon+" ||
271  pname == "kaon0S" ||
272  pname == "kaon0L"
273  ) {
275  if ( pname == "kaon-" ) {
277  } else if ( pname == "kaon+" ) {
279  } else {
281  }
282  hel->RegisterMe( chips1 );
283  pmanager->AddDiscreteProcess( hel );
284  if(fDiffraction) { hel->SetDiffraction(diffGen, diffRatio); }
285  if ( verbose > 1 ) {
286  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
287  << " added for " << particle->GetParticleName() << G4endl;
288  }
289 
290  } else if (
291  pname == "deuteron" ||
292  pname == "triton" ||
293  pname == "He3" ||
294  pname == "alpha"
295  ) {
297  hel->AddDataSet( theComponentGGNuclNuclData );
298  // To preserve reproducibility, replace temporarily
299  // G4NuclNuclDiffuseElastic with the Gheisha elastic model.
300  //hel->RegisterMe( diffuseNuclNuclElastic );
301  G4HadronElastic* lhepLightIon = new G4HadronElastic();
302  hel->RegisterMe( lhepLightIon );
303  pmanager->AddDiscreteProcess( hel );
304  if ( verbose > 1 ) {
305  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
306  << " added for " << particle->GetParticleName() << G4endl;
307  }
308 
309  } else if ( pname == "anti_proton" || pname == "anti_neutron" ) {
311  hel->AddDataSet( anucxs );
312  hel->RegisterMe( chips2 );
313  hel->RegisterMe( anuc );
314  pmanager->AddDiscreteProcess( hel );
315  if ( verbose > 1 ) {
316  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
317  << " added for " << particle->GetParticleName() << G4endl;
318  }
319 
320  } else if ( pname == "anti_deuteron" ||
321  pname == "anti_triton" ||
322  pname == "anti_He3" ||
323  pname == "anti_alpha"
324  ) {
326  hel->AddDataSet( anucxs );
327  hel->RegisterMe( lhep );
328  hel->RegisterMe( anuc );
329  pmanager->AddDiscreteProcess( hel );
330  if ( verbose > 1 ) {
331  G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
332  << " added for " << particle->GetParticleName() << G4endl;
333  }
334 
335  } else if ( pname == "GenericIon" ) {
336  // To preserve reproducibility, disable temporarily
337  // G4NuclNuclDiffuseElastic.
338  //G4HadronElasticProcess* hel = new G4HadronElasticProcess();
339  //hel->AddDataSet( theComponentGGNuclNuclData );
340  //hel->RegisterMe( diffuseNuclNuclElastic );
341  //pmanager->AddDiscreteProcess( hel );
342  //if ( verbose > 1 ) {
343  // G4cout << "### HadronElasticPhysics: " << hel->GetProcessName()
344  // << " added for " << particle->GetParticleName() << G4endl;
345  //}
346 
347  }
348 
349  }
350 
351 }
G4double GetZ() const
Definition: G4Element.hh:131
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void SetDiffraction(G4HadronicInteraction *, G4VCrossSectionRatio *)
G4ComponentAntiNuclNuclearXS * GetComponentCrossSection()
const G4String & GetParticleName() const
void RegisterMe(G4HadronicInteraction *a)
static const char * Default_Name()
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void Register(T *inst)
Definition: G4AutoDelete.hh:65
G4GLOB_DLL std::ostream G4cout
static G4CrossSectionDataSetRegistry * Instance()
static const char * Default_Name()
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
G4ProcessManager * GetProcessManager() const
static constexpr double GeV
Definition: G4SIunits.hh:217
static const char * Default_Name()
void SetMaxEnergy(const G4double anEnergy)
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
static const char * Default_Name()
std::vector< G4Element * > G4ElementTable
double G4double
Definition: G4Types.hh:76
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:398
void DeActivateFor(const G4Material *aMaterial)

Here is the call graph for this function:

void G4HadronHElasticPhysics::SetDiffraction ( G4bool  val)
inline

Definition at line 64 of file G4HadronHElasticPhysics.hh.

64 {fDiffraction = val;};

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