-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
SimpleRunAction.h
38 lines (29 loc) · 983 Bytes
/
SimpleRunAction.h
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
#ifndef SIMPLERUNACTION_H
#define SIMPLERUNACTION_H
// File modified by Deepak Samuel on 25 Sep 2019
#include "G4RunManager.hh"
#include "G4Run.hh"
#include "G4UnitsTable.hh"
#include "G4SystemOfUnits.hh"
#include "g4root.hh"
//#include "g4csv.hh"
#include "G4UserRunAction.hh"
#include <QString>
#include "G4CsvAnalysisManager.hh"
class SimpleRunAction : public G4UserRunAction
{
public:
SimpleRunAction();
virtual ~SimpleRunAction();
virtual void BeginOfRunAction(const G4Run*);
virtual void EndOfRunAction(const G4Run*);
void SetOutputFile(QString file);
// void setRecordParameters(bool rec_pos=true, bool rec_time=true, bool rec_energy=true, bool rec_mom=true, bool rec_process=true);
G4RootAnalysisManager* rootanalysisManager;
G4CsvAnalysisManager* csvanalysisManager;
bool save_position, save_energy, save_momentum, save_time, save_process;
int pidFilter;
int run_id;
QString fileName;
};
#endif // SIMPLERUNACTION_H