G4NavigationLogger.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // 
00030 // class G4NavigationLogger
00031 //
00032 // Class description:
00033 //
00034 // Simple utility class for use by navigation systems
00035 // for verbosity and check-mode.
00036 
00037 // History:
00038 // - Created. Gabriele Cosmo, November 2010
00039 // --------------------------------------------------------------------
00040 #ifndef G4NAVIGATIONLOGGER_HH
00041 #define G4NAVIGATIONLOGGER_HH
00042 
00043 #include "G4NavigationHistory.hh"
00044 #include "G4VPhysicalVolume.hh"
00045 #include "G4LogicalVolume.hh"
00046 #include "G4VSolid.hh"
00047 #include "G4ThreeVector.hh"
00048 
00049 class G4NavigationLogger
00050 {
00051   public:  // with description
00052 
00053     G4NavigationLogger(const G4String& id);
00054    ~G4NavigationLogger();
00055 
00056     void PreComputeStepLog  (const G4VPhysicalVolume* motherPhysical,
00057                                    G4double motherSafety,
00058                              const G4ThreeVector& localPoint) const;
00059     void AlongComputeStepLog(const G4VSolid* sampleSolid,
00060                              const G4ThreeVector& samplePoint,
00061                              const G4ThreeVector& sampleDirection,
00062                              const G4ThreeVector& localDirection,
00063                                    G4double sampleSafety,
00064                                    G4double sampleStep) const;
00065     void PostComputeStepLog (const G4VSolid* motherSolid,
00066                              const G4ThreeVector& localPoint,
00067                              const G4ThreeVector& localDirection,
00068                                    G4double motherStep,
00069                                    G4double motherSafety) const;
00070     void ComputeSafetyLog   (const G4VSolid* solid,
00071                              const G4ThreeVector& point,
00072                                    G4double safety,
00073                                    G4bool banner) const;
00074     void PrintDaughterLog   (const G4VSolid* sampleSolid,
00075                              const G4ThreeVector& samplePoint,
00076                                    G4double sampleSafety,
00077                                    G4double sampleStep) const;
00078   public:  // without description
00079 
00080     inline G4int GetVerboseLevel() const  { return fVerbose; }
00081     inline void  SetVerboseLevel(G4int level)  { fVerbose = level; }
00082 
00083   private:
00084 
00085     G4String fId;     // Navigation type
00086     G4int fVerbose;   // Verbosity level
00087 };
00088 
00089 #endif

Generated on Mon May 27 17:48:57 2013 for Geant4 by  doxygen 1.4.7