-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunaction.hh
executable file
·43 lines (35 loc) · 1.13 KB
/
runaction.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef runaction_hh
#define runaction_hh
#include "G4UserRunAction.hh"
//#include "g4root.hh"
#include "G4AnalysisManager.hh"
#include "G4SystemOfUnits.hh"
#include "G4Run.hh"
#include "G4Accumulable.hh"
#include "G4AccumulableManager.hh"
#include "G4UnitsTable.hh"
#include "G4SystemOfUnits.hh"
#include "G4RunManager.hh"
#include "detectorconstruction.hh"
#include "G4UnitsTable.hh"
#include "globals.hh"
#include "G4UserRunAction.hh"
//#include "G4UnitDefinition.hh"
class runaction : public G4UserRunAction{
public:
runaction();
~runaction();
// create the functions to manage Run Action class
virtual void BeginOfRunAction(const G4Run*);
virtual void EndOfRunAction(const G4Run*);
void AddEventEdep1 (G4double edep) {fEvEdep1+=edep;};
void AddEventEdep2 (G4double edep) {fEvEdep2+=edep;};
void AddEventEdep3 (G4double edep) {fEvEdep3+=edep;};
void AddEventEdep4 (G4double edep) {fEvEdep4+=edep;};
private:
G4Accumulable<G4double> fEvEdep1 = 0.;
G4Accumulable<G4double> fEvEdep2 = 0.;
G4Accumulable<G4double> fEvEdep3 = 0.;
G4Accumulable<G4double> fEvEdep4 = 0.;
};
#endif