44 fPotential = vPotential;
57 fDensityElectron = vDensity;
63 return fDensityElectron;
70 fDensityNuclei = vDensity;
76 return fDensityNuclei;
99 G4int vParticleCharge){
100 if(vParticleCharge < 0){
101 fIntDensNucleiNegative = vDensity;
103 else if(vParticleCharge > 0){
104 fIntDensNucleiPositive = vDensity;
107 G4cout <<
"XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
116 if(vParticleCharge < 0.){
117 return fIntDensNucleiNegative;
119 else if(vParticleCharge > 0.){
120 return fIntDensNucleiPositive;
123 G4cout <<
"XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
133 G4int vParticleCharge){
134 if(vParticleCharge < 0){
135 fIntDensElectronNegative = vDensity;
137 else if(vParticleCharge > 0){
138 fIntDensElectronPositive = vDensity;
141 G4cout <<
"XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
151 if(vParticleCharge < 0.){
152 return fIntDensElectronNegative;
154 else if(vParticleCharge > 0.){
155 return fIntDensElectronPositive;
158 G4cout <<
"XCrystalIntegratedDensityHub:: ERROR - Charge == 0" ;
179 fIntDensElectronNegative->
SetDensity(fDensityElectron);
185 fIntDensElectronPositive->
SetDensity(fDensityElectron);
191 fIntDensNucleiNegative->
SetDensity(fDensityNuclei);
197 fIntDensNucleiPositive->
SetDensity(fDensityNuclei);
208 G4int vParticleCharge){
209 if(vParticleCharge < 0.){
214 else if(vParticleCharge > 0.){
220 G4cout <<
"XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
231 G4int vParticleCharge){
232 if(vParticleCharge < 0.){
237 else if(vParticleCharge > 0.){
243 G4cout <<
"XCrystalIntegratedDensityHub:: ERROR - Charge == 0";
252 std::string filename;
253 fIntDensElectronNegative->
PrintOnFile(filename=vFileName +
"_neg_eld.txt");
254 fIntDensElectronPositive->
PrintOnFile(filename=vFileName +
"_pos_eld.txt");
256 fIntDensNucleiNegative->
PrintOnFile(filename=vFileName +
"_neg_nud.txt");
257 fIntDensNucleiPositive->
PrintOnFile(filename=vFileName +
"_pos_nud.txt");
263 std::string filename;
264 fIntDensElectronNegative->
ReadFromFile(filename=vFileName +
"_neg_eld.txt");
265 fIntDensElectronPositive->
ReadFromFile(filename=vFileName +
"_pos_eld.txt");
267 fIntDensNucleiNegative->
ReadFromFile(filename=vFileName +
"_neg_nud.txt");
268 fIntDensNucleiPositive->
ReadFromFile(filename=vFileName +
"_pos_nud.txt");
virtual void InitializeTable()
void ReadFromFile(const G4String &)
void PrintOnFiles(const G4String &)
void SetDensityElectron(XVCrystalCharacteristic *)
G4double GetIntegratedDensity(G4double, XPhysicalLattice *, G4int)
~XCrystalIntegratedDensityHub()
XVCrystalIntegratedDensity * GetIntegratedDensityNuclei(G4int)
XVCrystalIntegratedDensity * GetIntegratedDensityElectron(G4int)
G4bool HasBeenInitialized(XPhysicalLattice *)
void SetXPhysicalLattice(XPhysicalLattice *)
G4GLOB_DLL std::ostream G4cout
void PrintOnFile(const G4String &)
XCrystalIntegratedDensityHub()
void SetDensityNuclei(XVCrystalCharacteristic *)
XVCrystalCharacteristic * GetDensityNuclei()
void SetPotential(XVCrystalCharacteristic *)
void SetIntegratedDensityNuclei(XVCrystalIntegratedDensity *, G4int)
XPhysicalLattice * GetXPhysicalLattice()
void SetXPhysicalLattice(XPhysicalLattice *)
void SetDensity(XVCrystalCharacteristic *)
XVCrystalCharacteristic * GetPotential()
void InitializePhysicalLattice(XPhysicalLattice *)
void SetPotential(XVCrystalCharacteristic *)
XVCrystalCharacteristic * GetDensityElectron()
void ReadFromFiles(const G4String &)
void SetIntegratedDensityElectron(XVCrystalIntegratedDensity *, G4int)
void SetParticleCharge(G4int)
Definition of the XCrystalIntegratedDensityHub class.