BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSCrystalInfo.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 BDSCRYSTALINFO_H
20#define BDSCRYSTALINFO_H
21
22#include "BDSCrystalType.hh"
23#include "globals.hh" // geant4 types / globals
24
25#include "CLHEP/Units/SystemOfUnits.h"
26
27class G4Material;
28
43{
44public:
46 BDSCrystalInfo() = delete;
47
49 BDSCrystalInfo(G4Material* materialIn,
50 const G4String& dataIn,
51 BDSCrystalType crystalTypeIn,
52 G4double lengthXIn,
53 G4double lengthYIn,
54 G4double lengthZIn,
55 G4double sizeAIn,
56 G4double sizeBIn,
57 G4double sizeCIn,
58 G4double alphaIn,
59 G4double betaIn,
60 G4double gammaIn,
61 G4int spaceGroupIn,
62 G4double bendingAngleYAxisIn = 0,
63 G4double bendingAngleZAxisIn = 0,
64 G4double miscutAngleY = 0);
65
66 G4Material* material;
67 G4String data;
69 G4double lengthX;
70 G4double lengthY;
71 G4double lengthZ;
72 G4double sizeA;
73 G4double sizeB;
74 G4double sizeC;
75 G4double alpha;
76 G4double beta;
77 G4double gamma;
78 G4int spaceGroup;
81 G4double miscutAngleY;
82
83 G4double BendingRadiusHorizontal() const {return BendingRadius(lengthZ, bendingAngleYAxis);}
84 G4double BendingRadiusVertical() const {return BendingRadius(lengthY, bendingAngleZAxis);}
85
86private:
87 G4double BendingRadius(G4double length,
88 G4double angle) const;
89};
90
91#endif
Holder for all information required to create a crystal.
G4String data
Potential data path.
G4double lengthZ
Z dimension.
G4Material * material
Material.
G4double bendingAngleZAxis
Bending angle about Z axis.
G4double lengthX
X dimension.
BDSCrystalInfo()=delete
No default constuctor.
BDSCrystalType shape
Shape of geometry.
G4double bendingAngleYAxis
Bending angle about Y axis.
G4double lengthY
Y dimension.