Geant4 10.7.0
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 283 of file G4VTwistSurface.hh.

Constructor & Destructor Documentation

◆ Boundary()

G4VTwistSurface::Boundary::Boundary ( )

Definition at line 1281 of file G4VTwistSurface.cc.

1282 : fBoundaryAcode(-1), fBoundaryType(0)
1283{
1284}

◆ ~Boundary()

G4VTwistSurface::Boundary::~Boundary ( )
virtual

Definition at line 1289 of file G4VTwistSurface.cc.

1290{
1291}

Member Function Documentation

◆ GetBoundaryParameters()

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

Definition at line 1321 of file G4VTwistSurface.cc.

1325{
1326 // areacode must be one of them:
1327 // sAxis0 & sAxisMin, sAxis0 & sAxisMax,
1328 // sAxis1 & sAxisMin, sAxis1 & sAxisMax
1329 //
1330 if ((areacode & sAxis0) && (areacode & sAxis1))
1331 {
1332 std::ostringstream message;
1333 message << "Located in the corner area." << G4endl
1334 << " This function returns a direction vector of "
1335 << "a boundary line." << G4endl
1336 << " areacode = " << areacode;
1337 G4Exception("G4VTwistSurface::Boundary::GetBoundaryParameters()",
1338 "GeomSolids0003", FatalException, message);
1339 }
1340 if ((areacode & sSizeMask) != (fBoundaryAcode & sSizeMask))
1341 {
1342 return false;
1343 }
1344 d = fBoundaryDirection;
1345 x0 = fBoundaryX0;
1346 boundarytype = fBoundaryType;
1347 return true;
1348}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
#define G4endl
Definition: G4ios.hh:57
static const G4int sAxis0
static const G4int sAxis1
static const G4int sSizeMask

◆ IsEmpty()

G4bool G4VTwistSurface::Boundary::IsEmpty ( ) const

Definition at line 1311 of file G4VTwistSurface.cc.

1312{
1313 if (fBoundaryAcode == -1) return true;
1314 return false;
1315}

◆ SetFields()

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

Definition at line 1297 of file G4VTwistSurface.cc.

1301{
1302 fBoundaryAcode = areacode;
1303 fBoundaryDirection = d;
1304 fBoundaryX0 = x0;
1305 fBoundaryType = boundarytype;
1306}

Referenced by G4VTwistSurface::SetBoundary().


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