BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSCollimatorTipJaw.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2024.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef BDSCOLLIMATORTIPJAW_H
20#define BDSCOLLIMATORTIPJAW_H
21
22#include "BDSTipCollimator.hh"
23
24#include "globals.hh" // geant4 types / globals
25#include "G4Material.hh"
26
27class G4Colour;
28class G4VSolid;
29
37{
38public:
39 BDSCollimatorTipJaw(const G4String& nameIn,
40 G4double lengthIn,
41 G4double horizontalWidthIn,
42 G4double xHalfGapIn,
43 G4double yHalfHeightIn,
44 G4double xsizeLeftIn,
45 G4double xsizeRightIn,
46 G4double leftJawTiltIn,
47 G4double rightJawTiltIn,
48 G4double tipThicknessIn,
49 G4bool buildLeftJawIn,
50 G4bool buildRightJawIn,
51 G4Material* collimatorMaterialIn,
52 G4Material* collimatorTipMaterialIn,
53 G4Material* vacuumMaterialIn,
54 G4Colour* colourIn = nullptr,
55 G4Colour* tipColourIn = nullptr);
56 virtual ~BDSCollimatorTipJaw();
57
58 inline G4double GetJawTiltLeft() const {return jawTiltLeft;}
59 inline G4double GetJawTiltRight() const {return jawTiltRight;}
60
61protected:
64 virtual void CheckParameters() override;
65
67 virtual void Build() override;
68
70 virtual void BuildContainerLogicalVolume() override;
71
73 virtual void BuildInnerCollimator() final {;}
74
75 G4VSolid* jawSolid;
76 G4double xSizeLeft;
77 G4double xSizeRight;
78 G4double xHalfGap;
79 G4double jawTiltLeft;
80 G4double jawTiltRight;
81 G4double tipThickness;
82 G4double jawHalfWidth;
83 G4double yHalfHeight;
84 G4bool buildLeftJaw;
87
88private:
91
96};
97
98#endif
Collimator with jaws having a bulk material and a tip of a different material.
G4double jawTiltRight
Tilt of jaw 2 (angle in x-z plane)
G4double tipThickness
Thickness of collimator tip.
G4double jawTiltLeft
Tilt of jaw 1 (angle in x-z plane)
G4VSolid * jawSolid
Jaw solid.
virtual void BuildInnerCollimator() final
To fulfill inheritance but unused.
G4double xHalfGap
Half gap separation between jaws.
BDSCollimatorTipJaw()=delete
Private default constructor to force the use of the supplied one.
G4bool buildRightJaw
Build right jaw or not.
G4double xSizeLeft
Offset of jaw 1.
G4bool buildAperture
Build aperture or not.
virtual void CheckParameters() override
virtual void Build() override
Override function in BDSCollimator for totally different construction.
G4double jawHalfWidth
Half width of each jaw.
G4double xSizeRight
Offset of jaw 2.
BDSCollimatorTipJaw & operator=(const BDSCollimatorTipJaw &)=delete
Assignment and copy constructor not implemented nor used.
BDSCollimatorTipJaw(BDSCollimatorTipJaw &)=delete
Assignment and copy constructor not implemented nor used.
G4bool buildLeftJaw
Build left jaw or not.
virtual void BuildContainerLogicalVolume() override
Override function in BDSCollimator for different size based container.
G4double yHalfHeight
Half height of each jaw.
Base class for collimators with a bulk material and a tip of a different material.