Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ChannelingFastSimCrystalData.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27
28#ifndef G4ChannelingFastSimCrystalData_h
29#define G4ChannelingFastSimCrystalData_h 1
30
31#include "G4ios.hh"
32#include "globals.hh"
34#include "G4ThreeVector.hh"
35#include "Randomize.hh"
36#include "G4Material.hh"
37#include <unordered_map>
38
41
42/** \file G4ChannelingFastSimCrystalData.hh
43* \brief Definition of the G4ChannelingFastSimCrystalData class
44* The class inherits G4VChannelingFastSimCrystalData containing the data and properties
45* related to the crystal lattice.
46* The functions related to the crystal geometry (transformation of coordinates and angles
47* from the reference system of the bounding box of the local volume to
48* the crystal lattice co-rotating reference system and vice versa) and
49* initialization function SetMaterialProperties are compiled in this class.
50*/
51
53{
54public:
55
58
59public:
60
61 ///find and upload crystal lattice input files, calculate all the basic values
62 ///(to do only once)
63 void SetMaterialProperties(const G4Material* crystal, const G4String &lattice);
64
65 ///calculate the coordinates in the co-rotating reference system
66 ///within a channel (periodic cell)
67 ///(connected with crystal planes/axes either bent or straight)
69
70 ///calculate the coordinates in the Box reference system
71 ///(connected with the bounding box of the volume)
73
74 ///change the channel if necessary, recalculate x o y
76
77 ///calculate the horizontal angle in the co-rotating reference system
78 ///within a channel (periodic cell)
79 ///(connected with crystal planes/axes either bent or straight)
82
83 ///calculate the horizontal angle in the Box reference system
84 ///(connected with the bounding box of the volume)
87
88 ///auxialiary function to transform the horizontal angle
90
91private:
92
93 ///variables
94 G4int fNsteps=353;//number of steps per channeling oscillation
95 G4double fR0=1.1*CLHEP::fermi;//*A^(1/3) - radius of nucleus
96
97 ///Values related to coordinate transformation
98 long long int fNChannelx=0;//horizontal number of channel
99 //(either straight of bent) inside the box
100 long long int fNChannely=0;//vertical number of channel (either straight of bent)
101 //inside the box; =0 in the case of planes
102
103 ///values related to the crystal lattice
104 G4int fNpointsx=0,fNpointsy=0;// number of horizontal and vertical nodes of
105 // interpolation
106 G4double fDx=0, fDy=0;// channel (periodic cell)
107 //horizontal and vertical dimensions
108
109 ///fundamental constants of material
110 std::vector <G4double> fN0; // nuclear concentration
111 std::vector <G4double> fU1; // amplitude of thermal oscillations
112 std::vector <G4double> fZ1;//atomic number of each element
113 std::vector <G4double> fAN; //atomic mass of each element
114};
115
116#endif
Definition of the G4ChannelingFastSimInterpolation class The class includes spline interpolation coef...
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
Definition of the G4VChannelingFastSimCrystalData class The class contains the data and properties re...
G4ThreeVector CoordinatesFromBoxToLattice(const G4ThreeVector &pos0)
void SetMaterialProperties(const G4Material *crystal, const G4String &lattice)
G4double AngleXShift(G4double z)
auxialiary function to transform the horizontal angle
virtual ~G4ChannelingFastSimCrystalData()=default
G4double AngleXFromBoxToLattice(G4double tx, G4double z)
G4ThreeVector ChannelChange(G4double &x, G4double &y, G4double &z)
change the channel if necessary, recalculate x o y
G4ThreeVector CoordinatesFromLatticeToBox(const G4ThreeVector &pos)
G4double AngleXFromLatticeToBox(G4double tx, G4double z)
G4double GetCUtetax(G4double z)
get crystalline undulator wave 1st derivative function