BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSCollimatorJawTip.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef BDSCOLLIMATORJAWTIP_H
19#define BDSCOLLIMATORJAWTIP_H
20
21#include "BDSCollimatorJaw.hh"
22
23#include "G4String.hh"
24#include "G4Types.hh"
25
26class G4Colour;
27class G4Material;
28class G4VSolid;
29
37{
38public:
39 BDSCollimatorJawTip() = delete;
40 BDSCollimatorJawTip(const G4String& nameIn,
41 G4double lengthIn,
42 G4double horizontalWidthIn,
43 G4double xHalfGapIn,
44 G4double yHalfHeightIn,
45 G4double xsizeLeftIn,
46 G4double xsizeRightIn,
47 G4double leftJawTiltIn,
48 G4double rightJawTiltIn,
49 G4double tipThicknessIn,
50 G4bool buildLeftJawIn,
51 G4bool buildRightJawIn,
52 G4Material* collimatorMaterialIn,
53 G4Material* collimatorTipMaterialIn,
54 G4Material* vacuumMaterialIn,
55 G4Colour* colourIn = nullptr,
56 G4Colour* tipColourIn = nullptr);
57 virtual ~BDSCollimatorJawTip();
58
63
64protected:
66 void UpdateCalculations();
67
71
73 virtual void Build() override;
74
75 virtual void BuildTips();
76
77 G4Colour* tipColour;
78 G4double tipThickness;
79 G4Material* collimatorTipMaterial;
80 G4ThreeVector leftJawTipPos;
81 G4ThreeVector rightJawTipPos;
82};
83
84#endif
Collimator with jaws having a bulk material and a tip of a different material.
BDSCollimatorJawTip & operator=(const BDSCollimatorJawTip &)=delete
Assignment and copy constructor not implemented nor used.
virtual void Build() override
Override function in BDSCollimator for totally different construction.
BDSCollimatorJawTip(BDSCollimatorJawTip &)=delete
Assignment and copy constructor not implemented nor used.
void UpdateCalculations()
Adjust the calculated values to include the space for the tips that are separate placements.
Collimator with only two jaw and no top bit.