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) 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 BDSCRYSTALINFO_H
19#define BDSCRYSTALINFO_H
20
21#include "BDSCrystalType.hh"
22#include "globals.hh" // geant4 types / globals
23
24#include "CLHEP/Units/SystemOfUnits.h"
25
26class G4Material;
27
42{
43public:
45 BDSCrystalInfo() = delete;
46
48 BDSCrystalInfo(G4Material* materialIn,
49 const G4String& dataIn,
50 BDSCrystalType crystalTypeIn,
51 G4double lengthXIn,
52 G4double lengthYIn,
53 G4double lengthZIn,
54 G4double sizeAIn,
55 G4double sizeBIn,
56 G4double sizeCIn,
57 G4double alphaIn,
58 G4double betaIn,
59 G4double gammaIn,
60 G4int spaceGroupIn,
61 G4double bendingAngleYAxisIn = 0,
62 G4double bendingAngleZAxisIn = 0,
63 G4double miscutAngleY = 0);
64
65 G4Material* material;
66 G4String data;
68 G4double lengthX;
69 G4double lengthY;
70 G4double lengthZ;
71 G4double sizeA;
72 G4double sizeB;
73 G4double sizeC;
74 G4double alpha;
75 G4double beta;
76 G4double gamma;
77 G4int spaceGroup;
80 G4double miscutAngleY;
81
82 G4double BendingRadiusHorizontal() const {return BendingRadius(lengthZ, bendingAngleYAxis);}
83 G4double BendingRadiusVertical() const {return BendingRadius(lengthY, bendingAngleZAxis);}
84
85private:
86 G4double BendingRadius(G4double length,
87 G4double angle) const;
88};
89
90#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.