#include <G4QCaptureAtRestPhysics.hh>
Inheritance diagram for G4QCaptureAtRestPhysics:
Public Member Functions | |
G4QCaptureAtRestPhysics (G4int ver=1) | |
G4QCaptureAtRestPhysics (const G4String &name, G4int ver=1) | |
virtual | ~G4QCaptureAtRestPhysics () |
virtual void | ConstructParticle () |
virtual void | ConstructProcess () |
Definition at line 54 of file G4QCaptureAtRestPhysics.hh.
G4QCaptureAtRestPhysics::G4QCaptureAtRestPhysics | ( | G4int | ver = 1 |
) |
Definition at line 41 of file G4QCaptureAtRestPhysics.cc.
References G4cout, and G4endl.
00042 : G4VPhysicsConstructor("CHIPS nuclear_capture"), captureProcess(0) 00043 , verbose(ver), wasActivated(false) 00044 { 00045 if(verbose > 1) G4cout << "###> G4QCaptureAtRestPhysics is initialized" << G4endl; 00046 }
Definition at line 48 of file G4QCaptureAtRestPhysics.cc.
References G4cout, and G4endl.
00049 : G4VPhysicsConstructor(name), captureProcess(0), verbose(ver), wasActivated(false) 00050 { 00051 if(verbose > 1) G4cout << "###> G4QCaptureAtRestPhysics is initialized" << G4endl; 00052 }
G4QCaptureAtRestPhysics::~G4QCaptureAtRestPhysics | ( | ) | [virtual] |
void G4QCaptureAtRestPhysics::ConstructParticle | ( | ) | [virtual] |
Implements G4VPhysicsConstructor.
Definition at line 59 of file G4QCaptureAtRestPhysics.cc.
References G4BaryonConstructor::ConstructParticle(), G4MesonConstructor::ConstructParticle(), and G4LeptonConstructor::ConstructParticle().
00060 { 00061 // G4cout << "G4QCaptureAtRestPhysics::ConstructParticle" << G4endl; 00062 G4LeptonConstructor pLeptonConstructor; 00063 pLeptonConstructor.ConstructParticle(); 00064 00065 G4MesonConstructor pMesonConstructor; 00066 pMesonConstructor.ConstructParticle(); 00067 00068 G4BaryonConstructor pBaryonConstructor; 00069 pBaryonConstructor.ConstructParticle(); 00070 00071 }
void G4QCaptureAtRestPhysics::ConstructProcess | ( | ) | [virtual] |
Implements G4VPhysicsConstructor.
Definition at line 73 of file G4QCaptureAtRestPhysics.cc.
References G4ProcessManager::AddRestProcess(), G4Electron::Electron(), G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetProcessManager(), G4QCaptureAtRest::IsApplicable(), G4ParticleDefinition::IsShortLived(), G4ParticleTableIterator< K, V >::reset(), G4VPhysicsConstructor::theParticleIterator, and G4ParticleTableIterator< K, V >::value().
00074 { 00075 if(verbose>1) G4cout<<"###> G4QCaptureAtRestPhysics::ConstructProcess: "<<wasActivated 00076 <<G4endl; 00077 if(wasActivated) return; 00078 wasActivated = true; 00079 captureProcess = new G4QCaptureAtRest(); 00080 00081 // Add Stopping Process 00082 G4ParticleDefinition* particle=0; 00083 G4ProcessManager* pmanager=0; 00084 00085 theParticleIterator->reset(); 00086 while( (*theParticleIterator)() ) 00087 { 00088 particle = theParticleIterator->value(); 00089 pmanager = particle->GetProcessManager(); 00090 if(particle->GetPDGCharge() < 0. && particle != G4Electron::Electron() && 00091 !(particle->IsShortLived()) && captureProcess->IsApplicable(*particle) ) 00092 { 00093 pmanager->AddRestProcess(captureProcess); 00094 if(verbose > 1) G4cout << "###> G4QCaptureAtRestPhysics is added for " 00095 <<particle->GetParticleName() << G4endl; 00096 } 00097 } 00098 }