26 lines
470 B
C++
26 lines
470 B
C++
#ifndef B0RunAction_h
|
|
#define B0RunAction_h
|
|
|
|
#include "G4Accumulable.hh"
|
|
#include "G4UserRunAction.hh"
|
|
#include "globals.hh"
|
|
|
|
class G4Run;
|
|
|
|
class RunAction : public G4UserRunAction {
|
|
public:
|
|
RunAction();
|
|
~RunAction() override;
|
|
|
|
void BeginOfRunAction(const G4Run*) override;
|
|
void EndOfRunAction(const G4Run*) override;
|
|
|
|
void AddEdep(G4double edep);
|
|
|
|
private:
|
|
G4Accumulable<G4double> fEdep = 0.;
|
|
G4Accumulable<G4double> fEdep2 = 0.;
|
|
};
|
|
|
|
#endif
|