BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
BDSScreenFrameRectangular Class Reference

Rectangular screen frame. More...

#include <BDSScreenFrameRectangular.hh>

Inheritance diagram for BDSScreenFrameRectangular:
Inheritance graph
Collaboration diagram for BDSScreenFrameRectangular:
Collaboration graph

Public Member Functions

 BDSScreenFrameRectangular (G4String name, G4ThreeVector size, G4TwoVector windowSize, G4TwoVector windowOffset, G4Material *material)
 
virtual void Build ()
 Construct the geometry.
 
void Place (G4RotationMatrix *rot, G4ThreeVector pos, G4LogicalVolume *motherVol)
 Place member logVol (from base class) into argument motherVol.
 
BDSScreenFrameRectangularoperator= (const BDSScreenFrameRectangular &)=delete
 Assignment and copy constructor not implemented nor used.
 
 BDSScreenFrameRectangular (BDSScreenFrameRectangular &)=delete
 Assignment and copy constructor not implemented nor used.
 
- Public Member Functions inherited from BDSScreenFrame
 BDSScreenFrame (G4String name, G4ThreeVector size, G4TwoVector windowSize, G4TwoVector windowOffset, G4Material *material)
 
virtual void Build ()=0
 Build method to construct geometry.
 
G4LogicalVolume * LogVol () const
 Accessor.
 

Protected Member Functions

virtual void SetVisAtts ()
 Set the visual attributes to member logVol.
 
- Protected Member Functions inherited from BDSScreenFrame
virtual void SetVisAtts ()
 Set the visual attributes to member logVol.
 
void SetDefaultVisAtts ()
 Construct default visualisation attribute for light transparent grey.
 
void SetVisAtts (G4LogicalVolume *logVolIn, G4VisAttributes *visAttsIn=nullptr)
 

Private Member Functions

 BDSScreenFrameRectangular ()=delete
 Remove default constructor to force use of supplied one.
 

Private Attributes

G4ThreeVector cavityPos
 
G4RotationMatrix * zeroRot
 

Additional Inherited Members

- Protected Attributes inherited from BDSScreenFrame
G4String name
 
G4ThreeVector size
 
G4TwoVector windowSize
 
G4TwoVector windowOffset
 
G4Material * material
 
G4LogicalVolume * logVol
 
G4bool checkOverlaps
 Cache of checking overlaps from global constants.
 
G4VisAttributes * visAtt
 

Detailed Description

Rectangular screen frame.

Rectangular hollow frame / tube. Length is determined by size.z().

Author
Lawrence Deacon

Definition at line 40 of file BDSScreenFrameRectangular.hh.

Constructor & Destructor Documentation

◆ BDSScreenFrameRectangular()

BDSScreenFrameRectangular::BDSScreenFrameRectangular ( G4String  name,
G4ThreeVector  size,
G4TwoVector  windowSize,
G4TwoVector  windowOffset,
G4Material *  material 
)
Parameters
sizeFull width in each dimension of inner surface.
windowSizeFull width of h,v of outer surface.
windowOffsetOffset of intertior to exterior.

Definition at line 33 of file BDSScreenFrameRectangular.cc.

References Build().

Here is the call graph for this function:

◆ ~BDSScreenFrameRectangular()

BDSScreenFrameRectangular::~BDSScreenFrameRectangular ( )
virtual

Definition at line 44 of file BDSScreenFrameRectangular.cc.

Member Function Documentation

◆ Build()

void BDSScreenFrameRectangular::Build ( )
virtual

Construct the geometry.

Implements BDSScreenFrame.

Definition at line 49 of file BDSScreenFrameRectangular.cc.

References BDSGlobalConstants::Instance(), and SetVisAtts().

Referenced by BDSScreenFrameRectangular().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Place()

void BDSScreenFrameRectangular::Place ( G4RotationMatrix *  rot,
G4ThreeVector  pos,
G4LogicalVolume *  motherVol 
)

Place member logVol (from base class) into argument motherVol.

Definition at line 71 of file BDSScreenFrameRectangular.cc.

References BDSScreenFrame::checkOverlaps.

◆ SetVisAtts()

void BDSScreenFrameRectangular::SetVisAtts ( )
protectedvirtual

Set the visual attributes to member logVol.

Reimplemented from BDSScreenFrame.

Definition at line 86 of file BDSScreenFrameRectangular.cc.

References BDSScreenFrame::SetVisAtts().

Referenced by Build().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ cavityPos

G4ThreeVector BDSScreenFrameRectangular::cavityPos
private

Definition at line 70 of file BDSScreenFrameRectangular.hh.

◆ zeroRot

G4RotationMatrix* BDSScreenFrameRectangular::zeroRot
private

Definition at line 71 of file BDSScreenFrameRectangular.hh.


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