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) 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 BDSSCREEN_H
19#define BDSSCREEN_H
20
21#include "BDSDrift.hh"
22
23#include "globals.hh"
24#include "G4TwoVector.hh"
25
26#include <list>
27
28class BDSBeamPipeInfo;
30
37class BDSScreen: public BDSDrift
38{
39public:
40 BDSScreen(G4String name,
41 G4double chordength, // Length of the drift section containing the screen
42 BDSBeamPipeInfo* beamPipeInfo,// Beam pipe specifications.
43 G4TwoVector size = G4TwoVector(), // X Y dimensions of screen
44 G4double screenAngle = 0); //Phi angle of screen
45
46 virtual ~BDSScreen();
47
49 void AddScreenLayer(G4double thickness, G4String material, G4int isSampler=0);
50
51private:
52 BDSMultilayerScreen* mlScreen;
53 std::list<G4double> layerThicknesses;
54 G4TwoVector size;
55 G4double screenAngle;
56 std::list<G4String> layerMaterials;
57
58 virtual void Build();
59 void PlaceScreen();
60 G4ThreeVector screenPos;
61 G4RotationMatrix* screenRot;
62 G4int nLayers;
63};
64
65#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:38
An accelerator component for diagnostics screens e.g. OTR. Screen inside beam pipe.
A multilayer screen in a beam pipe.
Definition BDSScreen.hh:38
virtual void Build()
Construct geometry.
Definition BDSScreen.cc:54
void AddScreenLayer(G4double thickness, G4String material, G4int isSampler=0)
Add a screen layer.
Definition BDSScreen.cc:67