Geant4 9.6.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 48 of file G4ErrorGeomVolumeTarget.hh.

Constructor & Destructor Documentation

◆ G4ErrorGeomVolumeTarget()

G4ErrorGeomVolumeTarget::G4ErrorGeomVolumeTarget ( const G4String name)

Definition at line 43 of file G4ErrorGeomVolumeTarget.cc.

44{
46 theName = name;
47}
@ G4ErrorTarget_GeomVolume
G4ErrorTargetType theType

◆ ~G4ErrorGeomVolumeTarget()

virtual G4ErrorGeomVolumeTarget::~G4ErrorGeomVolumeTarget ( )
inlinevirtual

Definition at line 53 of file G4ErrorGeomVolumeTarget.hh.

53{}

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}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ 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
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}
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: