Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user