29#ifndef B1_EventAction_hh
30#define B1_EventAction_hh
32#include <G4UserEventAction.hh>
49 void AddEdep(G4double edep) { fEdep += edep; }
Collects total energy deposited in shape2 per event.
void EndOfEventAction(const G4Event *event) override
void AddEdep(G4double edep)
Accumulate edep for the current event.
~EventAction() override=default
void BeginOfEventAction(const G4Event *event) override
Accumulates total energy deposited in shape2 across the run.