G4GeomTestErrorList Class Reference

#include <G4GeomTestErrorList.hh>

Inheritance diagram for G4GeomTestErrorList:

G4GeomTestOverlapList G4GeomTestOvershootList

Public Member Functions

 G4GeomTestErrorList (const G4VPhysicalVolume *theMother)
virtual ~G4GeomTestErrorList ()
void AddError (const G4ThreeVector &s1, const G4ThreeVector &s2)
const G4VPhysicalVolumeGetMother () const
G4int NumError () const
void GetMotherPoints (G4int i, G4ThreeVector &s1, G4ThreeVector &s2) const
void GetGlobalPoints (G4int i, G4ThreeVector &s1, G4ThreeVector &s2) const
void GetOneDaughtPoints (const G4VPhysicalVolume *daught, G4int i, G4ThreeVector &s1, G4ThreeVector &s2) const

Data Structures

class  Segment

Detailed Description

Definition at line 55 of file G4GeomTestErrorList.hh.


Constructor & Destructor Documentation

G4GeomTestErrorList::G4GeomTestErrorList ( const G4VPhysicalVolume theMother  ) 

Definition at line 45 of file G4GeomTestErrorList.cc.

00046   : mother(theMother)
00047 {
00048   FindGlobalCoordinateSystem();
00049 }

G4GeomTestErrorList::~G4GeomTestErrorList (  )  [virtual]

Definition at line 55 of file G4GeomTestErrorList.cc.

00055 {;}


Member Function Documentation

void G4GeomTestErrorList::AddError ( const G4ThreeVector s1,
const G4ThreeVector s2 
)

Definition at line 64 of file G4GeomTestErrorList.cc.

00066 {
00067   segments.push_back( Segment(s1,s2) );
00068 }

void G4GeomTestErrorList::GetGlobalPoints ( G4int  i,
G4ThreeVector s1,
G4ThreeVector s2 
) const

Definition at line 109 of file G4GeomTestErrorList.cc.

Referenced by G4GeomTestStreamLogger::OverlappingDaughters(), and G4GeomTestStreamLogger::OvershootingDaughter().

00112 {
00113   s1 = globalTranslation + globalRotation*segments[i].GetS1();
00114   s2 = globalTranslation + globalRotation*segments[i].GetS2();
00115 }

const G4VPhysicalVolume * G4GeomTestErrorList::GetMother (  )  const

Definition at line 74 of file G4GeomTestErrorList.cc.

Referenced by G4GeomTestOvershootList::GetDaughter(), G4GeomTestOverlapList::GetDaughter1(), G4GeomTestOverlapList::GetDaughter2(), G4GeomTestStreamLogger::OverlappingDaughters(), and G4GeomTestStreamLogger::OvershootingDaughter().

00075 {
00076   return mother;
00077 }

void G4GeomTestErrorList::GetMotherPoints ( G4int  i,
G4ThreeVector s1,
G4ThreeVector s2 
) const

Definition at line 95 of file G4GeomTestErrorList.cc.

Referenced by G4GeomTestStreamLogger::OverlappingDaughters(), and G4GeomTestStreamLogger::OvershootingDaughter().

00098 {
00099   s1 = segments[i].GetS1();
00100   s2 = segments[i].GetS2();
00101 }

void G4GeomTestErrorList::GetOneDaughtPoints ( const G4VPhysicalVolume daught,
G4int  i,
G4ThreeVector s1,
G4ThreeVector s2 
) const

Definition at line 124 of file G4GeomTestErrorList.cc.

References G4VPhysicalVolume::GetFrameRotation(), and G4VPhysicalVolume::GetFrameTranslation().

Referenced by G4GeomTestOverlapList::GetDaught1Points(), G4GeomTestOverlapList::GetDaught2Points(), and G4GeomTestOvershootList::GetDaughtPoints().

00128 {
00129   const G4RotationMatrix *rotation = daught->GetFrameRotation();
00130   const G4ThreeVector &translation = daught->GetFrameTranslation();
00131 
00132   if (rotation) {
00133     s1 = (*rotation)*(translation + segments[i].GetS1());
00134     s2 = (*rotation)*(translation + segments[i].GetS2());
00135   }
00136   else {
00137     s1 = translation + segments[i].GetS1();
00138     s2 = translation + segments[i].GetS2();
00139   }
00140 }

G4int G4GeomTestErrorList::NumError (  )  const

Definition at line 83 of file G4GeomTestErrorList.cc.

Referenced by G4GeomTestStreamLogger::OverlappingDaughters(), and G4GeomTestStreamLogger::OvershootingDaughter().

00084 {
00085   return segments.size();
00086 }


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