50 G4int theMaxPointsPerError )
51 : out(o), maxPointsPerError(theMaxPointsPerError)
64 o << std::setprecision(6) << std::setw(14) << p.
x()/cm;
65 o << std::setprecision(6) << std::setw(14) << p.
y()/cm;
66 o << std::setprecision(6) << std::setw(14) << p.
z()/cm;
85 o << volume->GetName() <<
"[" << volume->GetCopyNo() <<
"]";
103 out <<
"GeomTest Error: SolidProblem\n"
104 <<
" " << message <<
"\n"
105 <<
" Solid name = " << solid->
GetName() <<
"\n"
106 <<
" Local position = " <<
PrintPos(point) << std::endl;
115 out << message << std::endl;
128 out <<
"GeomTest Error: Overlapping daughter volumes\n"
133 <<
" appear to overlap at the following " << (n>1 ?
"points" :
"point")
134 <<
" in global coordinates:";
136 G4int nInterval, nStop;
144 out <<
" (list truncated)\n";
153 for(i=0;i<nStop;i+=nInterval) {
158 out <<
" Which in the mother coordinate system " <<
IsAre(n) <<
":\n";
161 for(i=0;i<nStop;i+=nInterval) {
166 out <<
" Which in the coordinate system of "
170 for(i=0;i<nStop;i+=nInterval) {
175 out <<
" Which in the coordinate system of "
179 for(i=0;i<nStop;i+=nInterval) {
197 out <<
"GeomTest Error: Overshooting daughter volume\n"
199 <<
" appears to extend outside the mother volume "
201 <<
" at the following " << (n>1 ?
"points" :
"point")
202 <<
" in global coordinates:";
205 G4int nInterval, nStop;
213 out <<
" (list truncated)\n";
222 for(i=0;i<nStop;i+=nInterval) {
227 out <<
" Which in the mother coordinate system " <<
IsAre(n) <<
":\n";
230 for(i=0;i<nStop;i+=nInterval) {
235 out <<
" Which in the coordinate system of "
239 for(i=0;i<nStop;i+=nInterval) {
256 static const char *header =
257 " length (cm) ---------- start position (cm) ----------- ----------- end position (cm) ------------\n";
273 out <<
" " << std::setprecision(6) << std::setw(14)
287 const char *is =
"is";
288 const char *are =
"are";
290 return n > 1 ? are : is;
const G4VPhysicalVolume * GetMother() const
void GetGlobalPoints(G4int i, G4ThreeVector &s1, G4ThreeVector &s2) const
void GetMotherPoints(G4int i, G4ThreeVector &s1, G4ThreeVector &s2) const
void GetDaught2Points(G4int, G4ThreeVector &, G4ThreeVector &) const
void GetDaught1Points(G4int, G4ThreeVector &, G4ThreeVector &) const
const G4VPhysicalVolume * GetDaughter1() const
const G4VPhysicalVolume * GetDaughter2() const
const G4VPhysicalVolume * GetDaughter() const
void GetDaughtPoints(G4int i, G4ThreeVector &s1, G4ThreeVector &s2) const
void Print(std::ostream &) const
void Print(std::ostream &) const
virtual ~G4GeomTestStreamLogger()
void PrintSegmentListElement(const G4ThreeVector &s1, const G4ThreeVector &s2)
void PrintSegmentListHeader()
virtual void OvershootingDaughter(const G4GeomTestOvershootList *list)
friend std::ostream & operator<<(std::ostream &, const G4GeomTestStreamLogger::PrintPos &)
G4GeomTestStreamLogger(std::ostream &o, G4int theMaxPointsPerError=20)
const char * IsAre(G4int n)
virtual void SolidProblem(const G4VSolid *solid, const G4String &message, const G4ThreeVector &point)
virtual void OverlappingDaughters(const G4GeomTestOverlapList *list)
virtual void NoProblem(const G4String &message)