#include <G4SDParticleFilter.hh>
Definition at line 53 of file G4SDParticleFilter.hh.
G4SDParticleFilter::G4SDParticleFilter |
( |
G4String |
name | ) |
|
G4SDParticleFilter::G4SDParticleFilter |
( |
G4String |
name, |
|
|
const G4String & |
particleName |
|
) |
| |
Definition at line 54 of file G4SDParticleFilter.cc.
64 msg +=
"> not found.";
65 G4Exception(
"G4SDParticleFilter::G4SDParticleFilter",
68 thePdef.push_back(pd);
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ParticleTable * GetParticleTable()
G4VSDFilter(G4String name)
G4SDParticleFilter::G4SDParticleFilter |
( |
G4String |
name, |
|
|
const std::vector< G4String > & |
particleNames |
|
) |
| |
Definition at line 73 of file G4SDParticleFilter.cc.
78 for (
size_t i = 0; i < particleNames.size(); i++){
83 msg += particleNames[i];
84 msg +=
"> not found.";
85 G4Exception(
"G4SDParticleFilter::G4SDParticleFilter",
88 thePdef.push_back(pd);
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ParticleTable * GetParticleTable()
G4VSDFilter(G4String name)
Definition at line 94 of file G4SDParticleFilter.cc.
98 for (
size_t i = 0; i < particleDef.size(); i++){
99 if(!particleDef[i])
G4Exception(
"G4SDParticleFilter::G4SDParticleFilter",
101 "NULL pointer is found in the given particleDef vector.");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4VSDFilter(G4String name)
G4SDParticleFilter::~G4SDParticleFilter |
( |
| ) |
|
|
virtual |
G4bool G4SDParticleFilter::Accept |
( |
const G4Step * |
aStep | ) |
const |
|
virtual |
Implements G4VSDFilter.
Definition at line 114 of file G4SDParticleFilter.cc.
117 for (
size_t i = 0; i < thePdef.size(); i++){
122 for (
size_t i = 0; i < theIonZ.size(); i++){
G4ParticleDefinition * GetDefinition() const
G4int GetAtomicNumber() const
G4int GetAtomicMass() const
G4Track * GetTrack() const
void G4SDParticleFilter::add |
( |
const G4String & |
particleName | ) |
|
Definition at line 132 of file G4SDParticleFilter.cc.
140 msg +=
"> not found.";
144 for (
size_t i = 0; i < thePdef.size(); i++){
145 if ( thePdef[i] == pd )
return;
147 thePdef.push_back(pd);
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ParticleTable * GetParticleTable()
Definition at line 150 of file G4SDParticleFilter.cc.
151 for (
size_t i = 0; i < theIonZ.size(); i++){
152 if ( theIonZ[i] ==
Z && theIonA[i] ==
A ){
153 G4cout <<
"G4SDParticleFilter:: Ion has been already registered."<<
G4endl;
157 theIonZ.push_back(
Z);
158 theIonA.push_back(
A);
G4GLOB_DLL std::ostream G4cout
double A(double temperature)
void G4SDParticleFilter::show |
( |
| ) |
|
Definition at line 161 of file G4SDParticleFilter.cc.
162 G4cout <<
"----G4SDParticleFileter particle list------"<<
G4endl;
163 for (
size_t i = 0; i < thePdef.size(); i++){
166 for (
size_t i = 0; i < theIonZ.size(); i++){
167 G4cout <<
" Ion PrtclDef (" << theIonZ[i]<<
","<<theIonA[i]<<
")"
170 G4cout <<
"-------------------------------------------"<<
G4endl;
G4GLOB_DLL std::ostream G4cout
The documentation for this class was generated from the following files: