ATLAS Offline Software
Simulation
G4Utilities
G4UserActions
src
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
17
class
TH1D;
18
19
namespace
G4UA
20
{
21
22
class
FluxRecorder
:
public
G4UserRunAction,
23
public
G4UserEventAction,
24
public
G4UserSteppingAction
25
{
26
27
public
:
28
FluxRecorder
();
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
:
34
enum
scoringVolume
{
RPCOlz
,
RPCOmz
,
RPCOhz
,
RPCMlz
,
RPCMmz
,
RPCMhz
,
MDTIlz
,
MDTImz
,
MDTIhz
,
35
LMDTo
,
LMDTm
,
LMDTi
,
BMDTo
,
BMDTm
,
BMDTi
,
SWo
,
SWm
,
SWi
,
SWc
,
SWt
,
36
bflz
,
bfhz
,
bslz
,
bshz
,
btlz
,
bthz
,
ffle
,
ffme
,
ffhe
,
fsle
,
fsme
,
fshe
,
ftle
,
ftme
,
fthe
,
37
CY1
,
CY2
,
lastVol
};
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
G4UA::FluxRecorder::RPCMlz
@ RPCMlz
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder::CY2
@ CY2
Definition:
FluxRecorder.h:37
G4UA::FluxRecorder::MDTIhz
@ MDTIhz
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder::FluxRecorder
FluxRecorder()
Definition:
FluxRecorder.cxx:26
G4UA::FluxRecorder::bfhz
@ bfhz
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::fsle
@ fsle
Definition:
FluxRecorder.h:36
G4UA
for nSW
Definition:
CalibrationDefaultProcessing.h:19
G4UA::FluxRecorder::ffle
@ ffle
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::ffhe
@ ffhe
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::fthe
@ fthe
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::BMDTm
@ BMDTm
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::btlz
@ btlz
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::BMDTi
@ BMDTi
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::SWm
@ SWm
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::LMDTi
@ LMDTi
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::EndOfRunAction
virtual void EndOfRunAction(const G4Run *) override
Definition:
FluxRecorder.cxx:57
G4UA::FluxRecorder::m_flux
TH1D * m_flux[lastVol][9][2]
Definition:
FluxRecorder.h:38
G4UA::FluxRecorder::ftme
@ ftme
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::MDTImz
@ MDTImz
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder::bslz
@ bslz
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::CY1
@ CY1
Definition:
FluxRecorder.h:37
G4UA::FluxRecorder::LMDTm
@ LMDTm
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::m_fluxE
TH1D * m_fluxE[lastVol][9]
Definition:
FluxRecorder.h:39
G4UA::FluxRecorder::fsme
@ fsme
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::lastVol
@ lastVol
Definition:
FluxRecorder.h:37
G4UA::FluxRecorder::SWi
@ SWi
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::RPCMmz
@ RPCMmz
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder::bshz
@ bshz
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::RPCOmz
@ RPCOmz
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder::SWc
@ SWc
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::bthz
@ bthz
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::BeginOfRunAction
virtual void BeginOfRunAction(const G4Run *) override
Definition:
FluxRecorder.cxx:31
G4UA::FluxRecorder::scoringVolume
scoringVolume
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder::SWo
@ SWo
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::m_list
std::vector< int > m_list
Definition:
FluxRecorder.h:42
G4UA::FluxRecorder::bflz
@ bflz
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::ffme
@ ffme
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::ftle
@ ftle
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::MDTIlz
@ MDTIlz
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder
Definition:
FluxRecorder.h:25
G4UA::FluxRecorder::RPCMhz
@ RPCMhz
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
Definition:
FluxRecorder.cxx:76
G4UA::FluxRecorder::BMDTo
@ BMDTo
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::RPCOhz
@ RPCOhz
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder::EndOfEventAction
virtual void EndOfEventAction(const G4Event *) override
Definition:
FluxRecorder.cxx:52
G4UA::FluxRecorder::RPCOlz
@ RPCOlz
Definition:
FluxRecorder.h:34
G4UA::FluxRecorder::m_nev
double m_nev
Definition:
FluxRecorder.h:41
G4UA::FluxRecorder::SWt
@ SWt
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::fshe
@ fshe
Definition:
FluxRecorder.h:36
G4UA::FluxRecorder::LMDTo
@ LMDTo
Definition:
FluxRecorder.h:35
G4UA::FluxRecorder::findVolume
void findVolume(const double, const double, const double, const double)
Definition:
FluxRecorder.cxx:120
Generated on Fri Jan 10 2025 21:10:24 for ATLAS Offline Software by
1.8.18