Geant4  10.02.p03
XCrystalIntegratedDensityHub Class Reference

#include <XCrystalIntegratedDensityHub.hh>

Collaboration diagram for XCrystalIntegratedDensityHub:

Public Member Functions

void SetDensityElectron (XVCrystalCharacteristic *)
 
XVCrystalCharacteristicGetDensityElectron ()
 
void SetDensityNuclei (XVCrystalCharacteristic *)
 
XVCrystalCharacteristicGetDensityNuclei ()
 
void SetPotential (XVCrystalCharacteristic *)
 
XVCrystalCharacteristicGetPotential ()
 
void SetXPhysicalLattice (XPhysicalLattice *)
 
XPhysicalLatticeGetXPhysicalLattice ()
 
void SetIntegratedDensityNuclei (XVCrystalIntegratedDensity *, G4int)
 
XVCrystalIntegratedDensityGetIntegratedDensityNuclei (G4int)
 
void SetIntegratedDensityElectron (XVCrystalIntegratedDensity *, G4int)
 
XVCrystalIntegratedDensityGetIntegratedDensityElectron (G4int)
 
void PrintOnFiles (const G4String &)
 
void ReadFromFiles (const G4String &)
 
G4bool HasBeenInitialized (XPhysicalLattice *)
 
G4double GetIntegratedDensityElectron (G4double, XPhysicalLattice *, G4int)
 
G4double GetIntegratedDensityNuclei (G4double, XPhysicalLattice *, G4int)
 
void InitializeTables ()
 
 XCrystalIntegratedDensityHub ()
 
 ~XCrystalIntegratedDensityHub ()
 

Private Attributes

XPhysicalLatticefLattice
 
XVCrystalCharacteristicfDensityElectron
 
XVCrystalCharacteristicfDensityNuclei
 
XVCrystalCharacteristicfPotential
 
XVCrystalIntegratedDensityfIntDensElectronPositive
 
XVCrystalIntegratedDensityfIntDensNucleiPositive
 
XVCrystalIntegratedDensityfIntDensElectronNegative
 
XVCrystalIntegratedDensityfIntDensNucleiNegative
 

Detailed Description

Definition at line 35 of file XCrystalIntegratedDensityHub.hh.

Constructor & Destructor Documentation

◆ XCrystalIntegratedDensityHub()

XCrystalIntegratedDensityHub::XCrystalIntegratedDensityHub ( )

Definition at line 29 of file XCrystalIntegratedDensityHub.cc.

29  {
30 }

◆ ~XCrystalIntegratedDensityHub()

XCrystalIntegratedDensityHub::~XCrystalIntegratedDensityHub ( )

Definition at line 34 of file XCrystalIntegratedDensityHub.cc.

34  {
35 }

Member Function Documentation

◆ GetDensityElectron()

XVCrystalCharacteristic * XCrystalIntegratedDensityHub::GetDensityElectron ( )

Definition at line 59 of file XCrystalIntegratedDensityHub.cc.

59  {
60  return fDensityElectron;
61 }
XVCrystalCharacteristic * fDensityElectron

◆ GetDensityNuclei()

XVCrystalCharacteristic * XCrystalIntegratedDensityHub::GetDensityNuclei ( )

Definition at line 72 of file XCrystalIntegratedDensityHub.cc.

72  {
73  return fDensityNuclei;
74 }
XVCrystalCharacteristic * fDensityNuclei

◆ GetIntegratedDensityElectron() [1/2]

XVCrystalIntegratedDensity * XCrystalIntegratedDensityHub::GetIntegratedDensityElectron ( G4int  vParticleCharge)

Definition at line 147 of file XCrystalIntegratedDensityHub.cc.

147  {
148  if(vParticleCharge < 0.){
150  }
151  else if(vParticleCharge > 0.){
153  }
154  else{
155  G4cout << "XCrystalIntegratedDensityHub:: ERROR - Charge == 0" ;
156  G4cout << G4endl;
157  return NULL;
158  }
159 }
XVCrystalIntegratedDensity * fIntDensElectronNegative
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
XVCrystalIntegratedDensity * fIntDensElectronPositive
Here is the caller graph for this function:

◆ GetIntegratedDensityElectron() [2/2]

G4double XCrystalIntegratedDensityHub::GetIntegratedDensityElectron ( G4double  vPotential,
XPhysicalLattice vLattice,
G4int  vParticleCharge 
)

Definition at line 226 of file XCrystalIntegratedDensityHub.cc.

228  {
229  if(vParticleCharge < 0.){
231  vLattice,
232  vParticleCharge);
233  }
234  else if(vParticleCharge > 0.){
236  vLattice,
237  vParticleCharge);
238  }
239  else{
240  G4cout << "XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
241  G4cout << G4endl;
242  return -1;
243  }
244 }
XVCrystalIntegratedDensity * fIntDensElectronNegative
G4double GetIntegratedDensity(G4double, XPhysicalLattice *, G4int)
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
XVCrystalIntegratedDensity * fIntDensElectronPositive
Here is the call graph for this function:

◆ GetIntegratedDensityNuclei() [1/2]

XVCrystalIntegratedDensity * XCrystalIntegratedDensityHub::GetIntegratedDensityNuclei ( G4int  vParticleCharge)

Definition at line 112 of file XCrystalIntegratedDensityHub.cc.

112  {
113  if(vParticleCharge < 0.){
114  return fIntDensNucleiNegative;
115  }
116  else if(vParticleCharge > 0.){
117  return fIntDensNucleiPositive;
118  }
119  else{
120  G4cout << "XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
121  G4cout << G4endl;
122  return NULL;
123  }
124 }
XVCrystalIntegratedDensity * fIntDensNucleiNegative
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
XVCrystalIntegratedDensity * fIntDensNucleiPositive
Here is the caller graph for this function:

◆ GetIntegratedDensityNuclei() [2/2]

G4double XCrystalIntegratedDensityHub::GetIntegratedDensityNuclei ( G4double  vPotential,
XPhysicalLattice vLattice,
G4int  vParticleCharge 
)

Definition at line 203 of file XCrystalIntegratedDensityHub.cc.

205  {
206  if(vParticleCharge < 0.){
207  return fIntDensNucleiNegative->GetIntegratedDensity(vPotential,
208  vLattice,
209  vParticleCharge);
210  }
211  else if(vParticleCharge > 0.){
212  return fIntDensNucleiPositive->GetIntegratedDensity(vPotential,
213  vLattice,
214  vParticleCharge);
215  }
216  else{
217  G4cout << "XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
218  G4cout << G4endl;
219  return -1;
220  }
221 }
XVCrystalIntegratedDensity * fIntDensNucleiNegative
G4double GetIntegratedDensity(G4double, XPhysicalLattice *, G4int)
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
XVCrystalIntegratedDensity * fIntDensNucleiPositive
Here is the call graph for this function:

◆ GetPotential()

XVCrystalCharacteristic * XCrystalIntegratedDensityHub::GetPotential ( )

Definition at line 46 of file XCrystalIntegratedDensityHub.cc.

46  {
47  return fPotential;
48 }

◆ GetXPhysicalLattice()

XPhysicalLattice * XCrystalIntegratedDensityHub::GetXPhysicalLattice ( )

Definition at line 88 of file XCrystalIntegratedDensityHub.cc.

88  {
89  return fLattice;
90 }
Here is the caller graph for this function:

◆ HasBeenInitialized()

G4bool XCrystalIntegratedDensityHub::HasBeenInitialized ( XPhysicalLattice vLattice)

Definition at line 163 of file XCrystalIntegratedDensityHub.cc.

164  {
165  //now it checks only of the table is initialized,
166  //it does not check if the particular crystal is initialized.
167  //To be changed in the future!
168  if(vLattice != GetXPhysicalLattice()) return false;
169  else return true;
170 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitializeTables()

void XCrystalIntegratedDensityHub::InitializeTables ( )

Definition at line 174 of file XCrystalIntegratedDensityHub.cc.

174  {
180 
186 
192 
198 }
XVCrystalIntegratedDensity * fIntDensElectronNegative
XVCrystalCharacteristic * fDensityNuclei
XVCrystalCharacteristic * fDensityElectron
XVCrystalIntegratedDensity * fIntDensNucleiNegative
void SetXPhysicalLattice(XPhysicalLattice *)
void SetDensity(XVCrystalCharacteristic *)
void SetPotential(XVCrystalCharacteristic *)
XVCrystalIntegratedDensity * fIntDensNucleiPositive
XVCrystalIntegratedDensity * fIntDensElectronPositive
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintOnFiles()

void XCrystalIntegratedDensityHub::PrintOnFiles ( const G4String vFileName)

Definition at line 248 of file XCrystalIntegratedDensityHub.cc.

248  {
249  std::string filename;
250  fIntDensElectronNegative->PrintOnFile(filename=vFileName + "_neg_eld.txt");
251  fIntDensElectronPositive->PrintOnFile(filename=vFileName + "_pos_eld.txt");
252 
253  fIntDensNucleiNegative->PrintOnFile(filename=vFileName + "_neg_nud.txt");
254  fIntDensNucleiPositive->PrintOnFile(filename=vFileName + "_pos_nud.txt");
255 }
XVCrystalIntegratedDensity * fIntDensElectronNegative
XVCrystalIntegratedDensity * fIntDensNucleiNegative
XVCrystalIntegratedDensity * fIntDensNucleiPositive
XVCrystalIntegratedDensity * fIntDensElectronPositive
Here is the call graph for this function:

◆ ReadFromFiles()

void XCrystalIntegratedDensityHub::ReadFromFiles ( const G4String vFileName)

Definition at line 259 of file XCrystalIntegratedDensityHub.cc.

259  {
260  std::string filename;
261  fIntDensElectronNegative->ReadFromFile(filename=vFileName + "_neg_eld.txt");
262  fIntDensElectronPositive->ReadFromFile(filename=vFileName + "_pos_eld.txt");
263 
264  fIntDensNucleiNegative->ReadFromFile(filename=vFileName + "_neg_nud.txt");
265  fIntDensNucleiPositive->ReadFromFile(filename=vFileName + "_pos_nud.txt");
266 }
XVCrystalIntegratedDensity * fIntDensElectronNegative
XVCrystalIntegratedDensity * fIntDensNucleiNegative
XVCrystalIntegratedDensity * fIntDensNucleiPositive
XVCrystalIntegratedDensity * fIntDensElectronPositive
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetDensityElectron()

void XCrystalIntegratedDensityHub::SetDensityElectron ( XVCrystalCharacteristic vDensity)

Definition at line 52 of file XCrystalIntegratedDensityHub.cc.

53  {
54  fDensityElectron = vDensity;
55 }
XVCrystalCharacteristic * fDensityElectron
Here is the caller graph for this function:

◆ SetDensityNuclei()

void XCrystalIntegratedDensityHub::SetDensityNuclei ( XVCrystalCharacteristic vDensity)

Definition at line 65 of file XCrystalIntegratedDensityHub.cc.

66  {
67  fDensityNuclei = vDensity;
68 }
XVCrystalCharacteristic * fDensityNuclei
Here is the caller graph for this function:

◆ SetIntegratedDensityElectron()

void XCrystalIntegratedDensityHub::SetIntegratedDensityElectron ( XVCrystalIntegratedDensity vDensity,
G4int  vParticleCharge 
)

Definition at line 128 of file XCrystalIntegratedDensityHub.cc.

130  {
131  if(vParticleCharge < 0){
132  fIntDensElectronNegative = vDensity;
133  }
134  else if(vParticleCharge > 0){
135  fIntDensElectronPositive = vDensity;
136  }
137  else{
138  G4cout << "XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
139  G4cout << G4endl;
140  }
141 }
XVCrystalIntegratedDensity * fIntDensElectronNegative
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
XVCrystalIntegratedDensity * fIntDensElectronPositive
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetIntegratedDensityNuclei()

void XCrystalIntegratedDensityHub::SetIntegratedDensityNuclei ( XVCrystalIntegratedDensity vDensity,
G4int  vParticleCharge 
)

Definition at line 94 of file XCrystalIntegratedDensityHub.cc.

96  {
97  if(vParticleCharge < 0){
98  fIntDensNucleiNegative = vDensity;
99  }
100  else if(vParticleCharge > 0){
101  fIntDensNucleiPositive = vDensity;
102  }
103  else{
104  G4cout << "XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
105  G4cout << G4endl;
106  }
107 }
XVCrystalIntegratedDensity * fIntDensNucleiNegative
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
XVCrystalIntegratedDensity * fIntDensNucleiPositive
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetPotential()

void XCrystalIntegratedDensityHub::SetPotential ( XVCrystalCharacteristic vPotential)

Definition at line 39 of file XCrystalIntegratedDensityHub.cc.

40  {
41  fPotential = vPotential;
42 }
Here is the caller graph for this function:

◆ SetXPhysicalLattice()

void XCrystalIntegratedDensityHub::SetXPhysicalLattice ( XPhysicalLattice vLattice)

Definition at line 78 of file XCrystalIntegratedDensityHub.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fDensityElectron

XVCrystalCharacteristic* XCrystalIntegratedDensityHub::fDensityElectron
private

Definition at line 68 of file XCrystalIntegratedDensityHub.hh.

◆ fDensityNuclei

XVCrystalCharacteristic* XCrystalIntegratedDensityHub::fDensityNuclei
private

Definition at line 69 of file XCrystalIntegratedDensityHub.hh.

◆ fIntDensElectronNegative

XVCrystalIntegratedDensity* XCrystalIntegratedDensityHub::fIntDensElectronNegative
private

Definition at line 75 of file XCrystalIntegratedDensityHub.hh.

◆ fIntDensElectronPositive

XVCrystalIntegratedDensity* XCrystalIntegratedDensityHub::fIntDensElectronPositive
private

Definition at line 72 of file XCrystalIntegratedDensityHub.hh.

◆ fIntDensNucleiNegative

XVCrystalIntegratedDensity* XCrystalIntegratedDensityHub::fIntDensNucleiNegative
private

Definition at line 76 of file XCrystalIntegratedDensityHub.hh.

◆ fIntDensNucleiPositive

XVCrystalIntegratedDensity* XCrystalIntegratedDensityHub::fIntDensNucleiPositive
private

Definition at line 73 of file XCrystalIntegratedDensityHub.hh.

◆ fLattice

XPhysicalLattice* XCrystalIntegratedDensityHub::fLattice
private

Definition at line 67 of file XCrystalIntegratedDensityHub.hh.

◆ fPotential

XVCrystalCharacteristic* XCrystalIntegratedDensityHub::fPotential
private

Definition at line 70 of file XCrystalIntegratedDensityHub.hh.


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