Geant4
10.01.p01
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ExExChStackingAction.cc
Go to the documentation of this file.
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 "
ExExChStackingAction.hh
"
28
#include "
ExExChStackingActionMessenger.hh
"
29
#include "
G4Track.hh
"
30
#include "
G4ParticleDefinition.hh
"
31
#include "
G4ParticleTable.hh
"
32
#include "
G4SystemOfUnits.hh
"
33
34
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
35
36
ExExChStackingAction::ExExChStackingAction
()
37
{
38
fStackMessenger
=
new
ExExChStackingActionMessenger
(
this
);
39
fKillSecondary
=
true
;
40
}
41
42
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43
44
ExExChStackingAction::~ExExChStackingAction
()
45
{
46
delete
fStackMessenger
;
47
}
48
49
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50
51
G4ClassificationOfNewTrack
52
ExExChStackingAction::ClassifyNewTrack
(
const
G4Track
* aTrack)
53
{
54
G4ClassificationOfNewTrack
status =
fUrgent
;
55
56
57
if
(
fKillSecondary
){
58
if
(aTrack->
GetTrackID
()>1){
59
status =
fKill
;
60
}
61
}
62
return
status;
63
}
64
65
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
66
67
void
ExExChStackingAction::SetKillStatus
(
G4bool
value)
68
{
69
fKillSecondary
= value;
70
}
71
72
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
ExExChStackingAction::ExExChStackingAction
ExExChStackingAction()
Definition:
ExExChStackingAction.cc:36
fUrgent
Definition:
G4ClassificationOfNewTrack.hh:42
G4Track.hh
ExExChStackingAction::ClassifyNewTrack
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *)
Definition:
ExExChStackingAction.cc:52
ExExChStackingActionMessenger
Definition:
ExExChStackingActionMessenger.hh:40
ExExChStackingAction::SetKillStatus
void SetKillStatus(G4bool value)
Definition:
ExExChStackingAction.cc:67
G4ParticleTable.hh
G4bool
bool G4bool
Definition:
G4Types.hh:79
ExExChStackingAction::fStackMessenger
ExExChStackingActionMessenger * fStackMessenger
Definition:
ExExChStackingAction.hh:52
ExExChStackingAction::fKillSecondary
G4bool fKillSecondary
Definition:
ExExChStackingAction.hh:53
G4ParticleDefinition.hh
G4Track::GetTrackID
G4int GetTrackID() const
ExExChStackingAction::~ExExChStackingAction
virtual ~ExExChStackingAction()
Definition:
ExExChStackingAction.cc:44
ExExChStackingActionMessenger.hh
G4ClassificationOfNewTrack
G4ClassificationOfNewTrack
Definition:
G4ClassificationOfNewTrack.hh:40
fKill
Definition:
G4ClassificationOfNewTrack.hh:45
G4Track
Definition:
G4Track.hh:73
G4SystemOfUnits.hh
ExExChStackingAction.hh
geant4.10.01.p01
examples
extended
exoticphysics
channeling
src
ExExChStackingAction.cc
Generated on Wed Dec 30 2015 22:37:38 for Geant4 by
1.8.8