Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4NavigationLogger.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: G4NavigationLogger.hh 66356 2012-12-18 09:02:32Z gcosmo $
28 //
29 //
30 // class G4NavigationLogger
31 //
32 // Class description:
33 //
34 // Simple utility class for use by navigation systems
35 // for verbosity and check-mode.
36 
37 // History:
38 // - Created. Gabriele Cosmo, November 2010
39 // --------------------------------------------------------------------
40 #ifndef G4NAVIGATIONLOGGER_HH
41 #define G4NAVIGATIONLOGGER_HH
42 
43 #include "G4NavigationHistory.hh"
44 #include "G4VPhysicalVolume.hh"
45 #include "G4LogicalVolume.hh"
46 #include "G4VSolid.hh"
47 #include "G4ThreeVector.hh"
48 
50 {
51  public: // with description
52 
53  G4NavigationLogger(const G4String& id);
55 
56  void PreComputeStepLog (const G4VPhysicalVolume* motherPhysical,
57  G4double motherSafety,
58  const G4ThreeVector& localPoint) const;
59  void AlongComputeStepLog(const G4VSolid* sampleSolid,
60  const G4ThreeVector& samplePoint,
61  const G4ThreeVector& sampleDirection,
62  const G4ThreeVector& localDirection,
63  G4double sampleSafety,
64  G4double sampleStep) const;
65  void PostComputeStepLog (const G4VSolid* motherSolid,
66  const G4ThreeVector& localPoint,
67  const G4ThreeVector& localDirection,
68  G4double motherStep,
69  G4double motherSafety) const;
70  void ComputeSafetyLog (const G4VSolid* solid,
71  const G4ThreeVector& point,
72  G4double safety,
73  G4bool banner) const;
74  void PrintDaughterLog (const G4VSolid* sampleSolid,
75  const G4ThreeVector& samplePoint,
76  G4double sampleSafety,
77  G4double sampleStep) const;
78  public: // without description
79 
80  inline G4int GetVerboseLevel() const { return fVerbose; }
81  inline void SetVerboseLevel(G4int level) { fVerbose = level; }
82 
83  private:
84 
85  G4String fId; // Navigation type
86  G4int fVerbose; // Verbosity level
87 };
88 
89 #endif
void SetVerboseLevel(G4int level)
void AlongComputeStepLog(const G4VSolid *sampleSolid, const G4ThreeVector &samplePoint, const G4ThreeVector &sampleDirection, const G4ThreeVector &localDirection, G4double sampleSafety, G4double sampleStep) const
void PrintDaughterLog(const G4VSolid *sampleSolid, const G4ThreeVector &samplePoint, G4double sampleSafety, G4double sampleStep) const
void ComputeSafetyLog(const G4VSolid *solid, const G4ThreeVector &point, G4double safety, G4bool banner) const
int G4int
Definition: G4Types.hh:78
G4NavigationLogger(const G4String &id)
bool G4bool
Definition: G4Types.hh:79
void PreComputeStepLog(const G4VPhysicalVolume *motherPhysical, G4double motherSafety, const G4ThreeVector &localPoint) const
G4int GetVerboseLevel() const
void PostComputeStepLog(const G4VSolid *motherSolid, const G4ThreeVector &localPoint, const G4ThreeVector &localDirection, G4double motherStep, G4double motherSafety) const
double G4double
Definition: G4Types.hh:76