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

#include <G4IonElasticPhysics.hh>

Inheritance diagram for G4IonElasticPhysics:
Collaboration diagram for G4IonElasticPhysics:

Public Member Functions

 G4IonElasticPhysics (G4int ver=0)
 
virtual ~G4IonElasticPhysics ()
 
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)
 
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 46 of file G4IonElasticPhysics.hh.

Constructor & Destructor Documentation

G4IonElasticPhysics::G4IonElasticPhysics ( G4int  ver = 0)

Definition at line 61 of file G4IonElasticPhysics.cc.

62  : G4VPhysicsConstructor("IonElasticPhysics"), verbose(ver)
63 {
64  if(verbose > 1) {
65  G4cout << "### G4IonElasticPhysics: " << GetPhysicsName()
66  << G4endl;
67  }
68 }
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:

G4IonElasticPhysics::~G4IonElasticPhysics ( )
virtual

Definition at line 70 of file G4IonElasticPhysics.cc.

71 {}

Member Function Documentation

void G4IonElasticPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 73 of file G4IonElasticPhysics.cc.

74 {
75  // G4cout << "G4IonElasticPhysics::ConstructParticle" << G4endl;
76  G4MesonConstructor pMesonConstructor;
77  pMesonConstructor.ConstructParticle();
78 
79  G4BaryonConstructor pBaryonConstructor;
80  pBaryonConstructor.ConstructParticle();
81 
82  G4IonConstructor pConstructor;
83  pConstructor.ConstructParticle();
84 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

Here is the call graph for this function:

void G4IonElasticPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 86 of file G4IonElasticPhysics.cc.

87 {
88  if(wasActivated) { return; }
89  wasActivated = true;
90 
91 // Elastic process for other ions
92  G4HadronElasticProcess* ionElasticProcess = new G4HadronElasticProcess("ionElastic");
93 
94  //Model
96  ionElastic->SetMinEnergy(0.0);
97  ionElasticProcess->RegisterMe(ionElastic);
98 
99  //Cross Section
101  G4VCrossSectionDataSet* ionElasticXSDataSet = new G4CrossSectionElastic(ionElasticXS);
102  ionElasticXSDataSet->SetMinKinEnergy(0.0);
103  ionElasticProcess->AddDataSet(ionElasticXSDataSet);
104 
106  ionManager->AddDiscreteProcess( ionElasticProcess );
107 
108  if ( verbose > 1 ) {
109  G4cout << "### IonElasticPhysics: " << ionElasticProcess->GetProcessName()
110  << " added for " << G4GenericIon::GenericIon()->GetParticleName() << G4endl;
111  }
112 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const G4String & GetParticleName() const
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
void SetMinKinEnergy(G4double value)
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
G4ProcessManager * GetProcessManager() const
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:


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