64 msg +=
"> not found.";
65 G4Exception(
"G4SDParticleFilter::G4SDParticleFilter",
74 const std::vector<G4String>& particleNames)
78 for (
size_t i = 0; i < particleNames.size(); i++){
83 msg += particleNames[i];
84 msg +=
"> not found.";
85 G4Exception(
"G4SDParticleFilter::G4SDParticleFilter",
95 const std::vector<G4ParticleDefinition*>& particleDef)
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.");
117 for (
size_t i = 0; i <
thePdef.size(); i++){
122 for (
size_t i = 0; i <
theIonZ.size(); i++){
140 msg +=
"> not found.";
144 for (
size_t i = 0; i <
thePdef.size(); i++){
145 if (
thePdef[i] == pd )
return;
151 for (
size_t i = 0; i <
theIonZ.size(); i++){
153 G4cout <<
"G4SDParticleFilter:: Ion has been already registered."<<
G4endl;
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++){
170 G4cout <<
"-------------------------------------------"<<
G4endl;
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4int GetAtomicNumber() const
static G4ParticleTable * GetParticleTable()
std::vector< G4int > theIonA
G4ParticleDefinition * GetDefinition() const
void add(const G4String &particleName)
std::vector< G4int > theIonZ
double A(double temperature)
G4Track * GetTrack() const
G4SDParticleFilter(G4String name)
virtual G4bool Accept(const G4Step *) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual ~G4SDParticleFilter()
G4int GetAtomicMass() const
G4GLOB_DLL std::ostream G4cout
std::vector< G4ParticleDefinition * > thePdef
void addIon(G4int Z, G4int A)