50 getenv(
"G4LATTICEDATA") ? (
const char*)getenv(
"G4LATTICEDATA") :
"./CrystalMaps";
56 : verboseLevel(vb), psLatfile(0), pLattice(0), fMapPath(
""),
57 fToken(
""), fValue(0.), fMap(
""), fsPol(
""), fPol(-1), fNX(0), fNY(0) {;}
71 msg <<
"Unable to open " << filename;
72 G4Exception(
"G4LatticeReader::MakeLattice",
"Lattice001",
87 msg <<
"Error reading lattice from " << filename;
88 G4Exception(
"G4LatticeReader::MakeLattice",
"Lattice002",
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);
138 if (fToken.empty() ||
psLatfile->eof())
return true;
178 G4cerr <<
"G4LatticeReader: Unrecognized token " << name <<
G4endl;
189 G4cout <<
" ProcessConstants " << beta <<
" " << gamma
205 G4cerr <<
"G4LatticeReader: Invalid map theta dimension " <<
fNX <<
G4endl;
210 G4cerr <<
"G4LatticeReader: Invalid map phi dimension " << fNY <<
G4endl;
224 if (fPol<0 || fPol>2) {
234 G4cerr <<
"G4LatticeReader: Unable to process mapfile directive." <<
G4endl;
243 G4cerr <<
"G4LatticeReader: Unable to process mapfile directive." <<
G4endl;
void SetFTDOS(G4double FTDOS)
std::ostringstream G4ExceptionDescription
G4bool LoadMap(G4int, G4int, G4int, G4String)
G4bool ProcessConstants()
G4GLOB_DLL std::ostream G4cout
void SetAnhDecConstant(G4double a)
void SetScatteringConstant(G4double b)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetLDOS(G4double LDOS)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
void SetSTDOS(G4double STDOS)
G4bool OpenFile(const G4String &filepath)
Definition of the G4LatticeLogical class.
G4LatticeLogical * pLattice
Definition of the G4LatticeReader class.
G4LatticeLogical * MakeLattice(const G4String &filepath)
G4bool Load_NMap(G4int, G4int, G4int, G4String)
void SetDynamicalConstants(G4double Beta, G4double Gamma, G4double Lambda, G4double Mu)
static const G4String fDataDir
G4LatticeReader(G4int vb=0)
G4GLOB_DLL std::ostream G4cerr
G4bool ProcessValue(const G4String &name)
std::ifstream * psLatfile