Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -4,6 +4,12 @@ See `CONTRIBUTING.rst` for details of **required** info/format for each entry,
|
||||
which **must** added in reverse chronological order (newest at the top). It must **not**
|
||||
be used as a substitute for writing good git commit messages!
|
||||
|
||||
## 2023-05-08 Alberto Ribon (exhadrParticleFluenceSphere-V11-01-00)
|
||||
- Run, TrackingAction : replaced G4int with G4long for keeping the information
|
||||
on the multiplicity of particle production.
|
||||
(This avoids rare cases of negative multiplicities due to integer overflow,
|
||||
seen for runs with at least 4000 events, in particular with heavy materials,
|
||||
such as Tungsten and Lead.)
|
||||
|
||||
## 2022-09-07 Alberto Ribon (exhadrParticleFluenceSphere-V11-00-02)
|
||||
- Added complementary information on particle production (multiplicity,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -94,9 +94,9 @@ class Run : public G4Run {
|
||||
// Accessor methods useful to transfer information collected by the stepping-action
|
||||
// into this Run class
|
||||
|
||||
void SetTrackingArray1( const std::array< G4int,
|
||||
void SetTrackingArray1( const std::array< G4long,
|
||||
TrackingAction::fkNumberCombinations >& inputArray );
|
||||
std::array< G4int, TrackingAction::fkNumberCombinations > GetTrackingArray1() const
|
||||
std::array< G4long, TrackingAction::fkNumberCombinations > GetTrackingArray1() const
|
||||
{ return fTrackingArray1; }
|
||||
void SetTrackingArray2( const std::array< G4double,
|
||||
TrackingAction::fkNumberCombinations >& inputArray );
|
||||
@@ -113,7 +113,7 @@ class Run : public G4Run {
|
||||
G4String fTargetMaterialName;
|
||||
G4double fCubicVolumeScoringShell;
|
||||
std::array< G4double, SteppingAction::fkNumberCombinations > fSteppingArray;
|
||||
std::array< G4int, TrackingAction::fkNumberCombinations > fTrackingArray1;
|
||||
std::array< G4long, TrackingAction::fkNumberCombinations > fTrackingArray1;
|
||||
std::array< G4double, TrackingAction::fkNumberCombinations > fTrackingArray2;
|
||||
};
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ class TrackingAction : public G4UserTrackingAction {
|
||||
private:
|
||||
Run* fRunPtr; // Pointer to the Run object
|
||||
|
||||
std::array< G4int, fkNumberCombinations > fArrayMultiplicities;
|
||||
std::array< G4long, fkNumberCombinations > fArrayMultiplicities;
|
||||
std::array< G4double, fkNumberCombinations > fArraySumKineticEnergies;
|
||||
// Keep record of the number of particles and their kinetic energy at production,
|
||||
// according to the particle type and their kinetic energy range (below/above 20 MeV).
|
||||
|
||||
@@ -153,7 +153,7 @@ void Run::SetSteppingArray( const std::array< G4double,
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void Run::SetTrackingArray1( const std::array< G4int,
|
||||
void Run::SetTrackingArray1( const std::array< G4long,
|
||||
TrackingAction::fkNumberCombinations >& inputArray ) {
|
||||
for ( G4int i = 0; i < TrackingAction::fkNumberCombinations; ++i ) {
|
||||
fTrackingArray1[i] = inputArray[i];
|
||||
|
||||
Reference in New Issue
Block a user