BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSScreenFrameRectangular.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2023.
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 BDSSCREENFRAMERECTANGULAR_H
20#define BDSSCREENFRAMERECTANGULAR_H
21
22#include "BDSScreenFrame.hh"
23
24#include "globals.hh"
25#include "G4RotationMatrix.hh"
26#include "G4ThreeVector.hh"
27#include "G4TwoVector.hh"
28
29class G4LogicalVolume;
30class G4Material;
31
41{
42public:
43 BDSScreenFrameRectangular(G4String name,
44 G4ThreeVector size,
45 G4TwoVector windowSize,
46 G4TwoVector windowOffset,
47 G4Material* material);
48
54
56 virtual void Build();
57
59 void Place(G4RotationMatrix* rot,
60 G4ThreeVector pos,
61 G4LogicalVolume* motherVol);
62
63
64protected:
65 virtual void SetVisAtts();
66
67private:
70 G4ThreeVector cavityPos;
71 G4RotationMatrix* zeroRot;
72};
73
74#endif
BDSScreenFrameRectangular(BDSScreenFrameRectangular &)=delete
Assignment and copy constructor not implemented nor used.
virtual void SetVisAtts()
Set the visual attributes to member logVol.
void Place(G4RotationMatrix *rot, G4ThreeVector pos, G4LogicalVolume *motherVol)
Place member logVol (from base class) into argument motherVol.
virtual void Build()
Construct the geometry.
BDSScreenFrameRectangular & operator=(const BDSScreenFrameRectangular &)=delete
Assignment and copy constructor not implemented nor used.
BDSScreenFrameRectangular()=delete
Remove default constructor to force use of supplied one.
A frame for the vacuum window in e.g. BDSMultilayerScreen.