59 for (LatticeLogReg::iterator lm=
fLLattices.begin();
64 for (LatticePhyReg::iterator pm=
fPLattices.begin();
96 if (!Mat || !Lat)
return false;
102 G4cout <<
"G4LatticeManager::RegisterLattice: "
103 <<
" Total number of logical lattices: " <<
fLLatticeList.size()
115 G4cout <<
"G4LatticeManager::LoadLattice material " << Mat->
GetName()
116 <<
" " << latDir <<
G4endl;
125 G4cerr <<
"ERROR creating " << latDir <<
" lattice for material "
137 G4cout <<
"G4LatticeManager::LoadLattice volume " << Vol->
GetName()
138 <<
" " << latDir <<
G4endl;
145 if (!lLattice)
return 0;
163 if (!Vol || !Lat)
return false;
172 G4cout <<
"G4LatticeManager::RegisterLattice: "
173 <<
" Total number of physical lattices: " <<
fPLatticeList.size()-1
182 if (!Vol || !LLat)
return false;
196 LatticeMatMap::const_iterator latFind =
fLLatticeList.find(Mat);
199 G4cout <<
"G4LatticeManager::GetLattice found " << latFind->second
201 return latFind->second;
206 G4cerr <<
"G4LatticeManager:: Found no matching lattices for "
216 LatticeVolMap::const_iterator latFind =
fPLatticeList.find(Vol);
219 G4cout <<
"G4LatticeManager::GetLattice found " << latFind->second
220 <<
" for " << (Vol?Vol->
GetName():
"default") <<
"." <<
G4endl;
221 return latFind->second;
225 G4cerr <<
"G4LatticeManager::GetLattice found no matching lattices for "
252 G4int polarizationState,
256 G4cout <<
"G4LatticeManager::MapKtoV using lattice " << theLattice
260 return theLattice ? theLattice->
MapKtoV(polarizationState, k) : 300.*
m/
s;
270 G4int polarizationState,
274 G4cout <<
"G4LatticeManager::MapKtoVDir using lattice " << theLattice
278 return theLattice ? theLattice->
MapKtoVDir(polarizationState, k) : k.unit();
static G4LatticeManager * GetLatticeManager()
CLHEP::Hep3Vector G4ThreeVector
G4ThreeVector MapKtoVDir(G4VPhysicalVolume *, G4int, const G4ThreeVector &) const
G4Material * GetMaterial() const
const G4String & GetName() const
G4double MapKtoV(G4int, G4ThreeVector) const
G4double MapKtoV(G4VPhysicalVolume *, G4int, const G4ThreeVector &) const
const G4RotationMatrix * GetFrameRotation() const
static G4ThreadLocal G4LatticeManager * fLM
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
G4LatticeLogical * LoadLattice(G4Material *, const G4String &latDir)
G4ThreeVector MapKtoVDir(G4int, G4ThreeVector) const
LatticeVolMap fPLatticeList
G4LogicalVolume * GetLogicalVolume() const
Definition of the G4LatticePhysical class.
Definition of the G4LatticeLogical class.
virtual ~G4LatticeManager()
Definition of the G4LatticeReader class.
G4bool HasLattice(G4Material *) const
G4LatticeLogical * MakeLattice(const G4String &filepath)
G4bool RegisterLattice(G4VPhysicalVolume *, G4LatticePhysical *)
LatticeMatMap fLLatticeList
G4LatticeLogical * GetLattice(G4Material *) const
G4GLOB_DLL std::ostream G4cerr