Geant4-11
Public Member Functions | Protected Attributes | Private Attributes
G4ErrorGeomVolumeTarget Class Reference

#include <G4ErrorGeomVolumeTarget.hh>

Inheritance diagram for G4ErrorGeomVolumeTarget:
G4ErrorTarget

Public Member Functions

virtual void Dump (const G4String &msg) const
 
 G4ErrorGeomVolumeTarget (const G4String &name)
 
virtual G4double GetDistanceFromPoint (const G4ThreeVector &) const
 
virtual G4double GetDistanceFromPoint (const G4ThreeVector &, const G4ThreeVector &) const
 
G4ErrorTargetType GetType () const
 
virtual G4bool TargetReached (const G4Step *aStep)
 
virtual ~G4ErrorGeomVolumeTarget ()
 

Protected Attributes

G4ErrorTargetType theType
 

Private Attributes

G4String theName
 

Detailed Description

Definition at line 47 of file G4ErrorGeomVolumeTarget.hh.

Constructor & Destructor Documentation

◆ G4ErrorGeomVolumeTarget()

G4ErrorGeomVolumeTarget::G4ErrorGeomVolumeTarget ( const G4String name)

◆ ~G4ErrorGeomVolumeTarget()

virtual G4ErrorGeomVolumeTarget::~G4ErrorGeomVolumeTarget ( )
inlinevirtual

Definition at line 51 of file G4ErrorGeomVolumeTarget.hh.

51{}

Member Function Documentation

◆ Dump()

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

Implements G4ErrorTarget.

Definition at line 77 of file G4ErrorGeomVolumeTarget.cc.

78{
79 G4cout << msg << " G4ErrorGeomVolumeTarget: Volume " << theName << G4endl;
80}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

References G4cout, G4endl, and theName.

◆ GetDistanceFromPoint() [1/2]

G4double G4ErrorTarget::GetDistanceFromPoint ( const G4ThreeVector ) const
virtualinherited

Reimplemented in G4ErrorTrackLengthTarget, G4ErrorCylSurfaceTarget, G4ErrorSurfaceTarget, and G4ErrorPlaneSurfaceTarget.

Definition at line 41 of file G4ErrorTarget.cc.

42{
43 return DBL_MAX;
44}
#define DBL_MAX
Definition: templates.hh:62

References DBL_MAX.

◆ GetDistanceFromPoint() [2/2]

G4double G4ErrorTarget::GetDistanceFromPoint ( const G4ThreeVector ,
const G4ThreeVector  
) const
virtualinherited

◆ GetType()

G4ErrorTargetType G4ErrorTarget::GetType ( ) const
inlineinherited

◆ TargetReached()

G4bool G4ErrorGeomVolumeTarget::TargetReached ( const G4Step aStep)
virtual

Reimplemented from G4ErrorTarget.

Definition at line 49 of file G4ErrorGeomVolumeTarget.cc.

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

References G4cout, G4endl, G4VPhysicalVolume::GetName(), G4Track::GetNextVolume(), G4Step::GetTrack(), theName, and G4ErrorPropagatorData::verbose().

Referenced by G4ErrorPropagator::MakeOneStep().

Field Documentation

◆ theName

G4String G4ErrorGeomVolumeTarget::theName
private

Definition at line 59 of file G4ErrorGeomVolumeTarget.hh.

Referenced by Dump(), G4ErrorGeomVolumeTarget(), and TargetReached().

◆ theType

G4ErrorTargetType G4ErrorTarget::theType
protectedinherited

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