Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VTwistSurface::Boundary Class Reference

#include <G4VTwistSurface.hh>

Public Member Functions

 Boundary ()
 
virtual ~Boundary ()
 
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 ( )

Definition at line 1273 of file G4VTwistSurface.cc.

1274{
1275}

◆ ~Boundary()

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 1309 of file G4VTwistSurface.cc.

1313{
1314 // areacode must be one of them:
1315 // sAxis0 & sAxisMin, sAxis0 & sAxisMax,
1316 // sAxis1 & sAxisMin, sAxis1 & sAxisMax
1317 //
1318 if (((areacode & sAxis0) != 0) && ((areacode & sAxis1) != 0))
1319 {
1320 std::ostringstream message;
1321 message << "Located in the corner area." << G4endl
1322 << " This function returns a direction vector of "
1323 << "a boundary line." << G4endl
1324 << " areacode = " << areacode;
1325 G4Exception("G4VTwistSurface::Boundary::GetBoundaryParameters()",
1326 "GeomSolids0003", FatalException, message);
1327 }
1328 if ((areacode & sSizeMask) != (fBoundaryAcode & sSizeMask))
1329 {
1330 return false;
1331 }
1332 d = fBoundaryDirection;
1333 x0 = fBoundaryX0;
1334 boundarytype = fBoundaryType;
1335 return true;
1336}
@ 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 1300 of file G4VTwistSurface.cc.

1301{
1302 return fBoundaryAcode == -1;
1303}

◆ SetFields()

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

Definition at line 1286 of file G4VTwistSurface.cc.

1290{
1291 fBoundaryAcode = areacode;
1292 fBoundaryDirection = d;
1293 fBoundaryX0 = x0;
1294 fBoundaryType = boundarytype;
1295}

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