BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSScreenFrame.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 BDSSCREENFRAME_H
19#define BDSSCREENFRAME_H
20
21#include "globals.hh"
22#include "G4TwoVector.hh"
23#include "G4ThreeVector.hh"
24#include "G4VisAttributes.hh"
25
26class G4LogicalVolume;
27class G4Material;
28class G4VisAttributes;
29
40{
41public:
42 BDSScreenFrame(G4String name,
43 G4ThreeVector size,
44 G4TwoVector windowSize,
45 G4TwoVector windowOffset,
46 G4Material* material);
47
48 virtual ~BDSScreenFrame();
49
51 virtual void Build() = 0;
52
54 G4LogicalVolume* LogVol() const {return logVol;}
55
56protected:
58 virtual void SetVisAtts();
59
61 void SetDefaultVisAtts();
62
65 void SetVisAtts(G4LogicalVolume* logVolIn,
66 G4VisAttributes* visAttsIn = nullptr);
67
68 G4String name;
69 G4ThreeVector size;
70 G4TwoVector windowSize;
71 G4TwoVector windowOffset;
72 G4Material* material;
73 G4LogicalVolume* logVol;
75 G4VisAttributes* visAtt;
76
77private:
78 BDSScreenFrame() = delete;
79};
80
81#endif
A frame for the vacuum window in e.g. BDSMultilayerScreen.
G4bool checkOverlaps
Cache of checking overlaps from global constants.
void SetDefaultVisAtts()
Construct default visualisation attribute for light transparent grey.
virtual void SetVisAtts()
Set the visual attributes to member logVol.
virtual void Build()=0
Build method to construct geometry.
G4LogicalVolume * LogVol() const
Accessor.