Geant4 11.4.0
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// Author: Alexei Sytov
27// Co-author: Gianfranco PaternĂ² (modifications & testing)
28
29#ifndef G4ChannelingFastSimCrystalData_h
30#define G4ChannelingFastSimCrystalData_h 1
31
32
33#include "globals.hh"
34#include "G4ios.hh"
35#include "G4ThreeVector.hh"
36#include "G4Material.hh"
38
39
40/** \file G4ChannelingFastSimCrystalData.hh
41* \brief Definition of the G4ChannelingFastSimCrystalData class
42* The class inherits G4VChannelingFastSimCrystalData containing the data and properties
43* related to the crystal lattice.
44* The functions related to the crystal geometry (transformation of coordinates and angles
45* from the reference system of the bounding box of the local volume to
46* the crystal lattice co-rotating reference system and vice versa) and
47* initialization function SetMaterialProperties are compiled in this class.
48*/
49
51{
52public:
53
56
57 ///find and upload crystal lattice input files, calculate all the basic values
58 ///(to do only once)
59 void SetMaterialProperties(const G4Material* crystal,
60 const G4String &lattice,
61 const G4String &filePath);
62
63 ///calculate the coordinates in the co-rotating reference system
64 ///within a channel (periodic cell)
65 ///(connected with crystal planes/axes either bent or straight)
67
68 ///calculate the coordinates in the Box reference system
69 ///(connected with the bounding box of the volume)
71
72 ///change the channel if necessary, recalculate x o y
74
75 ///calculate the horizontal angle in the co-rotating reference system
76 ///within a channel (periodic cell)
77 ///(connected with crystal planes/axes either bent or straight)
80
81 ///calculate the horizontal angle in the Box reference system
82 ///(connected with the bounding box of the volume)
85
86 ///auxialiary function to transform the horizontal angle
88
89 ///get channel width in x and y
92
93private:
94
95 ///variables
96 G4int fNsteps=353;//number of steps per channeling oscillation
97 G4double fR0=1.1*CLHEP::fermi;//*A^(1/3) - radius of nucleus
98
99 ///Values related to coordinate transformation
100 long long int fNChannelx=0;//horizontal number of channel
101 //(either straight of bent) inside the box
102 long long int fNChannely=0;//vertical number of channel (either straight of bent)
103 //inside the box; =0 in the case of planes
104
105 ///values related to the crystal lattice
106 G4int fNpointsx=0,fNpointsy=0;// number of horizontal and vertical nodes of
107 // interpolation
108 G4double fDx=0, fDy=0;// channel (periodic cell)
109 //horizontal and vertical dimensions
110
111 ///fundamental constants of material
112 std::vector <G4double> fN0; // nuclear concentration
113 std::vector <G4double> fU1; // amplitude of thermal oscillations
114 std::vector <G4double> fZ1;//atomic number of each element
115 std::vector <G4double> fAN; //atomic mass of each element
116};
117
118#endif
CLHEP::Hep3Vector G4ThreeVector
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)
G4double AngleXShift(G4double z)
auxialiary function to transform the horizontal angle
G4double AngleXFromBoxToLattice(G4double tx, G4double z)
void SetMaterialProperties(const G4Material *crystal, const G4String &lattice, const G4String &filePath)
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 GetChannelWidthX()
get channel width in x and y
G4double GetCUtetax(G4double z)
get crystalline undulator wave 1st derivative function