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

#include <G4GeomTestOverlapList.hh>

+ Inheritance diagram for G4GeomTestOverlapList:

Public Member Functions

 G4GeomTestOverlapList ()
 
 G4GeomTestOverlapList (const G4VPhysicalVolume *theMother, G4int theDaughter1, G4int theDaughter2)
 
virtual ~G4GeomTestOverlapList ()
 
G4bool operator== (const G4GeomTestOverlapList &other) const
 
G4bool operator< (const G4GeomTestOverlapList &other) const
 
const G4VPhysicalVolumeGetDaughter1 () const
 
const G4VPhysicalVolumeGetDaughter2 () const
 
G4int GetDaughter1Index () const
 
G4int GetDaughter2Index () const
 
void GetDaught1Points (G4int, G4ThreeVector &, G4ThreeVector &) const
 
void GetDaught2Points (G4int, G4ThreeVector &, G4ThreeVector &) const
 
- Public Member Functions inherited from G4GeomTestErrorList
 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 52 of file G4GeomTestOverlapList.hh.

Constructor & Destructor Documentation

◆ G4GeomTestOverlapList() [1/2]

G4GeomTestOverlapList::G4GeomTestOverlapList ( )

Definition at line 58 of file G4GeomTestOverlapList.cc.

60 daughter1(0),
61 daughter2(0)
62{}

◆ G4GeomTestOverlapList() [2/2]

G4GeomTestOverlapList::G4GeomTestOverlapList ( const G4VPhysicalVolume theMother,
G4int  theDaughter1,
G4int  theDaughter2 
)

Definition at line 45 of file G4GeomTestOverlapList.cc.

49 : G4GeomTestErrorList(theMother),
50 daughter1(theDaughter1),
51 daughter2(theDaughter2)
52{}

◆ ~G4GeomTestOverlapList()

G4GeomTestOverlapList::~G4GeomTestOverlapList ( )
virtual

Definition at line 68 of file G4GeomTestOverlapList.cc.

69{}

Member Function Documentation

◆ GetDaught1Points()

void G4GeomTestOverlapList::GetDaught1Points ( G4int  i,
G4ThreeVector s1,
G4ThreeVector s2 
) const

Definition at line 122 of file G4GeomTestOverlapList.cc.

125{
126 GetOneDaughtPoints( GetDaughter1(), i, s1, s2 );
127}
void GetOneDaughtPoints(const G4VPhysicalVolume *daught, G4int i, G4ThreeVector &s1, G4ThreeVector &s2) const
const G4VPhysicalVolume * GetDaughter1() const

Referenced by G4GeomTestStreamLogger::OverlappingDaughters().

◆ GetDaught2Points()

void G4GeomTestOverlapList::GetDaught2Points ( G4int  i,
G4ThreeVector s1,
G4ThreeVector s2 
) const

Definition at line 136 of file G4GeomTestOverlapList.cc.

139{
140 GetOneDaughtPoints( GetDaughter2(), i, s1, s2 );
141}
const G4VPhysicalVolume * GetDaughter2() const

Referenced by G4GeomTestStreamLogger::OverlappingDaughters().

◆ GetDaughter1()

const G4VPhysicalVolume * G4GeomTestOverlapList::GetDaughter1 ( ) const

Definition at line 95 of file G4GeomTestOverlapList.cc.

96{
97 return GetMother()->GetLogicalVolume()->GetDaughter(daughter1);
98}
const G4VPhysicalVolume * GetMother() const
G4VPhysicalVolume * GetDaughter(const G4int i) const
G4LogicalVolume * GetLogicalVolume() const

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

◆ GetDaughter1Index()

G4int G4GeomTestOverlapList::GetDaughter1Index ( ) const

Definition at line 105 of file G4GeomTestOverlapList.cc.

106{
107 return daughter1;
108}

◆ GetDaughter2()

const G4VPhysicalVolume * G4GeomTestOverlapList::GetDaughter2 ( ) const

Definition at line 100 of file G4GeomTestOverlapList.cc.

101{
102 return GetMother()->GetLogicalVolume()->GetDaughter(daughter2);
103}

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

◆ GetDaughter2Index()

G4int G4GeomTestOverlapList::GetDaughter2Index ( ) const

Definition at line 110 of file G4GeomTestOverlapList.cc.

111{
112 return daughter2;
113}

◆ operator<()

G4bool G4GeomTestOverlapList::operator< ( const G4GeomTestOverlapList other) const

Definition at line 81 of file G4GeomTestOverlapList.cc.

83{
84 if (daughter1 > other.daughter1) return false;
85 if (daughter1 < other.daughter1) return true;
86
87 return (daughter2 < other.daughter2);
88}

◆ operator==()

G4bool G4GeomTestOverlapList::operator== ( const G4GeomTestOverlapList other) const

Definition at line 76 of file G4GeomTestOverlapList.cc.

77{
78 return daughter1==other.daughter1 && daughter2==other.daughter2;
79}

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