G4HadronicWhiteBoard Class Reference

#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 G4HadProjectileGetProjectile ()
const G4NucleusGetTargetNucleus ()
G4ParticleDefinitionGetPDef ()
G4String GetParticleName ()
G4double GetEnergy ()
G4double GetPx ()
G4double GetPy ()
G4double GetPz ()
G4int GetA ()
G4int GetZ ()
void Dump ()

Static Public Member Functions

static G4HadronicWhiteBoardInstance ()


Detailed Description

Definition at line 34 of file G4HadronicWhiteBoard.hh.


Constructor & Destructor Documentation

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 {}


Member Function Documentation

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 (  ) 

Definition at line 57 of file G4HadronicWhiteBoard.cc.

00057 {return theA;}

G4double G4HadronicWhiteBoard::GetEnergy (  ) 

Definition at line 53 of file G4HadronicWhiteBoard.cc.

00053 {return theE;}

G4String G4HadronicWhiteBoard::GetParticleName (  ) 

Definition at line 52 of file G4HadronicWhiteBoard.cc.

00052 {return theName;}

G4ParticleDefinition * G4HadronicWhiteBoard::GetPDef (  ) 

Definition at line 51 of file G4HadronicWhiteBoard.cc.

00051 {return theDef;}

const G4HadProjectile * G4HadronicWhiteBoard::GetProjectile (  ) 

Definition at line 41 of file G4HadronicWhiteBoard.cc.

00042 {
00043   return theProjectile;
00044 }

G4double G4HadronicWhiteBoard::GetPx (  ) 

Definition at line 54 of file G4HadronicWhiteBoard.cc.

00054 {return thePx;}

G4double G4HadronicWhiteBoard::GetPy (  ) 

Definition at line 55 of file G4HadronicWhiteBoard.cc.

00055 {return thePy;}

G4double G4HadronicWhiteBoard::GetPz (  ) 

Definition at line 56 of file G4HadronicWhiteBoard.cc.

00056 {return thePz;}

const G4Nucleus & G4HadronicWhiteBoard::GetTargetNucleus (  ) 

Definition at line 46 of file G4HadronicWhiteBoard.cc.

00047 { 
00048   return theTarget;
00049 }

G4int G4HadronicWhiteBoard::GetZ (  ) 

Definition at line 58 of file G4HadronicWhiteBoard.cc.

00058 {return theZ;}

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().

00088 {
00089   theModelName = aModelName;
00090 }

void G4HadronicWhiteBoard::SetProcessName ( const G4String aProcessName  ) 

Definition at line 81 of file G4HadronicWhiteBoard.cc.

Referenced by G4HadronicInteractionWrapper::ApplyInteraction().

00082 {
00083   theProcessName = aProcessName;
00084 }

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 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:08 2013 for Geant4 by  doxygen 1.4.7