Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -31,10 +31,11 @@
|
||||
#define EventAction_h 1
|
||||
|
||||
#include "G4UserEventAction.hh"
|
||||
|
||||
#include "G4THitsMap.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Event;
|
||||
template <typename T> class G4THitsMap;
|
||||
|
||||
namespace B4d
|
||||
{
|
||||
|
||||
@@ -46,29 +47,28 @@ namespace B4d
|
||||
|
||||
class EventAction : public G4UserEventAction
|
||||
{
|
||||
public:
|
||||
EventAction() = default;
|
||||
~EventAction() override = default;
|
||||
public:
|
||||
EventAction() = default;
|
||||
~EventAction() override = default;
|
||||
|
||||
void BeginOfEventAction(const G4Event* event) override;
|
||||
void EndOfEventAction(const G4Event* event) override;
|
||||
void BeginOfEventAction(const G4Event* event) override;
|
||||
void EndOfEventAction(const G4Event* event) override;
|
||||
|
||||
private:
|
||||
// methods
|
||||
G4THitsMap<G4double>* GetHitsCollection(G4int hcID,
|
||||
const G4Event* event) const;
|
||||
G4double GetSum(G4THitsMap<G4double>* hitsMap) const;
|
||||
void PrintEventStatistics(G4double absoEdep, G4double absoTrackLength,
|
||||
G4double gapEdep, G4double gapTrackLength) const;
|
||||
private:
|
||||
// methods
|
||||
G4THitsMap<G4double>* GetHitsCollection(G4int hcID, const G4Event* event) const;
|
||||
G4double GetSum(G4THitsMap<G4double>* hitsMap) const;
|
||||
void PrintEventStatistics(G4double absoEdep, G4double absoTrackLength, G4double gapEdep,
|
||||
G4double gapTrackLength) const;
|
||||
|
||||
// data members
|
||||
G4int fAbsoEdepHCID = -1;
|
||||
G4int fGapEdepHCID = -1;
|
||||
G4int fAbsoTrackLengthHCID = -1;
|
||||
G4int fGapTrackLengthHCID = -1;
|
||||
// data members
|
||||
G4int fAbsoEdepHCID = -1;
|
||||
G4int fGapEdepHCID = -1;
|
||||
G4int fAbsoTrackLengthHCID = -1;
|
||||
G4int fGapTrackLengthHCID = -1;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace B4d
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
Reference in New Issue
Block a user