Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4LogicalSurface.hh
Go to the documentation of this file.
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$
28//
29////////////////////////////////////////////////////////////////////////
30// Class G4LogicalSurface
31////////////////////////////////////////////////////////////////////////
32//
33// Class description:
34//
35// An abstraction of a geometrical surface, it is an abstract
36// base class for different implementations of surfaces.
37// Its primary function is to hold pointers to objects that describe the
38// surface's physical properties. For example it holds a pointer to a
39// surface's optical properties, and because of this it is used in processes
40// like G4OpBoundaryProcess.
41//
42// Methods:
43// G4SurfaceProperty* GetSurfaceProperty() const
44// void SetSurfaceProperty(G4SurfaceProperty*)
45//
46// G4String GetName() const
47// void SetName(const G4String&)
48//
49// G4TransitionRadiationSurface* GetTransitionRadiationSurface() const
50// void SetTransitionRadiationSurface(G4TransitionRadiationSurface*)
51//
52// Data members:
53// G4String theName
54// G4SurfaceProperty* theSurfaceProperty
55// G4TransitionRadiationSurface* theTransRadSurface
56
57// Created: 1997, June, 4th to 17th
58// Author: John Apostolakis, (with help of Peter Gumplinger)
59// mail: [email protected]
60//
61// ------------------------------------------------------------------------
62#ifndef G4LogicalSurface_h
63#define G4LogicalSurface_h 1
64
65/////////////
66// Includes
67/////////////
68
69#include "G4Types.hh"
70#include "G4String.hh"
71
73class G4TransitionRadiationSurface;
74
75/////////////////////
76// Class Definition
77/////////////////////
78
80{
81
82 public: // with description
83
85 inline void SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty);
86
87 inline const G4String& GetName() const;
88 inline void SetName(const G4String& name);
89
90 inline G4TransitionRadiationSurface* GetTransitionRadiationSurface() const;
91 inline void SetTransitionRadiationSurface(G4TransitionRadiationSurface* tRadSurf);
92
93 public: // without description
94
95 virtual ~G4LogicalSurface();
96
97 inline G4int operator==(const G4LogicalSurface &right) const;
98 inline G4int operator!=(const G4LogicalSurface &right) const;
99
100 protected:
101
102 // There should be no instances of this class
103
104 G4LogicalSurface(const G4String& name, G4SurfaceProperty* prop);
105 // Is the name more meaningful for the properties or the logical surface ?
106
107 private: // Copying restricted
108
110 inline const G4LogicalSurface& operator=(const G4LogicalSurface& right);
111
112 private:
113
114 G4String theName; // Surface name
115
116 G4SurfaceProperty* theSurfaceProperty;
117 G4TransitionRadiationSurface* theTransRadSurface;
118};
119
120////////////////////
121// Inline methods
122////////////////////
123
124#include "G4LogicalSurface.icc"
125
126#endif /* G4LogicalSurface_h */
int G4int
Definition: G4Types.hh:66
G4int operator==(const G4LogicalSurface &right) const
const G4String & GetName() const
G4int operator!=(const G4LogicalSurface &right) const
virtual ~G4LogicalSurface()
void SetName(const G4String &name)
G4SurfaceProperty * GetSurfaceProperty() const
G4TransitionRadiationSurface * GetTransitionRadiationSurface() const
void SetTransitionRadiationSurface(G4TransitionRadiationSurface *tRadSurf)
void SetSurfaceProperty(G4SurfaceProperty *ptrSurfaceProperty)