Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
+113
View File
@@ -0,0 +1,113 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpticalSurface.cc,v 2.1 1998/07/13 17:14:17 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
////////////////////////////////////////////////////////////////////////
// Optical Surface Class Implementation
////////////////////////////////////////////////////////////////////////
//
// File: G4OpticalSurface.cc
// Description: An optical surface class for use in G4OpBoundaryProcess
// Version: 2.0
// Created: 1997-06-26
// Author: Peter Gumplinger
// mail: gum@triumf.ca
//
// Cvs version:
////////////////////////////////////////////////////////////////////////
#include "G4ios.hh"
#include "G4OpticalSurface.hh"
/////////////////////////
// Class Implementation
/////////////////////////
//////////////
// Operators
//////////////
const G4OpticalSurface &
G4OpticalSurface::operator=(const G4OpticalSurface &right)
{
return right;
}
/////////////////
// Constructors
/////////////////
G4OpticalSurface::G4OpticalSurface(const G4String& name,
G4OpticalSurfaceModel model,
G4OpticalSurfaceFinish finish,
G4OpticalSurfaceType type,
G4double value)
: theName(name),
theModel(model),
theFinish(finish),
theType(type),
theMaterialPropertiesTable(NULL)
{
if (model == glisur ){
polish = value;
sigma_alpha = 0.0;
}
else if ( model == unified ) {
sigma_alpha = value;
polish = 0.0;
}
else {
G4Exception("G4OpticalSurface::G4OpticalSurface ==> "
"Constructor called with INVALID model.");
}
}
G4OpticalSurface::G4OpticalSurface(const G4OpticalSurface &right)
{
*this = right;
}
G4OpticalSurface::~G4OpticalSurface(){}
G4int G4OpticalSurface::operator==(const G4OpticalSurface &right) const
{
return (this == (G4OpticalSurface *) &right);
}
G4int G4OpticalSurface::operator!=(const G4OpticalSurface &right) const
{
return (this != (G4OpticalSurface *) &right);
}
////////////
// Methods
////////////
void G4OpticalSurface::DumpInfo() const
{
// Dump info for surface
G4cout <<
" Surface type = " << theType << endl <<
" Surface finish = " << theFinish << endl <<
" Surface model = " << theModel << endl;
G4cout << endl;
G4cout << " Surface parameter " << endl;
G4cout << " ----------------- " << endl;
if (theModel == glisur ){
G4cout << polish << endl;
}
else {
G4cout << sigma_alpha << endl;
}
G4cout << endl;
}