Files
geant4/source/materials/include/G4SurfaceProperty.hh
T
2023-06-30 09:09:57 +02:00

104 lines
4.1 KiB
C++

//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
////////////////////////////////////////////////////////////////////////
// G4SurfaceProperty Definition
////////////////////////////////////////////////////////////////////////
//
// Class Description:
//
// A base class describing a surface property.
// Derived classes are G4Opticalsurface, G4Firovsurface, etc.
// Contains the enumeration G4SurfaceType.
// File: G4SurfaceProperty.hh
// Description: A base class for for descriping surface property such
// as G4OpticalSurface, G4FirsovSurface, G4X-raySurface
// Version: 1.0
// Created: 13-10-2003
// Author: Fan Lei
// Updated: Mariele Stockhoff 2017-02-24 add DAVIS model
////////////////////////////////////////////////////////////////////////
#ifndef G4SurfaceProperty_h
#define G4SurfaceProperty_h 1
#include "G4String.hh"
#include "G4Types.hh"
#include <vector>
class G4SurfaceProperty;
using G4SurfacePropertyTable = std::vector<G4SurfaceProperty*>;
// clang-format off
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
coated // coated_dielectric-dielectric interface
};
// clang-format on
class G4SurfaceProperty
{
public:
// Constructor of a X-ray optical surface object.
G4SurfaceProperty();
G4SurfaceProperty(const G4String& name, G4SurfaceType type = x_ray);
virtual ~G4SurfaceProperty() = default;
// Returns the surface name.
const G4String& GetName() const { return theName; }
// Sets the surface name.
void SetName(const G4String& name) { theName = name; }
// Returns the surface type.
const G4SurfaceType& GetType() const { return theType; }
// Sets the surface type.
virtual void SetType(const G4SurfaceType& type) { theType = type; }
// To handle the table of surface properties.
static void CleanSurfacePropertyTable();
static const G4SurfacePropertyTable* GetSurfacePropertyTable();
static size_t GetNumberOfSurfaceProperties();
static void DumpTableInfo();
protected:
G4String theName; // Surface name
G4SurfaceType theType; // Surface type
static G4SurfacePropertyTable theSurfacePropertyTable; // The static Table of SurfaceProperties.
};
#endif /* G4SurfaceProperty_h */