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) 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 BDSSCREENFRAME_H
20#define BDSSCREENFRAME_H
21
22#include "globals.hh"
23#include "G4TwoVector.hh"
24#include "G4ThreeVector.hh"
25#include "G4VisAttributes.hh"
26
27class G4LogicalVolume;
28class G4Material;
29class G4VisAttributes;
30
41{
42public:
43 BDSScreenFrame(G4String name,
44 G4ThreeVector size,
45 G4TwoVector windowSize,
46 G4TwoVector windowOffset,
47 G4Material* material);
48
49 virtual ~BDSScreenFrame();
50
52 virtual void Build() = 0;
53
55 G4LogicalVolume* LogVol() const {return logVol;}
56
57protected:
59 virtual void SetVisAtts();
60
62 void SetDefaultVisAtts();
63
66 void SetVisAtts(G4LogicalVolume* logVolIn,
67 G4VisAttributes* visAttsIn = nullptr);
68
69 G4String name;
70 G4ThreeVector size;
71 G4TwoVector windowSize;
72 G4TwoVector windowOffset;
73 G4Material* material;
74 G4LogicalVolume* logVol;
76 G4VisAttributes* visAtt;
77
78private:
79 BDSScreenFrame() = delete;
80};
81
82#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.