Geant4
v4-10.4-release
메인 페이지
관련된 페이지
모듈
네임스페이스
클래스
파일들
파일 목록
파일 멤버
모두
클래스
네임스페이스들
파일들
함수
변수
타입정의
열거형 타입
열거형 멤버
Friends
매크로
그룹들
페이지들
examples
extended
exoticphysics
channeling
src
exoticphysics/channeling/src/StackingAction.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
27
#include "StackingAction.hh"
28
#include "
G4Track.hh
"
29
30
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
31
32
StackingAction::StackingAction
(){
33
fKillSecondary
=
true
;
34
}
35
36
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
37
38
StackingAction::~StackingAction
(){;}
39
40
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
41
42
G4ClassificationOfNewTrack
43
StackingAction::ClassifyNewTrack
(
const
G4Track
* aTrack){
44
G4ClassificationOfNewTrack
status =
fUrgent
;
45
46
if
(
fKillSecondary
){
47
if
(aTrack->
GetTrackID
()>1){
48
status =
fKill
;
49
}
50
}
51
return
status;
52
}
53
54
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
55
56
void
StackingAction::SetKillStatus
(
G4bool
value
){
57
fKillSecondary
=
value
;
58
}
59
60
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4ClassificationOfNewTrack
G4ClassificationOfNewTrack
Definition:
G4ClassificationOfNewTrack.hh:40
StackingAction::fKillSecondary
G4int fKillSecondary
Definition:
electromagnetic/TestEm5/include/StackingAction.hh:58
StackingAction::ClassifyNewTrack
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *)
Definition:
electromagnetic/TestEm1/src/StackingAction.cc:53
G4Track::GetTrackID
G4int GetTrackID() const
StackingAction::~StackingAction
~StackingAction()
Definition:
electromagnetic/TestEm1/src/StackingAction.cc:47
G4bool
bool G4bool
Definition:
G4Types.hh:79
value
const XML_Char int const XML_Char * value
Definition:
expat.h:331
G4Track
Definition:
G4Track.hh:76
StackingAction::SetKillStatus
void SetKillStatus(G4int value)
Definition:
electromagnetic/TestEm5/include/StackingAction.hh:51
G4Track.hh
fKill
Definition:
G4ClassificationOfNewTrack.hh:45
StackingAction::StackingAction
StackingAction()
Definition:
electromagnetic/TestEm1/src/StackingAction.cc:41
fUrgent
Definition:
G4ClassificationOfNewTrack.hh:42
다음에 의해 생성됨 :
1.8.5