64 msg +=
"> not found.";
65 G4Exception(
"G4SDParticleFilter::G4SDParticleFilter",
"DetPS0101",
74 G4String name,
const std::vector<G4String>& particleNames)
78 for(
size_t i = 0; i < particleNames.size(); i++)
85 msg += particleNames[i];
86 msg +=
"> not found.";
87 G4Exception(
"G4SDParticleFilter::G4SDParticleFilter",
"DetPS0102",
97 G4String name,
const std::vector<G4ParticleDefinition*>& particleDef)
99 , thePdef(particleDef)
101 for(
size_t i = 0; i < particleDef.size(); i++)
104 G4Exception(
"G4SDParticleFilter::G4SDParticleFilter",
"DetPS0103",
106 "NULL pointer is found in the given particleDef vector.");
121 for(
size_t i = 0; i <
thePdef.size(); i++)
128 for(
size_t i = 0; i <
theIonZ.size(); i++)
148 msg +=
"> not found.";
151 for(
size_t i = 0; i <
thePdef.size(); i++)
161 for(
size_t i = 0; i <
theIonZ.size(); i++)
165 G4cout <<
"G4SDParticleFilter:: Ion has been already registered."
176 G4cout <<
"----G4SDParticleFileter particle list------" <<
G4endl;
177 for(
size_t i = 0; i <
thePdef.size(); i++)
181 for(
size_t i = 0; i <
theIonZ.size(); i++)
186 G4cout <<
"-------------------------------------------" <<
G4endl;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4int GetAtomicNumber() const
G4int GetAtomicMass() const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
std::vector< G4int > theIonZ
G4SDParticleFilter(G4String name)
virtual ~G4SDParticleFilter()
void addIon(G4int Z, G4int A)
std::vector< G4int > theIonA
void add(const G4String &particleName)
virtual G4bool Accept(const G4Step *) const
std::vector< G4ParticleDefinition * > thePdef
G4Track * GetTrack() const
G4ParticleDefinition * GetDefinition() const
const char * name(G4int ptype)