G4SurfaceProperty.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: G4SurfaceProperty.hh 67044 2013-01-30 08:50:06Z gcosmo $
00028 //
00029 // 
00031 // G4SurfaceProperty Definition
00033 //
00034 // Class Description:
00035 //
00036 // A base class describing a surface property.
00037 // Derived classes are G4Opticalsurface, G4Firovsurface, etc.      
00038 // Contains the enumeration G4SurfaceType.
00039 
00040 // File:        G4SurfaceProperty.hh
00041 // Description: A base class for for descriping surface property such
00042 //              as G4OpticalSurface, G4FirsovSurface, G4X-raySurface
00043 // Version:     1.0
00044 // Created:     13-10-2003
00045 // Author:      Fan Lei
00046 //
00048 
00049 #ifndef G4SurfaceProperty_h
00050 #define G4SurfaceProperty_h 1
00051 
00053 // Includes
00055 
00056 #include <vector>
00057 
00058 #include "G4Types.hh"
00059 #include "G4String.hh"
00060 
00061 class G4SurfaceProperty;
00062 
00063 typedef std::vector<G4SurfaceProperty*> G4SurfacePropertyTable;
00064 
00065 enum G4SurfaceType
00066 {
00067    dielectric_metal,            // dielectric-metal interface
00068    dielectric_dielectric,       // dielectric-dielectric interface
00069    dielectric_LUT,              // dielectric-Look-Up-Table interface
00070    firsov,                      // for Firsov Process
00071    x_ray                        // for x-ray mirror process
00072 };
00073 
00075 // Class Definition
00077 
00078 class G4SurfaceProperty
00079 {
00080   public: // Without description
00081 
00083      // Operators
00085 
00086     // G4SurfaceProperty(const G4SurfaceProperty &right);
00087     // const G4SurfaceProperty & operator=(const G4SurfaceProperty &right);
00088 
00089     // G4int operator==(const G4SurfaceProperty &right) const;
00090     // G4int operator!=(const G4SurfaceProperty &right) const;
00091 
00092   public: // With description
00093 
00095     // Constructors and Destructor
00097 
00098     G4SurfaceProperty(const G4String& name, G4SurfaceType type = x_ray);
00099     // Constructor of a X-ray optical surface object.
00100 
00101   public: // Without description
00102 
00103     G4SurfaceProperty();
00104     virtual ~G4SurfaceProperty();
00105 
00107     // Methods
00109 
00110   public: // With description
00111 
00112     const G4String& GetName() const { return theName; }
00113     // Returns the surface name.
00114     void     SetName(const G4String& name) { theName = name; }
00115     // Sets the surface name.
00116 
00117     const G4SurfaceType& GetType() const { return theType; }
00118     // Returns the surface type.
00119     void     SetType(const G4SurfaceType& type) { theType = type; }
00120     // Sets the surface type.        
00121 
00122     static void CleanSurfacePropertyTable();
00123     static const G4SurfacePropertyTable* GetSurfacePropertyTable();
00124     static size_t GetNumberOfSurfaceProperties();
00125     static void DumpTableInfo();
00126     // To handle the table of surface properties.
00127 
00128   protected:
00129 
00130     // ------------------
00131     // Basic data members ( To define surface property)
00132     // ------------------
00133 
00134     G4String theName;                // Surface name
00135 
00136     G4SurfaceType theType;           // Surface type
00137 
00138     static G4SurfacePropertyTable theSurfacePropertyTable;
00139     // The static Table of SurfaceProperties.
00140 };
00141 
00142 #endif /* G4SurfaceProperty_h */

Generated on Mon May 27 17:49:56 2013 for Geant4 by  doxygen 1.4.7