Import Geant4 11.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2023-12-08 10:43:34 +01:00
parent dd1f179cda
commit 860a2b92bf
3962 changed files with 139318 additions and 164259 deletions
@@ -56,41 +56,27 @@ class EventAction : public G4UserEventAction
public: // Without description
EventAction();
virtual ~EventAction();
~EventAction() override;
virtual void BeginOfEventAction(const G4Event*);
virtual void EndOfEventAction(const G4Event*);
void BeginOfEventAction(const G4Event*) override;
void EndOfEventAction(const G4Event*) override;
inline void SetPrintModulo(G4int val);
inline void AddEventToDebug(G4int val);
void SetPrintModulo(G4int val) { fPrintModulo = val; };
void AddEventToDebug(G4int val){ fSelectedEvents.push_back(val); };
EventAction & operator=(const EventAction &right) = delete;
EventAction(const EventAction&) = delete;
private:
EventAction & operator=(const EventAction &right);
EventAction(const EventAction&);
EventActionMessenger* fEventMessenger;
G4UImanager* fUI;
std::vector<G4int> fSelectedEvents;
G4int fPrintModulo;
G4int fSelected;
G4bool fDebugStarted;
G4UImanager* fUI;
std::vector<G4int> fSelectedEvents;
G4int fPrintModulo{100};
G4bool fDebugStarted{false};
};
inline void EventAction::SetPrintModulo(G4int val)
{
fPrintModulo = val;
}
inline void EventAction::AddEventToDebug(G4int val)
{
fSelectedEvents.push_back(val);
++fSelected;
}
#endif