Import Geant4 11.3.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2024-06-28 13:08:51 +02:00
parent f7b23877ed
commit e58e650b32
5232 changed files with 239416 additions and 244360 deletions
@@ -33,32 +33,32 @@
#ifndef EventAction_h
#define EventAction_h 1
#include "DetectorConstruction.hh"
#include "G4UserEventAction.hh"
#include "globals.hh"
#include "DetectorConstruction.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class EventAction : public G4UserEventAction
{
public:
EventAction(DetectorConstruction*);
public:
EventAction(DetectorConstruction*);
void BeginOfEventAction(const G4Event*) override;
void EndOfEventAction(const G4Event*) override;
void BeginOfEventAction(const G4Event*) override;
void EndOfEventAction(const G4Event*) override;
void SumEnergy(G4int k, G4double de, G4double dl)
{
fEnergyDeposit[k] += de;
fTrackLengthCh[k] += dl;
};
void SumEnergy(G4int k, G4double de, G4double dl)
{
fEnergyDeposit[k] += de;
fTrackLengthCh[k] += dl;
};
private:
DetectorConstruction* fDetector;
private:
DetectorConstruction* fDetector;
G4double fEnergyDeposit[kMaxAbsor];
G4double fTrackLengthCh[kMaxAbsor];
G4double fEnergyDeposit[kMaxAbsor];
G4double fTrackLengthCh[kMaxAbsor];
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......