Geant4
v4-10.4-release
메인 페이지
관련된 페이지
모듈
네임스페이스
클래스
파일들
파일 목록
파일 멤버
모두
클래스
네임스페이스들
파일들
함수
변수
타입정의
열거형 타입
열거형 멤버
Friends
매크로
그룹들
페이지들
examples
extended
polarisation
Pol01
include
examples/extended/polarisation/Pol01/include/RunAction.hh
이 파일의 문서화 페이지로 가기
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
28
//
29
// $Id: RunAction.hh 98772 2016-08-09 14:25:31Z gcosmo $
30
//
31
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33
34
#ifndef RunAction_h
35
#define RunAction_h 1
36
37
#include "
G4UserRunAction.hh
"
38
#include "
ProcessesCount.hh
"
39
#include "
globals.hh
"
40
#include "
g4root.hh
"
41
42
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43
44
class
DetectorConstruction
;
45
class
PrimaryGeneratorAction
;
46
class
G4Run
;
47
class
G4ParticleDefinition
;
48
49
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50
51
class
RunAction
:
public
G4UserRunAction
52
{
53
class
ParticleStatistics
{
54
public
:
55
ParticleStatistics
();
56
~ParticleStatistics
();
57
void
EventFinished
();
58
void
FillData
(
G4double
kinEnergy,
G4double
costheta,
59
G4double
longitudinalPolarization);
60
void
PrintResults
(
G4int
totalNumberOfEvents);
61
void
Clear
();
62
private
:
63
G4int
fCurrentNumber
;
64
G4int
fTotalNumber
,
fTotalNumber2
;
65
G4double
fSumEnergy
,
fSumEnergy2
;
66
G4double
fSumPolarization
,
fSumPolarization2
;
67
G4double
fSumCosTheta
,
fSumCosTheta2
;
68
};
69
70
public
:
71
72
RunAction
(
DetectorConstruction
*,
PrimaryGeneratorAction
*);
73
virtual
~RunAction
();
74
75
virtual
void
BeginOfRunAction
(
const
G4Run
*);
76
virtual
void
EndOfRunAction
(
const
G4Run
*);
77
78
void
CountProcesses
(
G4String
);
79
80
void
FillData
(
const
G4ParticleDefinition
* particle,
81
G4double
kinEnergy,
G4double
costheta,
G4double
phi,
82
G4double
longitudinalPolarization);
83
84
void
EventFinished
();
85
86
private
:
87
88
void
BookHisto
();
89
void
SaveHisto
(
G4int
nevents);
90
91
const
G4ParticleDefinition
*
fGamma
;
92
const
G4ParticleDefinition
*
fElectron
;
93
const
G4ParticleDefinition
*
fPositron
;
94
95
DetectorConstruction
*
fDetector
;
96
PrimaryGeneratorAction
*
fPrimary
;
97
ProcessesCount
*
fProcCounter
;
98
99
G4AnalysisManager
*
fAnalysisManager
;
100
101
G4int
fTotalEventCount
;
102
103
ParticleStatistics
fPhotonStats
;
104
ParticleStatistics
fElectronStats
;
105
ParticleStatistics
fPositronStats
;
106
};
107
108
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
109
110
#endif
RunAction::fPositron
const G4ParticleDefinition * fPositron
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:93
RunAction::ParticleStatistics::fSumPolarization
G4double fSumPolarization
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:66
RunAction::RunAction
RunAction()
Definition:
examples/advanced/microelectronics/src/RunAction.cc:42
RunAction::EndOfRunAction
void EndOfRunAction(const G4Run *)
Definition:
environments/g4py/examples/demos/TestEm0/module/RunAction.cc:260
RunAction::fProcCounter
ProcessesCount * fProcCounter
Definition:
examples/extended/electromagnetic/TestEm15/include/RunAction.hh:84
ProcessesCount
std::vector< OneProcessCount * > ProcessesCount
Definition:
electromagnetic/TestEm15/include/ProcessesCount.hh:60
RunAction::ParticleStatistics::Clear
void Clear()
Definition:
examples/extended/polarisation/Pol01/src/RunAction.cc:312
G4String
Definition:
examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4String.hh:45
RunAction::fGamma
const G4ParticleDefinition * fGamma
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:91
RunAction::ParticleStatistics::fSumEnergy
G4double fSumEnergy
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:65
RunAction::ParticleStatistics::fSumCosTheta
G4double fSumCosTheta
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:67
G4UserRunAction.hh
RunAction::BeginOfRunAction
void BeginOfRunAction(const G4Run *)
Definition:
environments/g4py/examples/demos/TestEm0/module/RunAction.cc:57
G4RootAnalysisManager
Definition:
G4RootAnalysisManager.hh:61
RunAction::ParticleStatistics::FillData
void FillData(G4double kinEnergy, G4double costheta, G4double longitudinalPolarization)
Definition:
examples/extended/polarisation/Pol01/src/RunAction.cc:279
RunAction
Run action class.
Definition:
environments/g4py/examples/demos/TestEm0/module/RunAction.hh:45
G4double
double G4double
Definition:
G4Types.hh:76
RunAction::fAnalysisManager
G4AnalysisManager * fAnalysisManager
Definition:
examples/extended/electromagnetic/TestEm2/include/RunAction.hh:77
RunAction::CountProcesses
void CountProcesses(G4String)
Definition:
examples/extended/electromagnetic/TestEm15/src/RunAction.cc:91
RunAction::ParticleStatistics
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:53
RunAction::EventFinished
void EventFinished()
Definition:
examples/extended/polarisation/Pol01/src/RunAction.cc:246
RunAction::fElectron
const G4ParticleDefinition * fElectron
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:92
RunAction::SaveHisto
void SaveHisto(G4int nevents)
Definition:
examples/extended/polarisation/Pol01/src/RunAction.cc:163
RunAction::ParticleStatistics::~ParticleStatistics
~ParticleStatistics()
Definition:
examples/extended/polarisation/Pol01/src/RunAction.cc:266
RunAction::fTotalEventCount
G4int fTotalEventCount
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:101
ProcessesCount.hh
Definition of the ProcessesCount class.
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:73
RunAction::ParticleStatistics::EventFinished
void EventFinished()
Definition:
examples/extended/polarisation/Pol01/src/RunAction.cc:271
PrimaryGeneratorAction
The primary generator action class with particle gun.
Definition:
environments/g4py/examples/demos/TestEm0/module/PrimaryGeneratorAction.hh:43
g4root.hh
G4UserRunAction
Definition:
G4UserRunAction.hh:52
globals.hh
RunAction::ParticleStatistics::fSumEnergy2
G4double fSumEnergy2
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:65
RunAction::ParticleStatistics::fTotalNumber
G4int fTotalNumber
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:64
RunAction::ParticleStatistics::fTotalNumber2
G4int fTotalNumber2
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:64
RunAction::ParticleStatistics::fSumPolarization2
G4double fSumPolarization2
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:66
G4Run
Definition:
G4Run.hh:46
RunAction::fDetector
DetectorConstruction * fDetector
Definition:
examples/advanced/amsEcal/include/RunAction.hh:63
G4int
int G4int
Definition:
G4Types.hh:78
RunAction::ParticleStatistics::PrintResults
void PrintResults(G4int totalNumberOfEvents)
Definition:
examples/extended/polarisation/Pol01/src/RunAction.cc:294
RunAction::ParticleStatistics::fCurrentNumber
G4int fCurrentNumber
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:63
RunAction::FillData
void FillData(const G4ParticleDefinition *particle, G4double kinEnergy, G4double costheta, G4double phi, G4double longitudinalPolarization)
Definition:
examples/extended/polarisation/Pol01/src/RunAction.cc:94
RunAction::ParticleStatistics::fSumCosTheta2
G4double fSumCosTheta2
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:67
RunAction::fPrimary
PrimaryGeneratorAction * fPrimary
Definition:
examples/advanced/amsEcal/include/RunAction.hh:64
RunAction::fPhotonStats
ParticleStatistics fPhotonStats
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:103
RunAction::~RunAction
~RunAction()
Definition:
environments/g4py/examples/demos/TestEm0/module/RunAction.cc:52
RunAction::fElectronStats
ParticleStatistics fElectronStats
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:104
DetectorConstruction
Simple detector construction with a box volume placed in a world.
Definition:
environments/g4py/examples/demos/TestEm0/module/DetectorConstruction.hh:46
RunAction::BookHisto
void BookHisto()
Definition:
examples/extended/electromagnetic/TestEm10/src/RunAction.cc:65
RunAction::fPositronStats
ParticleStatistics fPositronStats
Definition:
examples/extended/polarisation/Pol01/include/RunAction.hh:105
RunAction::ParticleStatistics::ParticleStatistics
ParticleStatistics()
Definition:
examples/extended/polarisation/Pol01/src/RunAction.cc:256
다음에 의해 생성됨 :
1.8.5