#include <G4HadronicWhiteBoard.hh>
Public Member Functions | |
G4HadronicWhiteBoard () | |
void | SetProjectile (const G4HadProjectile &aProjectile) |
void | SetTargetNucleus (const G4Nucleus &aTarget) |
void | SetProcessName (const G4String &aProcessName) |
void | SetModelName (const G4String &aModelName) |
const G4HadProjectile * | GetProjectile () |
const G4Nucleus & | GetTargetNucleus () |
G4ParticleDefinition * | GetPDef () |
G4String | GetParticleName () |
G4double | GetEnergy () |
G4double | GetPx () |
G4double | GetPy () |
G4double | GetPz () |
G4int | GetA () |
G4int | GetZ () |
void | Dump () |
Static Public Member Functions | |
static G4HadronicWhiteBoard & | Instance () |
Definition at line 34 of file G4HadronicWhiteBoard.hh.
G4HadronicWhiteBoard::G4HadronicWhiteBoard | ( | ) |
Definition at line 29 of file G4HadronicWhiteBoard.cc.
00030 : theProjectile(0), theDef(0), theName(0), theE(0.0), thePx(0.0), 00031 thePy(0.0), thePz(0.0), theA(0), theZ(0) 00032 {}
void G4HadronicWhiteBoard::Dump | ( | ) |
Definition at line 93 of file G4HadronicWhiteBoard.cc.
References FatalException, and G4Exception().
00094 { 00095 std::cerr << std::endl; 00096 std::cerr << "*** Geant4 Hadronic Reaction Information ***" 00097 << std::endl; 00098 std::cerr << " Process: " << theProcessName << " , Model: " 00099 << theModelName << std::endl; 00100 std::cerr << " Nucleus A, Z = " << theA << " " << theZ 00101 << std::endl; 00102 std::cerr << " Projectile was a " << theName 00103 << std::endl; 00104 std::cerr << " projectile momentum (px, py, pz) = (" << thePx << ", " 00105 << thePy << ", " << thePz << ")" << std::endl; 00106 std::cerr << " Projectile energy = "<< theE 00107 << std::endl; 00108 std::cerr << "*** End of Geant4 Hadronic Reaction Information ***" 00109 << std::endl; 00110 G4Exception(theModelName, "001", FatalException, "segmentation fault"); 00111 }
G4int G4HadronicWhiteBoard::GetA | ( | ) |
G4double G4HadronicWhiteBoard::GetEnergy | ( | ) |
G4String G4HadronicWhiteBoard::GetParticleName | ( | ) |
G4ParticleDefinition * G4HadronicWhiteBoard::GetPDef | ( | ) |
const G4HadProjectile * G4HadronicWhiteBoard::GetProjectile | ( | ) |
G4double G4HadronicWhiteBoard::GetPx | ( | ) |
G4double G4HadronicWhiteBoard::GetPy | ( | ) |
G4double G4HadronicWhiteBoard::GetPz | ( | ) |
const G4Nucleus & G4HadronicWhiteBoard::GetTargetNucleus | ( | ) |
G4int G4HadronicWhiteBoard::GetZ | ( | ) |
G4HadronicWhiteBoard & G4HadronicWhiteBoard::Instance | ( | ) | [static] |
Definition at line 35 of file G4HadronicWhiteBoard.cc.
Referenced by G4HadronicInteractionWrapper::ApplyInteraction().
00036 { 00037 static G4HadronicWhiteBoard theInstance; 00038 return theInstance; 00039 }
void G4HadronicWhiteBoard::SetModelName | ( | const G4String & | aModelName | ) |
Definition at line 87 of file G4HadronicWhiteBoard.cc.
Referenced by G4HadronicInteractionWrapper::ApplyInteraction().
void G4HadronicWhiteBoard::SetProcessName | ( | const G4String & | aProcessName | ) |
Definition at line 81 of file G4HadronicWhiteBoard.cc.
Referenced by G4HadronicInteractionWrapper::ApplyInteraction().
void G4HadronicWhiteBoard::SetProjectile | ( | const G4HadProjectile & | aProjectile | ) |
Definition at line 61 of file G4HadronicWhiteBoard.cc.
References G4HadProjectile::Get4Momentum(), and G4HadProjectile::GetDefinition().
Referenced by G4HadronicInteractionWrapper::ApplyInteraction().
00062 { 00063 theProjectile = const_cast<G4HadProjectile*>(& aProjectile); 00064 theDef = const_cast<G4ParticleDefinition*>(theProjectile->GetDefinition()); 00065 theName = const_cast<char *>(theDef->GetParticleName().c_str() ); 00066 theE = theProjectile->Get4Momentum().t(); 00067 thePx = theProjectile->Get4Momentum().vect().x(); 00068 thePy = theProjectile->Get4Momentum().vect().y(); 00069 thePz = theProjectile->Get4Momentum().vect().z(); 00070 }
void G4HadronicWhiteBoard::SetTargetNucleus | ( | const G4Nucleus & | aTarget | ) |
Definition at line 73 of file G4HadronicWhiteBoard.cc.
References G4Nucleus::GetA_asInt(), and G4Nucleus::GetZ_asInt().
Referenced by G4HadronicInteractionWrapper::ApplyInteraction().
00074 { 00075 theTarget = aTarget; 00076 theA = theTarget.GetA_asInt(); 00077 theZ = theTarget.GetZ_asInt(); 00078 }