46 assert (0 != aTrajectoryPoint);
52 (aTrajectoryPoint->
GetPosition(),
nullptr,
false,
true);
56 assert (0 != logicalVolume);
63 G4cout<<
"G4TrajectoryOriginVolumeFilter processing trajectory with originating volume "<<
G4endl;
64 G4cout<<
"logical and physical names: "<<logicalName<<
" "<<physicalName<<
G4endl;
67 std::vector<G4String>::const_iterator iterLogical = std::find(
fVolumes.begin(),
fVolumes.end(), logicalName);
70 if (iterLogical !=
fVolumes.end())
return true;
73 std::vector<G4String>::const_iterator iterPhysical = std::find(
fVolumes.begin(),
fVolumes.end(), physicalName);
75 if (iterPhysical !=
fVolumes.end())
return true;
90 ostr<<
"Volume names registered: "<<
G4endl;
91 std::vector<G4String>::const_iterator iter =
fVolumes.begin();
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
G4bool GetVerbose() const
G4TrajectoryOriginVolumeFilter(const G4String &name="Unspecified")
virtual void Print(std::ostream &ostr) const
std::vector< G4String > fVolumes
void Add(const G4String &volume)
virtual ~G4TrajectoryOriginVolumeFilter()
virtual bool Evaluate(const G4VTrajectory &) const
static G4TransportationManager * GetTransportationManager()
G4Navigator * GetNavigatorForTracking() const
G4LogicalVolume * GetLogicalVolume() const
const G4String & GetName() const
virtual const G4ThreeVector GetPosition() const =0
virtual G4VTrajectoryPoint * GetPoint(G4int i) const =0
const char * name(G4int ptype)