Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// G4SurfaceProperty Definition
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
@@ -33,7 +33,7 @@
|
||||
// Class Description:
|
||||
//
|
||||
// A base class describing a surface property.
|
||||
// Derived classes are G4Opticalsurface, G4Firovsurface, etc.
|
||||
// Derived classes are G4Opticalsurface, G4Firovsurface, etc.
|
||||
// Contains the enumeration G4SurfaceType.
|
||||
|
||||
// File: G4SurfaceProperty.hh
|
||||
@@ -42,16 +42,12 @@
|
||||
// Version: 1.0
|
||||
// Created: 13-10-2003
|
||||
// Author: Fan Lei
|
||||
// Updated: Mariele Stockhoff 2017-02-24 add DAVIS model
|
||||
// Updated: Mariele Stockhoff 2017-02-24 add DAVIS model
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef G4SurfaceProperty_h
|
||||
#define G4SurfaceProperty_h 1
|
||||
|
||||
/////////////
|
||||
// Includes
|
||||
/////////////
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "G4Types.hh"
|
||||
@@ -63,81 +59,47 @@ typedef std::vector<G4SurfaceProperty*> G4SurfacePropertyTable;
|
||||
|
||||
enum G4SurfaceType
|
||||
{
|
||||
dielectric_metal, // dielectric-metal interface
|
||||
dielectric_dielectric, // dielectric-dielectric interface
|
||||
dielectric_LUT, // dielectric-Look-Up-Table interface
|
||||
dielectric_LUTDAVIS, // dielectric-Look-Up-Table DAVIS interface
|
||||
dielectric_dichroic, // dichroic filter interface
|
||||
firsov, // for Firsov Process
|
||||
x_ray // for x-ray mirror process
|
||||
dielectric_metal, // dielectric-metal interface
|
||||
dielectric_dielectric, // dielectric-dielectric interface
|
||||
dielectric_LUT, // dielectric-Look-Up-Table interface
|
||||
dielectric_LUTDAVIS, // dielectric-Look-Up-Table DAVIS interface
|
||||
dielectric_dichroic, // dichroic filter interface
|
||||
firsov, // for Firsov Process
|
||||
x_ray // for x-ray mirror process
|
||||
};
|
||||
|
||||
/////////////////////
|
||||
// Class Definition
|
||||
/////////////////////
|
||||
|
||||
class G4SurfaceProperty
|
||||
{
|
||||
public: // Without description
|
||||
public:
|
||||
G4SurfaceProperty(const G4String& name, G4SurfaceType type = x_ray);
|
||||
// Constructor of a X-ray optical surface object.
|
||||
|
||||
//////////////
|
||||
// Operators
|
||||
//////////////
|
||||
G4SurfaceProperty();
|
||||
virtual ~G4SurfaceProperty();
|
||||
|
||||
// G4SurfaceProperty(const G4SurfaceProperty &right);
|
||||
// const G4SurfaceProperty & operator=(const G4SurfaceProperty &right);
|
||||
const G4String& GetName() const { return theName; }
|
||||
// Returns the surface name.
|
||||
void SetName(const G4String& name) { theName = name; }
|
||||
// Sets the surface name.
|
||||
|
||||
// G4bool operator==(const G4SurfaceProperty &right) const;
|
||||
// G4bool operator!=(const G4SurfaceProperty &right) const;
|
||||
const G4SurfaceType& GetType() const { return theType; }
|
||||
// Returns the surface type.
|
||||
virtual void SetType(const G4SurfaceType& type) { theType = type; }
|
||||
// Sets the surface type.
|
||||
|
||||
public: // With description
|
||||
static void CleanSurfacePropertyTable();
|
||||
static const G4SurfacePropertyTable* GetSurfacePropertyTable();
|
||||
static size_t GetNumberOfSurfaceProperties();
|
||||
static void DumpTableInfo();
|
||||
// To handle the table of surface properties.
|
||||
|
||||
////////////////////////////////
|
||||
// Constructors and Destructor
|
||||
////////////////////////////////
|
||||
protected:
|
||||
G4String theName; // Surface name
|
||||
|
||||
G4SurfaceProperty(const G4String& name, G4SurfaceType type = x_ray);
|
||||
// Constructor of a X-ray optical surface object.
|
||||
G4SurfaceType theType; // Surface type
|
||||
|
||||
public: // Without description
|
||||
|
||||
G4SurfaceProperty();
|
||||
virtual ~G4SurfaceProperty();
|
||||
|
||||
////////////
|
||||
// Methods
|
||||
////////////
|
||||
|
||||
public: // With description
|
||||
|
||||
const G4String& GetName() const { return theName; }
|
||||
// Returns the surface name.
|
||||
void SetName(const G4String& name) { theName = name; }
|
||||
// Sets the surface name.
|
||||
|
||||
const G4SurfaceType& GetType() const { return theType; }
|
||||
// Returns the surface type.
|
||||
void SetType(const G4SurfaceType& type) { theType = type; }
|
||||
// Sets the surface type.
|
||||
|
||||
static void CleanSurfacePropertyTable();
|
||||
static const G4SurfacePropertyTable* GetSurfacePropertyTable();
|
||||
static size_t GetNumberOfSurfaceProperties();
|
||||
static void DumpTableInfo();
|
||||
// To handle the table of surface properties.
|
||||
|
||||
protected:
|
||||
|
||||
// ------------------
|
||||
// Basic data members ( To define surface property)
|
||||
// ------------------
|
||||
|
||||
G4String theName; // Surface name
|
||||
|
||||
G4SurfaceType theType; // Surface type
|
||||
|
||||
static G4SurfacePropertyTable theSurfacePropertyTable;
|
||||
// The static Table of SurfaceProperties.
|
||||
static G4SurfacePropertyTable theSurfacePropertyTable;
|
||||
// The static Table of SurfaceProperties.
|
||||
};
|
||||
|
||||
#endif /* G4SurfaceProperty_h */
|
||||
|
||||
Reference in New Issue
Block a user