Geant4
v4-10.4-release
메인 페이지
관련된 페이지
모듈
네임스페이스
클래스
파일들
파일 목록
파일 멤버
모두
클래스
네임스페이스들
파일들
함수
변수
타입정의
열거형 타입
열거형 멤버
Friends
매크로
그룹들
페이지들
examples
extended
medical
GammaTherapy
src
extended/medical/GammaTherapy/src/TrackingAction.cc
이 파일의 문서화 페이지로 가기
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
//
26
// $Id: TrackingAction.cc 103469 2017-04-11 07:29:36Z gcosmo $
27
//
30
//
31
32
//---------------------------------------------------------------------------
33
//
34
// ClassName: TrackingAction
35
//
36
// Description: Implementation file for MC truth.
37
//
38
// Author: V.Ivanchenko 17/03/01
39
//
40
// Modified:
41
//
42
//----------------------------------------------------------------------------
43
//
44
45
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
46
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
47
48
#include "TrackingAction.hh"
49
#include "
G4RunManager.hh
"
50
#include "Run.hh"
51
52
#include "
G4Track.hh
"
53
#include "
G4SystemOfUnits.hh
"
54
55
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
56
57
TrackingAction::TrackingAction
()
58
{
59
}
60
61
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
62
63
TrackingAction::~TrackingAction
()
64
{}
65
66
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
67
68
void
TrackingAction::PreUserTrackingAction
(
const
G4Track
* aTrack)
69
{
70
71
Run
* run =
static_cast<
Run
*
>
(
72
G4RunManager::GetRunManager
()->
GetNonConstCurrentRun
());
73
74
run->
ScoreNewTrack
(aTrack);
75
76
if
(run->
GetVerbose
()) {
77
G4cout
<<
"New track #"
78
<< aTrack->
GetTrackID
() <<
" of "
79
<< aTrack->
GetParticleDefinition
()->
GetParticleName
()
80
<<
" Ekin(MeV)= "
<< aTrack->
GetKineticEnergy
()/
MeV
81
<<
" parent # "
<< aTrack->
GetParentID
()
82
<<
G4endl
;
83
}
84
85
}
86
87
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
88
89
void
TrackingAction::PostUserTrackingAction
(
const
G4Track
*)
90
{}
91
92
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
G4RunManager::GetRunManager
static G4RunManager * GetRunManager()
Definition:
G4RunManager.cc:80
G4Track::GetKineticEnergy
G4double GetKineticEnergy() const
Run::ScoreNewTrack
void ScoreNewTrack(const G4Track *aTrack)
Definition:
extended/medical/GammaTherapy/src/Run.cc:300
TrackingAction::~TrackingAction
~TrackingAction()
Definition:
advanced/amsEcal/include/TrackingAction.hh:46
MeV
static constexpr double MeV
Definition:
G4SIunits.hh:214
G4endl
#define G4endl
Definition:
G4ios.hh:61
G4ParticleDefinition::GetParticleName
const G4String & GetParticleName() const
Definition:
G4ParticleDefinition.hh:121
G4Track::GetTrackID
G4int GetTrackID() const
G4Track::GetParticleDefinition
const G4ParticleDefinition * GetParticleDefinition() const
TrackingAction::PostUserTrackingAction
void PostUserTrackingAction(const G4Track *)
Definition:
advanced/amsEcal/src/TrackingAction.cc:58
G4Track
Definition:
G4Track.hh:76
G4SystemOfUnits.hh
G4RunManager.hh
G4RunManager::GetNonConstCurrentRun
G4Run * GetNonConstCurrentRun() const
Definition:
G4RunManager.hh:528
G4Track.hh
TrackingAction::TrackingAction
TrackingAction()
Definition:
extended/electromagnetic/TestEm2/src/TrackingAction.cc:42
G4cout
G4GLOB_DLL std::ostream G4cout
Run::GetVerbose
G4int GetVerbose() const
Definition:
extended/electromagnetic/TestEm8/include/Run.hh:110
TrackingAction::PreUserTrackingAction
void PreUserTrackingAction(const G4Track *)
Definition:
advanced/amsEcal/src/TrackingAction.cc:53
Run
Definition:
advanced/amsEcal/include/Run.hh:46
G4Track::GetParentID
G4int GetParentID() const
다음에 의해 생성됨 :
1.8.5