Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4RToEConvForGamma.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// G4RToEConvForGamma
27//
28// Class description:
29//
30// This class is a Range to Energy Converter for gamma.
31
32// Author: H.Kurashige, 05 October 2002 - First implementation
33// --------------------------------------------------------------------
34#ifndef G4RToEConvForGamma_hh
35#define G4RToEConvForGamma_hh 1
36
37#include <vector>
38
39#include "globals.hh"
40#include "G4ios.hh"
42
44{
45 public:
46
48 // Constructor
49
50 virtual ~G4RToEConvForGamma();
51 // Destructor
52
53 protected:
54
56
57 virtual G4double ComputeLoss( G4double AtomicNumber,
58 G4double KineticEnergy );
59
60 virtual void BuildRangeVector( const G4Material* aMaterial,
61 G4RangeVector* rangeVector );
62 // The Range Table
63
64 void BuildAbsorptionLengthVector( const G4Material* aMaterial,
65 G4RangeVector* rangeVector );
66
68 G4double KineticEnergy );
69
70 G4double Z = -1.0;
71 G4double s200keV = 0.0, s1keV = 0.0;
72 G4double tmin = 0.0, tlow = 0.0;
73 G4double smin = 0.0, slow = 0.0;
74 G4double cmin = 0.0, clow = 0.0, chigh = 0.0;
75};
76
77// ------------------
78// Inline methods
79// ------------------
80
81inline
83 G4double KineticEnergy)
84{
85 return ComputeCrossSection(AtomicNumber,KineticEnergy);
86}
87
88inline
90 G4RangeVector* rangeVector)
91{
92 BuildAbsorptionLengthVector(aMaterial, rangeVector);
93}
94
95#endif
double G4double
Definition: G4Types.hh:83
G4double ComputeCrossSection(G4double AtomicNumber, G4double KineticEnergy)
virtual void BuildRangeVector(const G4Material *aMaterial, G4RangeVector *rangeVector)
void BuildAbsorptionLengthVector(const G4Material *aMaterial, G4RangeVector *rangeVector)
virtual G4double ComputeLoss(G4double AtomicNumber, G4double KineticEnergy)