ATLAS Offline Software
Loading...
Searching...
No Matches
FluxRecorder.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef G4UserActions_FluxRecorder_H
6#define G4UserActions_FluxRecorder_H
7
8
9
10#include "G4UserRunAction.hh"
11#include "G4UserEventAction.hh"
12#include "G4UserSteppingAction.hh"
13
14#include <vector>
15
16// Forward declarations
17class TH1D;
18
19namespace G4UA
20{
21
22 class FluxRecorder : public G4UserRunAction,
23 public G4UserEventAction,
24 public G4UserSteppingAction
25 {
26
27 public:
29 virtual void BeginOfRunAction(const G4Run*) override;
30 virtual void EndOfRunAction(const G4Run*) override;
31 virtual void EndOfEventAction(const G4Event*) override;
32 virtual void UserSteppingAction(const G4Step*) override;
33 private:
38 TH1D * m_flux[lastVol][9][2] = {};
39 TH1D * m_fluxE[lastVol][9] = {};
40
41 double m_nev;
42 std::vector<int> m_list;
43 void findVolume( const double, const double, const double, const double );
44
45 }; // class FluxRecorder
46
47
48} // namespace G4UA
49
50#endif
virtual void BeginOfRunAction(const G4Run *) override
TH1D * m_flux[lastVol][9][2]
TH1D * m_fluxE[lastVol][9]
virtual void UserSteppingAction(const G4Step *) override
virtual void EndOfRunAction(const G4Run *) override
virtual void EndOfEventAction(const G4Event *) override
void findVolume(const double, const double, const double, const double)
std::vector< int > m_list