Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GeomTestErrorList Class Reference

#include <G4GeomTestErrorList.hh>

+ Inheritance diagram for G4GeomTestErrorList:

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
 

Detailed Description

Definition at line 55 of file G4GeomTestErrorList.hh.

Constructor & Destructor Documentation

◆ G4GeomTestErrorList()

G4GeomTestErrorList::G4GeomTestErrorList ( const G4VPhysicalVolume theMother)

Definition at line 45 of file G4GeomTestErrorList.cc.

46 : mother(theMother)
47{
48 FindGlobalCoordinateSystem();
49}

◆ ~G4GeomTestErrorList()

G4GeomTestErrorList::~G4GeomTestErrorList ( )
virtual

Definition at line 55 of file G4GeomTestErrorList.cc.

55{;}

Member Function Documentation

◆ AddError()

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

Definition at line 64 of file G4GeomTestErrorList.cc.

66{
67 segments.push_back( Segment(s1,s2) );
68}

◆ GetGlobalPoints()

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

Definition at line 109 of file G4GeomTestErrorList.cc.

112{
113 s1 = globalTranslation + globalRotation*segments[i].GetS1();
114 s2 = globalTranslation + globalRotation*segments[i].GetS2();
115}

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

◆ GetMother()

◆ GetMotherPoints()

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

Definition at line 95 of file G4GeomTestErrorList.cc.

98{
99 s1 = segments[i].GetS1();
100 s2 = segments[i].GetS2();
101}

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

◆ GetOneDaughtPoints()

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

Definition at line 124 of file G4GeomTestErrorList.cc.

128{
129 const G4RotationMatrix *rotation = daught->GetFrameRotation();
130 const G4ThreeVector &translation = daught->GetFrameTranslation();
131
132 if (rotation) {
133 s1 = (*rotation)*(translation + segments[i].GetS1());
134 s2 = (*rotation)*(translation + segments[i].GetS2());
135 }
136 else {
137 s1 = translation + segments[i].GetS1();
138 s2 = translation + segments[i].GetS2();
139 }
140}
G4ThreeVector GetFrameTranslation() const
const G4RotationMatrix * GetFrameRotation() const

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

◆ NumError()

G4int G4GeomTestErrorList::NumError ( ) const

Definition at line 83 of file G4GeomTestErrorList.cc.

84{
85 return segments.size();
86}

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


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