56 std::vector<G4AttValue>::const_iterator iAtt;
57 for (iAtt = attValues->begin(); iAtt != attValues->end(); ++iAtt) {
58 if (iAtt->GetName() ==
"PostVPath" &&
61 if (iAtt != attValues->end()) {
69 catch (
const std::bad_cast&)
72 ed <<
"Requires G4RichTrajectory - \"/vis/scene/add/trajectories rich\"";
74 (
"G4TrajectoryEncounteredVolumeFilter::Evaluate(const G4VTrajectory& traj)",
90 ostr<<
"Volume names registered: "<<
G4endl;
91 std::vector<G4String>::const_iterator iter =
fVolumes.begin();
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4VTrajectoryPoint * GetPoint(G4int i) const
G4int GetPointEntries() const
virtual bool Evaluate(const G4VTrajectory &) const
virtual ~G4TrajectoryEncounteredVolumeFilter()
void Add(const G4String &volume)
std::vector< G4String > fVolumes
virtual void Print(std::ostream &ostr) const
G4TrajectoryEncounteredVolumeFilter(const G4String &name="Unspecified")
virtual std::vector< G4AttValue > * CreateAttValues() const
const char * name(G4int ptype)
G4bool contains(const G4String &str, std::string_view ss)
Check if a string contains a given substring.