Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -6,6 +6,13 @@ It must **not** be used as a substitute for writing good git commit messages!
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
##2024-09-03 Dmitri Konstantinov (xrays-V11-02-04)
|
||||
- G4VTRModel: Added empty implementation {} to GenerateSecondaries method
|
||||
to resolve linker error encountered when compiling against Geant4 with clang
|
||||
|
||||
## 2024-07-18 Vladimir Ivanchenko (xrays-V11-02-03)
|
||||
- G4VXTRenergyLoss - fixed Coverity warning
|
||||
|
||||
## 2024-05-16 Vladimir Grichine (xrays-V11-02-02)
|
||||
- G4XTRGaussRadModel.hh/.cc class was added with improved account
|
||||
on the origin of theXTR photon
|
||||
|
||||
@@ -54,12 +54,12 @@ class G4VTRModel
|
||||
|
||||
const G4String& GetName() const { return fName; };
|
||||
|
||||
virtual void GenerateSecondaries(G4VParticleChange& pChange,
|
||||
std::vector<const G4Material*>& materials,
|
||||
std::vector<G4double>& steps,
|
||||
std::vector<G4ThreeVector>& normals,
|
||||
G4ThreeVector& startingPosition,
|
||||
const G4Track& track);
|
||||
virtual void GenerateSecondaries( G4VParticleChange& /* pChange */,
|
||||
std::vector<const G4Material*>& /* materials */,
|
||||
std::vector<G4double>& /* steps */,
|
||||
std::vector<G4ThreeVector>& /* normals */,
|
||||
G4ThreeVector& /* startingPosition */,
|
||||
const G4Track& /* track */ ) {};
|
||||
|
||||
// disable assignment operator & copy constructor
|
||||
G4VTRModel& operator=(const G4VTRModel& right) = delete;
|
||||
|
||||
@@ -1205,19 +1205,18 @@ G4double G4VXTRenergyLoss::GetPlateCompton(G4double omega)
|
||||
// Computes Compton cross section for gas material in 1/mm
|
||||
G4double G4VXTRenergyLoss::GetGasCompton(G4double omega)
|
||||
{
|
||||
G4int i, numberOfElements;
|
||||
G4double xSection = 0., nowZ, sumZ = 0.;
|
||||
G4double xSection = 0., sumZ = 0.;
|
||||
|
||||
const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
|
||||
numberOfElements = (G4int)(*theMaterialTable)[fMatIndex2]->GetNumberOfElements();
|
||||
G4int numberOfElements = (G4int)(*theMaterialTable)[fMatIndex2]->GetNumberOfElements();
|
||||
|
||||
for(i = 0; i < numberOfElements; ++i)
|
||||
for (G4int i = 0; i < numberOfElements; ++i)
|
||||
{
|
||||
nowZ = (*theMaterialTable)[fMatIndex2]->GetElement(i)->GetZ();
|
||||
G4double nowZ = (*theMaterialTable)[fMatIndex2]->GetElement(i)->GetZ();
|
||||
sumZ += nowZ;
|
||||
xSection += GetComptonPerAtom(omega, nowZ);
|
||||
}
|
||||
xSection /= sumZ;
|
||||
if (sumZ > 0.0) { xSection /= sumZ; }
|
||||
xSection *= (*theMaterialTable)[fMatIndex2]->GetElectronDensity();
|
||||
return xSection;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user