Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
#include "G4UserEventAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Event;
|
||||
|
||||
namespace B4a
|
||||
{
|
||||
|
||||
@@ -50,34 +52,34 @@ class EventAction : public G4UserEventAction
|
||||
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;
|
||||
|
||||
void AddAbs(G4double de, G4double dl);
|
||||
void AddGap(G4double de, G4double dl);
|
||||
|
||||
private:
|
||||
G4double fEnergyAbs = 0.;
|
||||
G4double fEnergyGap = 0.;
|
||||
G4double fTrackLAbs = 0.;
|
||||
G4double fTrackLGap = 0.;
|
||||
G4double fEnergyAbs = 0.;
|
||||
G4double fEnergyGap = 0.;
|
||||
G4double fTrackLAbs = 0.;
|
||||
G4double fTrackLGap = 0.;
|
||||
};
|
||||
|
||||
// inline functions
|
||||
|
||||
inline void EventAction::AddAbs(G4double de, G4double dl) {
|
||||
inline void EventAction::AddAbs(G4double de, G4double dl)
|
||||
{
|
||||
fEnergyAbs += de;
|
||||
fTrackLAbs += dl;
|
||||
}
|
||||
|
||||
inline void EventAction::AddGap(G4double de, G4double dl) {
|
||||
inline void EventAction::AddGap(G4double de, G4double dl)
|
||||
{
|
||||
fEnergyGap += de;
|
||||
fTrackLGap += dl;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace B4a
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user