Import Geant4 11.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2022-12-09 14:43:28 +01:00
parent c07cea1fe0
commit 9f34590941
3810 changed files with 200490 additions and 182326 deletions
@@ -92,7 +92,7 @@ void G4MCCIndexConversionTable::SetNewIndex(std::size_t index,
{
// set the index in the current production cut table
// for the indicated MCC in the file
if (index < vecNewIndex.size()) vecNewIndex[index] = new_value;
if (index < vecNewIndex.size()) vecNewIndex[index] = (G4int)new_value;
}
inline
@@ -91,7 +91,7 @@ class G4ProductionCuts
void SetProductionCuts(std::vector<G4double>&);
// Set the vector of production cuts in range for all particles
const std::vector<G4double>& GetProductionCuts() const;
const std::vector<G4double>& GetProductionCuts() const;
// Get the vector of production cuts in range for all particles
G4bool IsModified() const;
@@ -107,14 +107,7 @@ class G4ProductionCuts
protected:
std::vector<G4double> fRangeCuts;
G4bool isModified = true;
private:
static G4ThreadLocal G4ParticleDefinition* gammaDef;
static G4ThreadLocal G4ParticleDefinition* electDef;
static G4ThreadLocal G4ParticleDefinition* positDef;
static G4ThreadLocal G4ParticleDefinition* protonDef; // for proton
G4bool isModified = true;
};
#endif