Geant4  10.02.p03
G4HadronicWhiteBoard Class Reference

#include <G4HadronicWhiteBoard.hh>

Collaboration diagram for G4HadronicWhiteBoard:

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

Static Public Member Functions

static G4HadronicWhiteBoardInstance ()
 

Private Attributes

const G4HadProjectiletheProjectile
 
const G4ParticleDefinitiontheDef
 
const char * theName
 
G4double theE
 
G4double thePx
 
G4double thePy
 
G4double thePz
 
G4Nucleus theTarget
 
G4int theA
 
G4int theZ
 
G4String theProcessName
 
G4String theModelName
 

Static Private Attributes

static G4ThreadLocal G4HadronicWhiteBoardtheInstance = 0
 

Detailed Description

Definition at line 34 of file G4HadronicWhiteBoard.hh.

Constructor & Destructor Documentation

◆ G4HadronicWhiteBoard()

G4HadronicWhiteBoard::G4HadronicWhiteBoard ( )

Definition at line 30 of file G4HadronicWhiteBoard.cc.

Here is the caller graph for this function:

Member Function Documentation

◆ Dump()

void G4HadronicWhiteBoard::Dump ( )

Definition at line 94 of file G4HadronicWhiteBoard.cc.

95 {
96  std::cerr << std::endl;
97  std::cerr << "*** Geant4 Hadronic Reaction Information ***"
98  << std::endl;
99  std::cerr << " Process: " << theProcessName << " , Model: "
100  << theModelName << std::endl;
101  std::cerr << " Nucleus A, Z = " << theA << " " << theZ
102  << std::endl;
103  std::cerr << " Projectile was a " << theName
104  << std::endl;
105  std::cerr << " projectile momentum (px, py, pz) = (" << thePx << ", "
106  << thePy << ", " << thePz << ")" << std::endl;
107  std::cerr << " Projectile energy = "<< theE
108  << std::endl;
109  std::cerr << "*** End of Geant4 Hadronic Reaction Information ***"
110  << std::endl;
111  G4Exception(theModelName, "001", FatalException, "segmentation fault");
112 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
Here is the call graph for this function:

◆ GetA()

G4int G4HadronicWhiteBoard::GetA ( void  )

Definition at line 58 of file G4HadronicWhiteBoard.cc.

58 {return theA;}

◆ GetEnergy()

G4double G4HadronicWhiteBoard::GetEnergy ( )

Definition at line 54 of file G4HadronicWhiteBoard.cc.

54 {return theE;}

◆ GetParticleName()

G4String G4HadronicWhiteBoard::GetParticleName ( )

Definition at line 53 of file G4HadronicWhiteBoard.cc.

53 {return theName;}

◆ GetPDef()

const G4ParticleDefinition * G4HadronicWhiteBoard::GetPDef ( )

Definition at line 52 of file G4HadronicWhiteBoard.cc.

52 {return theDef;}
const G4ParticleDefinition * theDef

◆ GetProjectile()

const G4HadProjectile * G4HadronicWhiteBoard::GetProjectile ( )

Definition at line 42 of file G4HadronicWhiteBoard.cc.

43 {
44  return theProjectile;
45 }
const G4HadProjectile * theProjectile

◆ GetPx()

G4double G4HadronicWhiteBoard::GetPx ( )

Definition at line 55 of file G4HadronicWhiteBoard.cc.

55 {return thePx;}

◆ GetPy()

G4double G4HadronicWhiteBoard::GetPy ( )

Definition at line 56 of file G4HadronicWhiteBoard.cc.

56 {return thePy;}

◆ GetPz()

G4double G4HadronicWhiteBoard::GetPz ( )

Definition at line 57 of file G4HadronicWhiteBoard.cc.

57 {return thePz;}

◆ GetTargetNucleus()

const G4Nucleus & G4HadronicWhiteBoard::GetTargetNucleus ( )

Definition at line 47 of file G4HadronicWhiteBoard.cc.

48 {
49  return theTarget;
50 }

◆ GetZ()

G4int G4HadronicWhiteBoard::GetZ ( void  )

Definition at line 59 of file G4HadronicWhiteBoard.cc.

59 {return theZ;}

◆ Instance()

G4HadronicWhiteBoard & G4HadronicWhiteBoard::Instance ( void  )
static

Definition at line 36 of file G4HadronicWhiteBoard.cc.

37 {
39  return *theInstance;
40 }
static G4ThreadLocal G4HadronicWhiteBoard * theInstance
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetModelName()

void G4HadronicWhiteBoard::SetModelName ( const G4String aModelName)

Definition at line 88 of file G4HadronicWhiteBoard.cc.

89 {
90  theModelName = aModelName;
91 }
Here is the caller graph for this function:

◆ SetProcessName()

void G4HadronicWhiteBoard::SetProcessName ( const G4String aProcessName)

Definition at line 82 of file G4HadronicWhiteBoard.cc.

83 {
84  theProcessName = aProcessName;
85 }
Here is the caller graph for this function:

◆ SetProjectile()

void G4HadronicWhiteBoard::SetProjectile ( const G4HadProjectile aProjectile)

Definition at line 62 of file G4HadronicWhiteBoard.cc.

63 {
64  theProjectile = & aProjectile;
66  theName = theDef->GetParticleName().c_str();
71 }
const G4ParticleDefinition * theDef
const G4LorentzVector & Get4Momentum() const
const G4HadProjectile * theProjectile
Hep3Vector vect() const
const G4String & GetParticleName() const
double x() const
const G4ParticleDefinition * GetDefinition() const
double y() const
double z() const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetTargetNucleus()

void G4HadronicWhiteBoard::SetTargetNucleus ( const G4Nucleus aTarget)

Definition at line 74 of file G4HadronicWhiteBoard.cc.

75 {
76  theTarget = aTarget;
79 }
G4int GetA_asInt() const
Definition: G4Nucleus.hh:109
G4int GetZ_asInt() const
Definition: G4Nucleus.hh:115
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ theA

G4int G4HadronicWhiteBoard::theA
private

Definition at line 76 of file G4HadronicWhiteBoard.hh.

◆ theDef

const G4ParticleDefinition* G4HadronicWhiteBoard::theDef
private

Definition at line 68 of file G4HadronicWhiteBoard.hh.

◆ theE

G4double G4HadronicWhiteBoard::theE
private

Definition at line 70 of file G4HadronicWhiteBoard.hh.

◆ theInstance

G4ThreadLocal G4HadronicWhiteBoard * G4HadronicWhiteBoard::theInstance = 0
staticprivate

Definition at line 65 of file G4HadronicWhiteBoard.hh.

◆ theModelName

G4String G4HadronicWhiteBoard::theModelName
private

Definition at line 80 of file G4HadronicWhiteBoard.hh.

◆ theName

const char* G4HadronicWhiteBoard::theName
private

Definition at line 69 of file G4HadronicWhiteBoard.hh.

◆ theProcessName

G4String G4HadronicWhiteBoard::theProcessName
private

Definition at line 79 of file G4HadronicWhiteBoard.hh.

◆ theProjectile

const G4HadProjectile* G4HadronicWhiteBoard::theProjectile
private

Definition at line 67 of file G4HadronicWhiteBoard.hh.

◆ thePx

G4double G4HadronicWhiteBoard::thePx
private

Definition at line 71 of file G4HadronicWhiteBoard.hh.

◆ thePy

G4double G4HadronicWhiteBoard::thePy
private

Definition at line 72 of file G4HadronicWhiteBoard.hh.

◆ thePz

G4double G4HadronicWhiteBoard::thePz
private

Definition at line 73 of file G4HadronicWhiteBoard.hh.

◆ theTarget

G4Nucleus G4HadronicWhiteBoard::theTarget
private

Definition at line 75 of file G4HadronicWhiteBoard.hh.

◆ theZ

G4int G4HadronicWhiteBoard::theZ
private

Definition at line 77 of file G4HadronicWhiteBoard.hh.


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