#include <G4LatticeReader.hh>
Definition at line 43 of file G4LatticeReader.hh.
◆ G4LatticeReader()
G4LatticeReader::G4LatticeReader |
( |
G4int |
vb = 0 | ) |
|
Definition at line 55 of file G4LatticeReader.cc.
G4LatticeLogical * pLattice
std::ifstream * psLatfile
◆ ~G4LatticeReader()
G4LatticeReader::~G4LatticeReader |
( |
| ) |
|
◆ CloseFile()
void G4LatticeReader::CloseFile |
( |
| ) |
|
|
protected |
◆ MakeLattice()
Definition at line 66 of file G4LatticeReader.cc.
71 msg <<
"Unable to open " << filename;
72 G4Exception(
"G4LatticeReader::MakeLattice",
"Lattice001",
87 msg <<
"Error reading lattice from " << filename;
88 G4Exception(
"G4LatticeReader::MakeLattice",
"Lattice002",
std::ostringstream G4ExceptionDescription
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4bool OpenFile(const G4String &filepath)
G4LatticeLogical * pLattice
std::ifstream * psLatfile
◆ OpenFile()
Definition at line 100 of file G4LatticeReader.cc.
102 G4cout <<
"G4LatticeReader::OpenFile " << filename <<
G4endl;
107 filepath =
fDataDir +
"/" + filename;
117 size_t lastdir = filepath.
last(
'/');
118 if (lastdir == std::string::npos)
fMapPath =
".";
119 else fMapPath = filepath(0,lastdir);
G4GLOB_DLL std::ostream G4cout
static const G4String fDataDir
std::ifstream * psLatfile
◆ ProcessConstants()
G4bool G4LatticeReader::ProcessConstants |
( |
| ) |
|
|
protected |
Definition at line 185 of file G4LatticeReader.cc.
189 G4cout <<
" ProcessConstants " << beta <<
" " << gamma
G4GLOB_DLL std::ostream G4cout
G4LatticeLogical * pLattice
void SetDynamicalConstants(G4double Beta, G4double Gamma, G4double Lambda, G4double Mu)
std::ifstream * psLatfile
◆ ProcessMap()
G4bool G4LatticeReader::ProcessMap |
( |
| ) |
|
|
protected |
Definition at line 232 of file G4LatticeReader.cc.
234 G4cerr <<
"G4LatticeReader: Unable to process mapfile directive." <<
G4endl;
G4bool LoadMap(G4int, G4int, G4int, G4String)
G4LatticeLogical * pLattice
G4GLOB_DLL std::ostream G4cerr
◆ ProcessNMap()
G4bool G4LatticeReader::ProcessNMap |
( |
| ) |
|
|
protected |
Definition at line 241 of file G4LatticeReader.cc.
243 G4cerr <<
"G4LatticeReader: Unable to process mapfile directive." <<
G4endl;
G4LatticeLogical * pLattice
G4bool Load_NMap(G4int, G4int, G4int, G4String)
G4GLOB_DLL std::ostream G4cerr
◆ ProcessToken()
G4bool G4LatticeReader::ProcessToken |
( |
| ) |
|
|
protected |
Definition at line 135 of file G4LatticeReader.cc.
138 if (fToken.empty() ||
psLatfile->eof())
return true;
G4bool ProcessConstants()
G4GLOB_DLL std::ostream G4cout
G4bool ProcessValue(const G4String &name)
std::ifstream * psLatfile
◆ ProcessValue()
Definition at line 159 of file G4LatticeReader.cc.
178 G4cerr <<
"G4LatticeReader: Unrecognized token " << name <<
G4endl;
void SetFTDOS(G4double FTDOS)
G4GLOB_DLL std::ostream G4cout
void SetAnhDecConstant(G4double a)
void SetScatteringConstant(G4double b)
void SetLDOS(G4double LDOS)
void SetSTDOS(G4double STDOS)
G4LatticeLogical * pLattice
G4GLOB_DLL std::ostream G4cerr
std::ifstream * psLatfile
◆ ReadMapInfo()
G4bool G4LatticeReader::ReadMapInfo |
( |
| ) |
|
|
protected |
Definition at line 198 of file G4LatticeReader.cc.
205 G4cerr <<
"G4LatticeReader: Invalid map theta dimension " <<
fNX <<
G4endl;
210 G4cerr <<
"G4LatticeReader: Invalid map phi dimension " << fNY <<
G4endl;
224 if (fPol<0 || fPol>2) {
G4GLOB_DLL std::ostream G4cout
G4GLOB_DLL std::ostream G4cerr
std::ifstream * psLatfile
◆ SetVerboseLevel()
void G4LatticeReader::SetVerboseLevel |
( |
G4int |
vb | ) |
|
|
inline |
◆ SkipComments()
G4bool G4LatticeReader::SkipComments |
( |
| ) |
|
|
protected |
◆ fDataDir
const G4String G4LatticeReader::fDataDir |
|
staticprivate |
Initial value:=
getenv("G4LATTICEDATA") ? (const char*)getenv("G4LATTICEDATA") : "./CrystalMaps"
Definition at line 75 of file G4LatticeReader.hh.
◆ fMap
◆ fMapPath
◆ fNX
G4int G4LatticeReader::fNX |
|
private |
◆ fNY
G4int G4LatticeReader::fNY |
|
private |
◆ fPol
G4int G4LatticeReader::fPol |
|
private |
◆ fsPol
◆ fToken
◆ fValue
◆ pLattice
◆ psLatfile
std::ifstream* G4LatticeReader::psLatfile |
|
private |
◆ verboseLevel
G4int G4LatticeReader::verboseLevel |
|
private |
The documentation for this class was generated from the following files: