#include <G4QElasticPhysics.hh>
Inheritance diagram for G4QElasticPhysics:
Public Member Functions | |
G4QElasticPhysics (const G4String &name="elastic", G4int ver=1) | |
virtual | ~G4QElasticPhysics () |
virtual void | ConstructParticle () |
virtual void | ConstructProcess () |
Definition at line 48 of file G4QElasticPhysics.hh.
Definition at line 54 of file G4QElasticPhysics.cc.
References G4cout, and G4endl.
00055 : G4VPhysicsConstructor(name), process(0), verbose(ver), wasActivated(false) 00056 { 00057 if(verbose > 1) G4cout << "### QElasticPhysics is initialized" << G4endl; 00058 model = 0; 00059 }
virtual G4QElasticPhysics::~G4QElasticPhysics | ( | ) | [inline, virtual] |
void G4QElasticPhysics::ConstructParticle | ( | ) | [virtual] |
Implements G4VPhysicsConstructor.
Definition at line 61 of file G4QElasticPhysics.cc.
References G4IonConstructor::ConstructParticle(), G4BaryonConstructor::ConstructParticle(), and G4MesonConstructor::ConstructParticle().
00062 { 00063 G4MesonConstructor pMesonConstructor; 00064 pMesonConstructor.ConstructParticle(); 00065 00066 G4BaryonConstructor pBaryonConstructor; 00067 pBaryonConstructor.ConstructParticle(); 00068 00069 // Construct light ions 00070 G4IonConstructor pConstructor; 00071 pConstructor.ConstructParticle(); 00072 }
void G4QElasticPhysics::ConstructProcess | ( | ) | [virtual] |
Implements G4VPhysicsConstructor.
Definition at line 74 of file G4QElasticPhysics.cc.
References G4ProcessManager::AddDiscreteProcess(), G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetProcessManager(), G4ParticleTableIterator< K, V >::reset(), G4VPhysicsConstructor::theParticleIterator, and G4ParticleTableIterator< K, V >::value().
00075 { 00076 if(wasActivated) return; 00077 wasActivated = true; 00078 00079 process = new G4QElastic(); 00080 00081 theParticleIterator->reset(); 00082 while( (*theParticleIterator)() ) 00083 { 00084 G4ParticleDefinition* particle = theParticleIterator->value(); 00085 G4String pname = particle->GetParticleName(); 00086 G4ProcessManager* pmanager = particle->GetProcessManager(); 00087 if(pname == "anti_neutron" || 00088 pname == "anti_proton" || 00089 pname == "anti_lambda" || 00090 pname == "anti_sigma-" || 00091 pname == "anti_sigma0" || 00092 pname == "anti_sigma+" || 00093 pname == "anti_xi-" || 00094 pname == "anti_xi0" || 00095 pname == "anti_omega-" || 00096 pname == "pi-" || 00097 pname == "pi+" || 00098 pname == "kaon-" || 00099 pname == "kaon+" || 00100 pname == "kaon0S" || 00101 pname == "kaon0L" || 00102 pname == "lambda" || 00103 pname == "sigma-" || 00104 pname == "sigma0" || 00105 pname == "sigma+" || 00106 pname == "xi-" || 00107 pname == "xi0" || 00108 pname == "omega-" ) 00109 { 00110 pmanager->AddDiscreteProcess(process); 00111 if(verbose>0) G4cout<<"### G4QElastic process is added for particle="<<pname<<G4endl; 00112 } 00113 } 00114 }