Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4XrayReflection.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//------------------ G4XrayReflection physics process -----------------------
27//
28// History:
29// 19-09-23 H. Burkhardt, initial implementation
30//
31// --------------------------------------------------------------------------
32
33#ifndef G4XrayReflection_h
34#define G4XrayReflection_h 1
35
36#include "G4Gamma.hh"
37#include "G4VEmProcess.hh"
38#include "globals.hh"
39
40//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
41
43class G4VEmModel;
45
47{
48 public: // with description
49 explicit G4XrayReflection(const G4String& processName = "XrayReflection",
51 ~G4XrayReflection() override = default;
52
53 G4double GetMeanFreePath(const G4Track& track, G4double previousStepSize,
54 G4ForceCondition* condition) override;
55
56 G4VParticleChange* PostStepDoIt(const G4Track& track, const G4Step& Step) override;
57
59 void BuildPhysicsTable(const G4ParticleDefinition&) override;
60
61 void ProcessDescription(std::ostream&) const override;
62 void DumpInfo() const override { ProcessDescription(G4cout); }
63
64 void SetSurfaceRoughness(const G4double value);
65
66 G4double Reflectivity(const G4double GamEner, const G4double SinIncidentAngle,
67 const G4Material* theMat) const;
68
69 G4int ReadHenkeXrayData(std::string ElName, std::vector<G4double>& Ephot,
70 std::vector<G4double>& f1, std::vector<G4double>& f2);
71 void SaveHenkeDataAsMaterialProperty(); // Save Henke data as Material propoerty
72
73 private:
74 G4VPhysicalVolume* fLastVolume = nullptr;
75 G4ThreeVector fSurfaceNormal;
76 static G4double fSurfaceRoughness; // same value in all threads
77};
78
79#endif
G4double condition(const G4ErrorSymMatrix &m)
G4ForceCondition
G4ProcessType
@ fElectromagnetic
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4GLOB_DLL std::ostream G4cout
void SetSurfaceRoughness(const G4double value)
G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &Step) override
void ProcessDescription(std::ostream &) const override
G4bool IsApplicable(const G4ParticleDefinition &) override
G4XrayReflection(const G4String &processName="XrayReflection", G4ProcessType type=fElectromagnetic)
void DumpInfo() const override
G4int ReadHenkeXrayData(std::string ElName, std::vector< G4double > &Ephot, std::vector< G4double > &f1, std::vector< G4double > &f2)
void SaveHenkeDataAsMaterialProperty()
~G4XrayReflection() override=default
G4double Reflectivity(const G4double GamEner, const G4double SinIncidentAngle, const G4Material *theMat) const
void BuildPhysicsTable(const G4ParticleDefinition &) override
G4double GetMeanFreePath(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override