#include <G4LatticeLogical.hh>
|
| G4LatticeLogical () |
|
virtual | ~G4LatticeLogical () |
|
void | SetVerboseLevel (G4int vb) |
|
G4bool | LoadMap (G4int, G4int, G4int, G4String) |
|
G4bool | Load_NMap (G4int, G4int, G4int, G4String) |
|
virtual G4double | MapKtoV (G4int, const G4ThreeVector &) const |
|
virtual G4ThreeVector | MapKtoVDir (G4int, const G4ThreeVector &) const |
|
void | Dump (std::ostream &os) const |
|
void | DumpMap (std::ostream &os, G4int pol, const G4String &name) const |
|
void | Dump_NMap (std::ostream &os, G4int pol, const G4String &name) const |
|
void | SetDynamicalConstants (G4double Beta, G4double Gamma, G4double Lambda, G4double Mu) |
|
void | SetScatteringConstant (G4double b) |
|
void | SetAnhDecConstant (G4double a) |
|
void | SetLDOS (G4double LDOS) |
|
void | SetSTDOS (G4double STDOS) |
|
void | SetFTDOS (G4double FTDOS) |
|
G4double | GetBeta () const |
|
G4double | GetGamma () const |
|
G4double | GetLambda () const |
|
G4double | GetMu () const |
|
G4double | GetScatteringConstant () const |
|
G4double | GetAnhDecConstant () const |
|
G4double | GetLDOS () const |
|
G4double | GetSTDOS () const |
|
G4double | GetFTDOS () const |
|
Definition at line 42 of file G4LatticeLogical.hh.
G4LatticeLogical::G4LatticeLogical |
( |
| ) |
|
Definition at line 40 of file G4LatticeLogical.cc.
41 : verboseLevel(0), fVresTheta(0), fVresPhi(0), fDresTheta(0), fDresPhi(0),
42 fA(0), fB(0), fLDOS(0), fSTDOS(0), fFTDOS(0),
43 fBeta(0), fGamma(0), fLambda(0), fMu(0) {
44 for (
G4int i=0; i<3; i++) {
48 fN_map[i][j][k].
set(0.,0.,0.);
void set(double x, double y, double z)
G4LatticeLogical::~G4LatticeLogical |
( |
| ) |
|
|
virtual |
void G4LatticeLogical::Dump |
( |
std::ostream & |
os | ) |
const |
Definition at line 202 of file G4LatticeLogical.cc.
203 os <<
"dyn " << fBeta <<
" " << fGamma <<
" " << fLambda <<
" " << fMu
204 <<
"\nscat " << fB <<
" decay " << fA
205 <<
"\nLDOS " << fLDOS <<
" STDOS " << fSTDOS <<
" FTDOS " << fFTDOS
void Dump_NMap(std::ostream &os, G4int pol, const G4String &name) const
void DumpMap(std::ostream &os, G4int pol, const G4String &name) const
void G4LatticeLogical::Dump_NMap |
( |
std::ostream & |
os, |
|
|
G4int |
pol, |
|
|
const G4String & |
name |
|
) |
| const |
Definition at line 229 of file G4LatticeLogical.cc.
231 os <<
"VDir " << name <<
" " << (pol==0?
"L":pol==1?
"FT":pol==2?
"ST":
"??")
232 <<
" " << fDresTheta <<
" " << fDresPhi << std::endl;
234 for (
G4int iTheta=0; iTheta<fDresTheta; iTheta++) {
235 for (
G4int iPhi=0; iPhi<fDresPhi; iPhi++) {
236 os << fN_map[pol][iTheta][iPhi].
x()
237 <<
" " << fN_map[pol][iTheta][iPhi].
y()
238 <<
" " << fN_map[pol][iTheta][iPhi].
z()
void G4LatticeLogical::DumpMap |
( |
std::ostream & |
os, |
|
|
G4int |
pol, |
|
|
const G4String & |
name |
|
) |
| const |
Definition at line 217 of file G4LatticeLogical.cc.
219 os <<
"VG " << name <<
" " << (pol==0?
"L":pol==1?
"FT":pol==2?
"ST":
"??")
220 <<
" " << fVresTheta <<
" " << fVresPhi << std::endl;
222 for (
G4int iTheta=0; iTheta<fVresTheta; iTheta++) {
223 for (
G4int iPhi=0; iPhi<fVresPhi; iPhi++) {
224 os << fMap[pol][iTheta][iPhi] << std::endl;
G4double G4LatticeLogical::GetAnhDecConstant |
( |
| ) |
const |
|
inline |
G4double G4LatticeLogical::GetBeta |
( |
| ) |
const |
|
inline |
G4double G4LatticeLogical::GetFTDOS |
( |
| ) |
const |
|
inline |
G4double G4LatticeLogical::GetGamma |
( |
| ) |
const |
|
inline |
G4double G4LatticeLogical::GetLambda |
( |
| ) |
const |
|
inline |
G4double G4LatticeLogical::GetLDOS |
( |
| ) |
const |
|
inline |
G4double G4LatticeLogical::GetMu |
( |
| ) |
const |
|
inline |
G4double G4LatticeLogical::GetScatteringConstant |
( |
| ) |
const |
|
inline |
G4double G4LatticeLogical::GetSTDOS |
( |
| ) |
const |
|
inline |
Definition at line 98 of file G4LatticeLogical.cc.
101 G4cerr <<
"G4LatticeLogical::LoadMap exceeds maximum resolution of "
106 std::ifstream fMapFile(map.
data());
107 if(!fMapFile.is_open())
return false;
111 for (
G4int theta = 0; theta<tRes; theta++) {
112 for (
G4int phi = 0; phi<pRes; phi++) {
113 fMapFile >> x >> y >>
z;
115 fN_map[polarizationState][theta][phi] = dir.
unit();
120 G4cout <<
"\nG4LatticeLogical::Load_NMap(" << map <<
") successful"
121 <<
" (Vdir " << tRes <<
" x " << pRes <<
" for polarization "
122 << polarizationState <<
")." <<
G4endl;
void set(double x, double y, double z)
G4GLOB_DLL std::ostream G4cout
const char * data() const
G4GLOB_DLL std::ostream G4cerr
Definition at line 62 of file G4LatticeLogical.cc.
65 G4cerr <<
"G4LatticeLogical::LoadMap exceeds maximum resolution of "
70 std::ifstream fMapFile(map.
data());
71 if (!fMapFile.is_open())
return false;
74 for (
G4int theta = 0; theta<tRes; theta++) {
75 for (
G4int phi = 0; phi<pRes; phi++) {
77 fMap[polarizationState][theta][phi] = vgrp * (
m/
s);
82 G4cout <<
"\nG4LatticeLogical::LoadMap(" << map <<
") successful"
83 <<
" (Vg scalars " << tRes <<
" x " << pRes <<
" for polarization "
84 << polarizationState <<
")." <<
G4endl;
G4GLOB_DLL std::ostream G4cout
static constexpr double m
const char * data() const
G4GLOB_DLL std::ostream G4cerr
Definition at line 136 of file G4LatticeLogical.cc.
146 if(phi<0) phi = phi +
twopi;
147 if(theta>
pi) theta=theta-
pi;
149 G4double Vg = fMap[polarizationState][
int(theta/tRes)][
int(phi/pRes)];
152 G4cout<<
"\nFound v=0 for polarization "<<polarizationState
153 <<
" theta "<<theta<<
" phi "<<phi<<
" translating to map coords "
154 <<
"theta "<<
int(theta/tRes) <<
" phi " <<
int(phi/pRes)<<
G4endl;
157 if (verboseLevel>1) {
158 G4cout <<
"G4LatticeLogical::MapKtoV theta,phi=" << theta <<
" " << phi
159 <<
" : ith,iph " <<
int(theta/tRes) <<
" " <<
int(phi/pRes)
160 <<
" : V " << Vg <<
G4endl;
static constexpr double twopi
G4GLOB_DLL std::ostream G4cout
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
static constexpr double pi
Definition at line 172 of file G4LatticeLogical.cc.
176 tRes=
pi/(fDresTheta-1);
177 pRes=2*
pi/(fDresPhi-1);
182 if(theta>
pi) theta=theta-
pi;
184 if(phi<0) phi = phi + 2*
pi;
189 if (verboseLevel>1) {
190 G4cout <<
"G4LatticeLogical::MapKtoVDir theta,phi=" << theta <<
" " << phi
191 <<
" : ith,iph " << iTheta <<
" " << iPhi
192 <<
" : dir " << fN_map[polarizationState][iTheta][iPhi] <<
G4endl;
195 return fN_map[polarizationState][iTheta][iPhi];
G4GLOB_DLL std::ostream G4cout
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
static constexpr double pi
void G4LatticeLogical::SetVerboseLevel |
( |
G4int |
vb | ) |
|
|
inline |
The documentation for this class was generated from the following files: