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;
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4bool LoadMap(G4int, G4int, G4int, G4String)
std::ostringstream G4ExceptionDescription
void SetSTDOS(G4double STDOS)
void SetScatteringConstant(G4double b)
static const G4String fDataDir
std::ifstream * psLatfile
G4bool Load_NMap(G4int, G4int, G4int, G4String)
G4LatticeReader(G4int vb=0)
void SetAnhDecConstant(G4double a)
G4bool ProcessConstants()
G4LatticeLogical * MakeLattice(const G4String &filepath)
G4GLOB_DLL std::ostream G4cerr
void SetFTDOS(G4double FTDOS)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4bool OpenFile(const G4String &filepath)
G4GLOB_DLL std::ostream G4cout
G4LatticeLogical * pLattice
G4bool ProcessValue(const G4String &name)
Definition of the G4LatticeLogical class.
void SetDynamicalConstants(G4double Beta, G4double Gamma, G4double Lambda, G4double Mu)
void SetLDOS(G4double LDOS)