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,v 1.1 2010/11/04 08:57:56 gcosmo Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-04-ref-00 $ |
---|
29 | // |
---|
30 | // |
---|
31 | // class G4NavigationLogger |
---|
32 | // |
---|
33 | // Class description: |
---|
34 | // |
---|
35 | // Simple utility class for use by navigation systems |
---|
36 | // for verbosity and check-mode. |
---|
37 | |
---|
38 | // History: |
---|
39 | // - Created. Gabriele Cosmo, November 2010 |
---|
40 | // -------------------------------------------------------------------- |
---|
41 | #ifndef G4NAVIGATIONLOGGER_HH |
---|
42 | #define G4NAVIGATIONLOGGER_HH |
---|
43 | |
---|
44 | #include "G4NavigationHistory.hh" |
---|
45 | #include "G4VPhysicalVolume.hh" |
---|
46 | #include "G4LogicalVolume.hh" |
---|
47 | #include "G4VSolid.hh" |
---|
48 | #include "G4ThreeVector.hh" |
---|
49 | |
---|
50 | class G4NavigationLogger |
---|
51 | { |
---|
52 | public: // with description |
---|
53 | |
---|
54 | G4NavigationLogger(const G4String& id); |
---|
55 | ~G4NavigationLogger(); |
---|
56 | |
---|
57 | void PreComputeStepLog (const G4VPhysicalVolume* motherPhysical, |
---|
58 | G4double motherSafety, |
---|
59 | const G4ThreeVector& localPoint) const; |
---|
60 | void AlongComputeStepLog(const G4VSolid* sampleSolid, |
---|
61 | const G4ThreeVector& samplePoint, |
---|
62 | const G4ThreeVector& sampleDirection, |
---|
63 | const G4ThreeVector& localDirection, |
---|
64 | G4double sampleSafety, |
---|
65 | G4double sampleStep) const; |
---|
66 | void PostComputeStepLog (const G4VSolid* motherSolid, |
---|
67 | const G4ThreeVector& localPoint, |
---|
68 | const G4ThreeVector& localDirection, |
---|
69 | G4double motherStep, |
---|
70 | G4double motherSafety) const; |
---|
71 | void ComputeSafetyLog (const G4VSolid* solid, |
---|
72 | const G4ThreeVector& point, |
---|
73 | G4double safety, |
---|
74 | G4bool banner) const; |
---|
75 | void PrintDaughterLog (const G4VSolid* sampleSolid, |
---|
76 | const G4ThreeVector& samplePoint, |
---|
77 | G4double sampleSafety, |
---|
78 | G4double sampleStep) const; |
---|
79 | public: // without description |
---|
80 | |
---|
81 | inline G4int GetVerboseLevel() const { return fVerbose; } |
---|
82 | inline void SetVerboseLevel(G4int level) { fVerbose = level; } |
---|
83 | |
---|
84 | private: |
---|
85 | |
---|
86 | G4String fId; // Navigation type |
---|
87 | G4int fVerbose; // Verbosity level |
---|
88 | }; |
---|
89 | |
---|
90 | #endif |
---|