47 assert (0 != aTrajectoryPoint);
53 (aTrajectoryPoint->
GetPosition(),
nullptr,
false,
true);
57 assert (0 != logicalVolume);
64 G4cout<<
"G4TrajectoryOriginVolumeFilter processing trajectory with originating volume "<<
G4endl;
65 G4cout<<
"logical and physical names: "<<logicalName<<
" "<<physicalName<<
G4endl;
68 std::vector<G4String>::const_iterator iterLogical = std::find(
fVolumes.begin(),
fVolumes.end(), logicalName);
71 if (iterLogical !=
fVolumes.end())
return true;
74 std::vector<G4String>::const_iterator iterPhysical = std::find(
fVolumes.begin(),
fVolumes.end(), physicalName);
76 if (iterPhysical !=
fVolumes.end())
return true;
91 ostr<<
"Volume names registered: "<<
G4endl;
92 std::vector<G4String>::const_iterator iter =
fVolumes.begin();
G4bool GetVerbose() const
G4TrajectoryOriginVolumeFilter(const G4String &name="Unspecified")
virtual const G4ThreeVector GetPosition() const =0
G4LogicalVolume * GetLogicalVolume() const
virtual ~G4TrajectoryOriginVolumeFilter()
virtual void Print(std::ostream &ostr) const
G4Navigator * GetNavigatorForTracking() const
static G4TransportationManager * GetTransportationManager()
G4GLOB_DLL std::ostream G4cout
void Add(const G4String &volume)
virtual bool Evaluate(const G4VTrajectory &) const
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
std::vector< G4String > fVolumes
virtual G4VTrajectoryPoint * GetPoint(G4int i) const =0
const G4String & GetName() const
const G4String & GetName() const