BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSScreen.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 BDSSCREEN_H
20#define BDSSCREEN_H
21
22#include "BDSDrift.hh"
23
24#include "globals.hh"
25#include "G4TwoVector.hh"
26
27#include <list>
28
29class BDSBeamPipeInfo;
31
38class BDSScreen: public BDSDrift
39{
40public:
41 BDSScreen(G4String name,
42 G4double chordength, // Length of the drift section containing the screen
43 BDSBeamPipeInfo* beamPipeInfo,// Beam pipe specifications.
44 G4TwoVector size = G4TwoVector(), // X Y dimensions of screen
45 G4double screenAngle = 0); //Phi angle of screen
46
47 virtual ~BDSScreen();
48
50 void AddScreenLayer(G4double thickness, G4String material, G4int isSampler=0);
51
52private:
53 BDSMultilayerScreen* mlScreen;
54 std::list<G4double> layerThicknesses;
55 G4TwoVector size;
56 G4double screenAngle;
57 std::list<G4String> layerMaterials;
58
59 virtual void Build();
60 void PlaceScreen();
61 G4ThreeVector screenPos;
62 G4RotationMatrix* screenRot;
63 G4int nLayers;
64};
65
66#endif
const G4String name
Const protected member variable that may not be changed by derived classes.
BDSBeamPipeInfo * beamPipeInfo
Optional beam pipe recipe that is written out to the survey if it exists.
Holder class for all information required to describe a beam pipe model.
A piece of vacuum beam pipe.
Definition: BDSDrift.hh:39
An accelerator component for diagnostics screens e.g. OTR. Screen inside beam pipe.
A multilayer screen in a beam pipe.
Definition: BDSScreen.hh:39
virtual void Build()
Construct geometry.
Definition: BDSScreen.cc:55
void AddScreenLayer(G4double thickness, G4String material, G4int isSampler=0)
Add a screen layer.
Definition: BDSScreen.cc:68