Geant4  10.02.p01
G4LatticeReader Class Reference

#include <G4LatticeReader.hh>

+ Collaboration diagram for G4LatticeReader:

Public Member Functions

 G4LatticeReader (G4int vb=0)
 
 ~G4LatticeReader ()
 
void SetVerboseLevel (G4int vb)
 
G4LatticeLogicalMakeLattice (const G4String &filepath)
 

Protected Member Functions

G4bool OpenFile (const G4String &filepath)
 
G4bool ProcessToken ()
 
G4bool ProcessValue (const G4String &name)
 
G4bool ProcessConstants ()
 
G4bool ProcessMap ()
 
G4bool ProcessNMap ()
 
G4bool ReadMapInfo ()
 
G4bool SkipComments ()
 
void CloseFile ()
 

Private Attributes

G4int verboseLevel
 
std::ifstream * psLatfile
 
G4LatticeLogicalpLattice
 
G4String fMapPath
 
G4String fToken
 
G4double fValue
 
G4String fMap
 
G4String fsPol
 
G4int fPol
 
G4int fNX
 
G4int fNY
 

Static Private Attributes

static const G4String fDataDir
 

Detailed Description

Definition at line 43 of file G4LatticeReader.hh.

Constructor & Destructor Documentation

G4LatticeReader::G4LatticeReader ( G4int  vb = 0)

Definition at line 55 of file G4LatticeReader.cc.

G4LatticeReader::~G4LatticeReader ( )

Definition at line 59 of file G4LatticeReader.cc.

References psLatfile.

Member Function Documentation

void G4LatticeReader::CloseFile ( )
protected

Definition at line 126 of file G4LatticeReader.cc.

References psLatfile.

Referenced by MakeLattice(), and OpenFile().

+ Here is the caller graph for this function:

G4LatticeLogical * G4LatticeReader::MakeLattice ( const G4String filepath)

Definition at line 66 of file G4LatticeReader.cc.

References CloseFile(), FatalException, G4cout, G4endl, G4Exception(), OpenFile(), pLattice, ProcessToken(), psLatfile, and verboseLevel.

Referenced by G4LatticeManager::LoadLattice().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeReader::OpenFile ( const G4String filepath)
protected

Definition at line 100 of file G4LatticeReader.cc.

References CloseFile(), fDataDir, fMapPath, G4cout, G4endl, G4String::last(), psLatfile, and verboseLevel.

Referenced by MakeLattice().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeReader::ProcessConstants ( )
protected

Definition at line 185 of file G4LatticeReader.cc.

References G4cout, G4endl, G4InuclParticleNames::lambda, pLattice, psLatfile, G4LatticeLogical::SetDynamicalConstants(), and verboseLevel.

Referenced by ProcessToken().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeReader::ProcessMap ( )
protected

Definition at line 232 of file G4LatticeReader.cc.

References fMap, fNX, fNY, fPol, G4cerr, G4endl, G4LatticeLogical::LoadMap(), pLattice, and ReadMapInfo().

Referenced by ProcessToken().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeReader::ProcessNMap ( )
protected

Definition at line 241 of file G4LatticeReader.cc.

References fMap, fNX, fNY, fPol, G4cerr, G4endl, G4LatticeLogical::Load_NMap(), pLattice, and ReadMapInfo().

Referenced by ProcessToken().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeReader::ProcessToken ( )
protected

Definition at line 135 of file G4LatticeReader.cc.

References fToken, G4cout, G4endl, ProcessConstants(), ProcessMap(), ProcessNMap(), ProcessValue(), psLatfile, SkipComments(), and verboseLevel.

Referenced by MakeLattice().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeReader::ProcessValue ( const G4String name)
protected

Definition at line 159 of file G4LatticeReader.cc.

References fValue, G4cerr, G4cout, G4endl, pLattice, psLatfile, s, G4LatticeLogical::SetAnhDecConstant(), G4LatticeLogical::SetFTDOS(), G4LatticeLogical::SetLDOS(), G4LatticeLogical::SetScatteringConstant(), G4LatticeLogical::SetSTDOS(), and verboseLevel.

Referenced by ProcessToken().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeReader::ReadMapInfo ( )
protected

Definition at line 198 of file G4LatticeReader.cc.

References fMap, fMapPath, fNX, fNY, fPol, fsPol, G4cerr, G4cout, G4endl, G4LatticeLogical::MAXRES, psLatfile, G4String::toLower(), and verboseLevel.

Referenced by ProcessMap(), and ProcessNMap().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4LatticeReader::SetVerboseLevel ( G4int  vb)
inline

Definition at line 48 of file G4LatticeReader.hh.

References verboseLevel.

G4bool G4LatticeReader::SkipComments ( )
protected

Definition at line 152 of file G4LatticeReader.cc.

References G4INCL::Math::max(), and psLatfile.

Referenced by ProcessToken().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

const G4String G4LatticeReader::fDataDir
staticprivate
Initial value:
=
getenv("G4LATTICEDATA") ? (const char*)getenv("G4LATTICEDATA") : "./CrystalMaps"

Definition at line 75 of file G4LatticeReader.hh.

Referenced by OpenFile().

G4String G4LatticeReader::fMap
private

Definition at line 72 of file G4LatticeReader.hh.

Referenced by ProcessMap(), ProcessNMap(), and ReadMapInfo().

G4String G4LatticeReader::fMapPath
private

Definition at line 69 of file G4LatticeReader.hh.

Referenced by OpenFile(), and ReadMapInfo().

G4int G4LatticeReader::fNX
private

Definition at line 73 of file G4LatticeReader.hh.

Referenced by ProcessMap(), ProcessNMap(), and ReadMapInfo().

G4int G4LatticeReader::fNY
private

Definition at line 73 of file G4LatticeReader.hh.

Referenced by ProcessMap(), ProcessNMap(), and ReadMapInfo().

G4int G4LatticeReader::fPol
private

Definition at line 73 of file G4LatticeReader.hh.

Referenced by ProcessMap(), ProcessNMap(), and ReadMapInfo().

G4String G4LatticeReader::fsPol
private

Definition at line 72 of file G4LatticeReader.hh.

Referenced by ReadMapInfo().

G4String G4LatticeReader::fToken
private

Definition at line 70 of file G4LatticeReader.hh.

Referenced by ProcessToken().

G4double G4LatticeReader::fValue
private

Definition at line 71 of file G4LatticeReader.hh.

Referenced by ProcessValue().

G4LatticeLogical* G4LatticeReader::pLattice
private
std::ifstream* G4LatticeReader::psLatfile
private
G4int G4LatticeReader::verboseLevel
private

The documentation for this class was generated from the following files: