#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 |
Definition at line 48 of file G4ErrorGeomVolumeTarget.hh.
G4ErrorGeomVolumeTarget::G4ErrorGeomVolumeTarget | ( | const G4String & | name | ) |
Definition at line 43 of file G4ErrorGeomVolumeTarget.cc.
References G4ErrorTarget_GeomVolume, and G4ErrorTarget::theType.
00044 { 00045 theType = G4ErrorTarget_GeomVolume; 00046 theName = name; 00047 }
virtual G4ErrorGeomVolumeTarget::~G4ErrorGeomVolumeTarget | ( | ) | [inline, virtual] |
void G4ErrorGeomVolumeTarget::Dump | ( | const G4String & | msg | ) | const [virtual] |
Implements G4ErrorTarget.
Definition at line 73 of file G4ErrorGeomVolumeTarget.cc.
References G4cout, and G4endl.
Reimplemented from G4ErrorTarget.
Definition at line 51 of file G4ErrorGeomVolumeTarget.cc.
References G4cout, G4endl, G4VPhysicalVolume::GetName(), G4Track::GetNextVolume(), G4Step::GetTrack(), and G4ErrorPropagatorData::verbose().
00052 { 00053 if( aStep->GetTrack()->GetNextVolume() != 0 ){ 00054 #ifdef G4VERBOSE 00055 if(G4ErrorPropagatorData::verbose() >= 3 ) { 00056 G4cout << " G4ErrorGeomVolumeTarget::TargetReached( " 00057 << aStep->GetTrack()->GetNextVolume()->GetName() 00058 << " =? " << theName << G4endl; 00059 } 00060 #endif 00061 if( aStep->GetTrack()->GetNextVolume()->GetName() == theName ){ 00062 return 1; 00063 } else { 00064 return 0; 00065 } 00066 } else { 00067 return 0; 00068 } 00069 }