Import Geant4 11.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2024-12-06 11:11:40 +01:00
parent e58e650b32
commit 32390e802b
1984 changed files with 98713 additions and 83996 deletions
@@ -51,10 +51,12 @@ class EventAction : public G4UserEventAction
inline void AddEdep(G4double Edep) { fTotalEnergyDeposit += Edep; };
inline void AddNIEL(G4double Edep) { fNIEL += Edep; };
inline G4double GetEnergyDeposit() { return fTotalEnergyDeposit; };
inline void AddEleak(G4double eleak) {fEnergyLeak += eleak;};
private:
G4double fTotalEnergyDeposit = 0.;
G4double fNIEL = 0.;
G4double fEnergyLeak = 0.;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -58,6 +58,7 @@ class Run : public G4Run
void CountProcesses(const G4String& procName);
void AddEdep(G4double val) { fEdep += val; }
void AddEleak(G4double val){ fEleak += val;}
void AddNIEL(G4double val) { fNIEL += val; }
void AddTrueRange(G4double l)
{
@@ -85,7 +86,7 @@ class Run : public G4Run
G4int fNbOfTraks0 = 0, fNbOfTraks1 = 0;
G4int fNbOfSteps0 = 0, fNbOfSteps1 = 0;
G4double fEdep = 0., fNIEL = 0.;
G4double fEdep = 0., fEleak = 0., fNIEL = 0.;
G4double fTrueRange = 0., fTrueRange2 = 0.;
G4double fProjRange = 0., fProjRange2 = 0.;
G4double fTransvDev = 0., fTransvDev2 = 0.;
@@ -36,13 +36,14 @@
#include "G4UserTrackingAction.hh"
class PrimaryGeneratorAction;
class EventAction;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class TrackingAction : public G4UserTrackingAction
{
public:
TrackingAction(PrimaryGeneratorAction*);
TrackingAction(PrimaryGeneratorAction*, EventAction*);
~TrackingAction() override = default;
void PreUserTrackingAction(const G4Track*) override;
@@ -50,6 +51,7 @@ class TrackingAction : public G4UserTrackingAction
private:
PrimaryGeneratorAction* fPrimary = nullptr;
EventAction* fEventAction = nullptr;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......