G4-ExampleB0/include/RunAction.h
YiHui Liu de0caaaae0 fix: batch mode, scroing volume, GunAction headers;
change: message verbose, Accumulable in run, QGSP_BERT to QBBC;
2022-04-29 15:33:52 +08:00

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