Geant4  10.02.p03
G4ErrorGeomVolumeTarget Class Reference

#include <G4ErrorGeomVolumeTarget.hh>

Inheritance diagram for G4ErrorGeomVolumeTarget:
Collaboration 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
 
G4ErrorTargetType GetType () const
 

Private Attributes

G4String theName
 

Additional Inherited Members

- Protected Attributes inherited from G4ErrorTarget
G4ErrorTargetType theType
 

Detailed Description

Definition at line 48 of file G4ErrorGeomVolumeTarget.hh.

Constructor & Destructor Documentation

◆ G4ErrorGeomVolumeTarget()

G4ErrorGeomVolumeTarget::G4ErrorGeomVolumeTarget ( const G4String name)

Definition at line 43 of file G4ErrorGeomVolumeTarget.cc.

◆ ~G4ErrorGeomVolumeTarget()

virtual G4ErrorGeomVolumeTarget::~G4ErrorGeomVolumeTarget ( )
inlinevirtual

Definition at line 53 of file G4ErrorGeomVolumeTarget.hh.

53 {}
Here is the call graph for this function:

Member Function Documentation

◆ Dump()

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

Implements G4ErrorTarget.

Definition at line 73 of file G4ErrorGeomVolumeTarget.cc.

74 {
75  G4cout << msg << " G4ErrorGeomVolumeTarget: Volume " << theName << G4endl;
76 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
Here is the caller graph for this function:

◆ TargetReached()

G4bool G4ErrorGeomVolumeTarget::TargetReached ( const G4Step *  aStep)
virtual

Reimplemented from G4ErrorTarget.

Definition at line 51 of file G4ErrorGeomVolumeTarget.cc.

52 {
53  if( aStep->GetTrack()->GetNextVolume() != 0 ){
54 #ifdef G4VERBOSE
55  if(G4ErrorPropagatorData::verbose() >= 3 ) {
56  G4cout << " G4ErrorGeomVolumeTarget::TargetReached( "
57  << aStep->GetTrack()->GetNextVolume()->GetName()
58  << " =? " << theName << G4endl;
59  }
60 #endif
61  if( aStep->GetTrack()->GetNextVolume()->GetName() == theName ){
62  return 1;
63  } else {
64  return 0;
65  }
66  } else {
67  return 0;
68  }
69 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ theName

G4String G4ErrorGeomVolumeTarget::theName
private

Definition at line 62 of file G4ErrorGeomVolumeTarget.hh.


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