Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 

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 ( const G4String name)

Definition at line 43 of file G4ErrorGeomVolumeTarget.cc.

44 {
46  theName = name;
47 }
const XML_Char * name
Definition: expat.h:151
G4ErrorTargetType theType
virtual G4ErrorGeomVolumeTarget::~G4ErrorGeomVolumeTarget ( )
inlinevirtual

Definition at line 53 of file G4ErrorGeomVolumeTarget.hh.

53 {}

Member Function Documentation

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
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 }
G4VPhysicalVolume * GetNextVolume() const
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
#define G4endl
Definition: G4ios.hh:61
G4Track * GetTrack() const

Here is the call graph for this function:


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