Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4VTwistSurface::Boundary Class Reference

#include <G4VTwistSurface.hh>

Public Member Functions

 Boundary ()=default
 
virtual ~Boundary ()=default
 
void SetFields (const G4int &areacode, const G4ThreeVector &d, const G4ThreeVector &x0, const G4int &boundarytype)
 
G4bool IsEmpty () const
 
G4bool GetBoundaryParameters (const G4int &areacode, G4ThreeVector &d, G4ThreeVector &x0, G4int &boundarytype) const
 

Detailed Description

Definition at line 273 of file G4VTwistSurface.hh.

Constructor & Destructor Documentation

◆ Boundary()

G4VTwistSurface::Boundary::Boundary ( )
default

◆ ~Boundary()

virtual G4VTwistSurface::Boundary::~Boundary ( )
virtualdefault

Member Function Documentation

◆ GetBoundaryParameters()

G4bool G4VTwistSurface::Boundary::GetBoundaryParameters ( const G4int & areacode,
G4ThreeVector & d,
G4ThreeVector & x0,
G4int & boundarytype ) const

Definition at line 1292 of file G4VTwistSurface.cc.

1296{
1297 // areacode must be one of them:
1298 // sAxis0 & sAxisMin, sAxis0 & sAxisMax,
1299 // sAxis1 & sAxisMin, sAxis1 & sAxisMax
1300 //
1301 if (((areacode & sAxis0) != 0) && ((areacode & sAxis1) != 0))
1302 {
1303 std::ostringstream message;
1304 message << "Located in the corner area." << G4endl
1305 << " This function returns a direction vector of "
1306 << "a boundary line." << G4endl
1307 << " areacode = " << areacode;
1308 G4Exception("G4VTwistSurface::Boundary::GetBoundaryParameters()",
1309 "GeomSolids0003", FatalException, message);
1310 }
1311 if ((areacode & sSizeMask) != (fBoundaryAcode & sSizeMask))
1312 {
1313 return false;
1314 }
1315 d = fBoundaryDirection;
1316 x0 = fBoundaryX0;
1317 boundarytype = fBoundaryType;
1318 return true;
1319}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
#define G4endl
Definition G4ios.hh:67
static const G4int sAxis0
static const G4int sAxis1
static const G4int sSizeMask

◆ IsEmpty()

G4bool G4VTwistSurface::Boundary::IsEmpty ( ) const

Definition at line 1283 of file G4VTwistSurface.cc.

1284{
1285 return fBoundaryAcode == -1;
1286}

◆ SetFields()

void G4VTwistSurface::Boundary::SetFields ( const G4int & areacode,
const G4ThreeVector & d,
const G4ThreeVector & x0,
const G4int & boundarytype )

Definition at line 1269 of file G4VTwistSurface.cc.

1273{
1274 fBoundaryAcode = areacode;
1275 fBoundaryDirection = d;
1276 fBoundaryX0 = x0;
1277 fBoundaryType = boundarytype;
1278}

The documentation for this class was generated from the following files: