Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ErrorGeomVolumeTarget Class Reference

#include <G4ErrorGeomVolumeTarget.hh>

+ Inheritance diagram for G4ErrorGeomVolumeTarget:

Public Member Functions

 G4ErrorGeomVolumeTarget (const G4String &name)
 
virtual ~G4ErrorGeomVolumeTarget ()
 
virtual G4bool TargetReached (const G4Step *aStep)
 
virtual void Dump (const G4String &msg) const
 
- Public Member Functions inherited from G4ErrorTarget
 G4ErrorTarget ()
 
virtual ~G4ErrorTarget ()
 
virtual G4double GetDistanceFromPoint (const G4ThreeVector &, const G4ThreeVector &) const
 
virtual G4double GetDistanceFromPoint (const G4ThreeVector &) const
 
virtual G4bool TargetReached (const G4Step *)
 
virtual void Dump (const G4String &msg) const =0
 
G4ErrorTargetType GetType () const
 

Additional Inherited Members

- Protected Attributes inherited from G4ErrorTarget
G4ErrorTargetType theType
 

Detailed Description

Definition at line 47 of file G4ErrorGeomVolumeTarget.hh.

Constructor & Destructor Documentation

◆ G4ErrorGeomVolumeTarget()

G4ErrorGeomVolumeTarget::G4ErrorGeomVolumeTarget ( const G4String name)

Definition at line 42 of file G4ErrorGeomVolumeTarget.cc.

43{
45 theName = name;
46}
@ G4ErrorTarget_GeomVolume
G4ErrorTargetType theType
const char * name(G4int ptype)

◆ ~G4ErrorGeomVolumeTarget()

virtual G4ErrorGeomVolumeTarget::~G4ErrorGeomVolumeTarget ( )
inlinevirtual

Definition at line 52 of file G4ErrorGeomVolumeTarget.hh.

52{}

Member Function Documentation

◆ Dump()

void G4ErrorGeomVolumeTarget::Dump ( const G4String msg) const
virtual

Implements G4ErrorTarget.

Definition at line 72 of file G4ErrorGeomVolumeTarget.cc.

73{
74 G4cout << msg << " G4ErrorGeomVolumeTarget: Volume " << theName << G4endl;
75}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

◆ TargetReached()

G4bool G4ErrorGeomVolumeTarget::TargetReached ( const G4Step aStep)
virtual

Reimplemented from G4ErrorTarget.

Definition at line 50 of file G4ErrorGeomVolumeTarget.cc.

51{
52 if( aStep->GetTrack()->GetNextVolume() != 0 ){
53#ifdef G4VERBOSE
55 G4cout << " G4ErrorGeomVolumeTarget::TargetReached( "
56 << aStep->GetTrack()->GetNextVolume()->GetName()
57 << " =? " << theName << G4endl;
58 }
59#endif
60 if( aStep->GetTrack()->GetNextVolume()->GetName() == theName ){
61 return 1;
62 } else {
63 return 0;
64 }
65 } else {
66 return 0;
67 }
68}
G4Track * GetTrack() const
G4VPhysicalVolume * GetNextVolume() const
const G4String & GetName() const

Referenced by G4ErrorPropagator::MakeOneStep().


The documentation for this class was generated from the following files: