G4ErrorGeomVolumeTarget Class Reference

#include <G4ErrorGeomVolumeTarget.hh>

Inheritance diagram for G4ErrorGeomVolumeTarget:

G4ErrorTarget

Public Member Functions

 G4ErrorGeomVolumeTarget (const G4String &name)
virtual ~G4ErrorGeomVolumeTarget ()
virtual G4bool TargetReached (const G4Step *aStep)
virtual void Dump (const G4String &msg) const

Detailed Description

Definition at line 48 of file G4ErrorGeomVolumeTarget.hh.


Constructor & Destructor Documentation

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]

Definition at line 53 of file G4ErrorGeomVolumeTarget.hh.

00053 {}


Member Function Documentation

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

Implements G4ErrorTarget.

Definition at line 73 of file G4ErrorGeomVolumeTarget.cc.

References G4cout, and G4endl.

00074 {
00075   G4cout << msg << " G4ErrorGeomVolumeTarget:  Volume " << theName << G4endl;
00076 }

G4bool G4ErrorGeomVolumeTarget::TargetReached ( const G4Step aStep  )  [virtual]

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 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:54 2013 for Geant4 by  doxygen 1.4.7