Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4GeomTestStreamLogger.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id$
28//
29// --------------------------------------------------------------------
30// GEANT 4 class header file
31//
32// G4GeomTestStreamLogger
33//
34// Class description:
35//
36// A G4GeomTestLogger that outputs to a stream.
37
38// Author: D.C.Williams, UCSC (davidw@scipp.ucsc.edu)
39// --------------------------------------------------------------------
40#ifndef G4GeomTestStreamLogger_hh
41#define G4GeomTestStreamLogger_hh
42
43#include "G4Types.hh"
44#include "G4GeomTestLogger.hh"
45
47
49{
50 public: // with description
51
52 G4GeomTestStreamLogger( std::ostream &o,
53 G4int theMaxPointsPerError=20 );
55 // Constructors and virtual destructor
56
57 virtual void SolidProblem( const G4VSolid *solid,
58 const G4String &message,
59 const G4ThreeVector &point );
60 virtual void OverlappingDaughters( const G4GeomTestOverlapList *list );
61 virtual void OvershootingDaughter( const G4GeomTestOvershootList *list );
62 virtual void NoProblem ( const G4String &message );
63
64 protected:
65
68 const G4ThreeVector &s2 );
69 // Format aides
70
71 const char *IsAre(G4int n);
72
73 public: // Solaris 7 insists on these guys being public
74
76 {
77 public:
78 PrintPos(const G4ThreeVector pos, G4bool useUnit=true )
79 : p(pos), unit(useUnit) {;}
80
81 void Print( std::ostream & ) const;
82
83 private:
85 G4bool unit;
86 };
87
89 {
90 public:
92 : volume(theVolume) {;}
93
94 void Print( std::ostream & ) const;
95
96 private:
97 const G4VPhysicalVolume *volume;
98 };
99
100 friend std::ostream &operator<<( std::ostream &,
102 friend std::ostream &operator<<( std::ostream &,
104
105 protected:
106
107 std::ostream &out;
109};
110
111#endif
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
PrintPos(const G4ThreeVector pos, G4bool useUnit=true)
VolumeNameAndCopy(const G4VPhysicalVolume *theVolume)
void PrintSegmentListElement(const G4ThreeVector &s1, const G4ThreeVector &s2)
virtual void OvershootingDaughter(const G4GeomTestOvershootList *list)
friend std::ostream & operator<<(std::ostream &, const G4GeomTestStreamLogger::PrintPos &)
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)