18#ifndef BDSCOLLIMATORJAW_H
19#define BDSCOLLIMATORJAW_H
21#include "BDSCollimator.hh"
24#include "G4Material.hh"
41 G4double horizontalWidthIn,
43 G4double yHalfHeightIn,
45 G4double xsizeRightIn,
46 G4double leftJawTiltIn,
47 G4double rightJawTiltIn,
48 G4bool buildLeftJawIn,
49 G4bool buildRightJawIn,
50 G4Material* collimatorMaterialIn,
51 G4Material* vacuumMaterialIn,
52 G4Colour* colourIn =
nullptr,
53 const G4String& objectType =
"jcol");
56 inline G4double GetJawTiltLeft()
const {
return jawTiltLeft;}
57 inline G4double GetJawTiltRight()
const {
return jawTiltRight;}
67 virtual void Build()
override;
85 G4double leftJawHalfGap;
86 G4double rightJawHalfGap;
87 G4double leftJawWidth;
88 G4double rightJawWidth;
90 G4ThreeVector leftJawPos;
91 G4ThreeVector rightJawPos;
92 G4ThreeVector vacuumOffset;
Collimator with only two jaw and no top bit.
G4bool buildAperture
Build aperture or not.
virtual void Build() override
Override function in BDSCollimator for totally different construction.
G4double xSizeRight
Offset of jaw 2.
virtual void BuildContainerLogicalVolume() override
Override function in BDSCollimator for different size based container.
G4double xSizeLeft
Offset of jaw 1.
BDSCollimatorJaw(BDSCollimatorJaw &)=delete
Assignment and copy constructor not implemented nor used.
BDSCollimatorJaw & operator=(const BDSCollimatorJaw &)=delete
Assignment and copy constructor not implemented nor used.
G4double jawTiltLeft
Tilt of jaw 1 (angle in x-z plane)
G4double jawTiltRight
Tilt of jaw 2 (angle in x-z plane)
void Calculations()
Calculate offsets and sizes.
G4double yHalfHeight
Half height of each jaw.
G4bool buildRightJaw
Build right jaw or not.
virtual void BuildInnerCollimator() final
To fulfill inheritance but unused.
virtual void CheckParameters() override
G4double xHalfGap
Half gap separation between jaws.
G4bool buildLeftJaw
Build left jaw or not.
BDSCollimatorJaw()=delete
Private default constructor to force the use of the supplied one.
G4LogicalVolume * collimatorLV
In case of no aperture, cache this volume for derived classes to place inside.
Base class for collimators with common construction.