Import Geant4 11.4.1 source tree

This commit is contained in:
Gabriele Cosmo
2026-03-19 16:51:22 +01:00
parent b4a16de652
commit 41f2dd7996
352 changed files with 26342 additions and 24532 deletions
+3
View File
@@ -6,6 +6,9 @@ It must **not** be used as a substitute for writing good git commit messages!
-------------------------------------------------------------------------------
## 2026-02-19 Gabriele Cosmo (gMocren-V11-03-00)
- Fixed reported Coverity defect for unnecessary string copy in G4GMocrenIO.
## 2024-09-29 John Allison (gMocren-V11-02-02)
- More Coverity fixes
@@ -80,7 +80,7 @@ public:
T * getImage(int _z); // get image of each layer
void setCenterPosition(float _center[3]);
void getCenterPosition(float _center[3]);
void setName(std::string & _name);
void setName(const std::string & _name);
std::string getName();
};
@@ -373,7 +373,7 @@ public:
// get & get name of calculated dose distribution
std::string getDoseDistName(int _num = 0);
void setDoseDistName(std::string _name, int _num = 0);
void setDoseDistName(const std::string& _name, int _num = 0);
// copy dose distributions
void copyDoseDist(std::vector<class GMocrenDataPrimitive<double> > & _dose);
@@ -234,7 +234,7 @@ void GMocrenDataPrimitive<T>::getCenterPosition(float _center[3]) {
for(int i = 0; i < 3; i++) _center[i] = kCenter[i];
}
template <typename T>
void GMocrenDataPrimitive<T>::setName(std::string & _name) {
void GMocrenDataPrimitive<T>::setName(const std::string & _name) {
kDataName = _name;
}
template <typename T>
@@ -3659,7 +3659,7 @@ void G4GMocrenIO::getDoseDistCenterPosition(float _center[3], int _num) {
kDose[_num].getCenterPosition(_center);
}
// set & get name of dose distribution
void G4GMocrenIO::setDoseDistName(std::string _name, int _num) {
void G4GMocrenIO::setDoseDistName(const std::string& _name, int _num) {
kDose[_num].setName(_name);
}