#include <G4LatticeManager.hh>
Definition at line 47 of file G4LatticeManager.hh.
◆ LatticeLogReg
◆ LatticeMatMap
◆ LatticePhyReg
◆ LatticeVolMap
◆ Clear()
void G4LatticeManager::Clear |
( |
| ) |
|
|
protected |
Definition at line 79 of file G4LatticeManager.cc.
79 {
82
85}
LatticeMatMap fLLatticeList
LatticeVolMap fPLatticeList
Referenced by Reset().
◆ GetLattice() [1/2]
◆ GetLattice() [2/2]
Definition at line 228 of file G4LatticeManager.cc.
228 {
229 LatticeVolMap::const_iterator latFind =
fPLatticeList.find(Vol);
232 G4cout <<
"G4LatticeManager::GetLattice found " << latFind->second
233 <<
" for " << (Vol?Vol->
GetName():
"default") <<
"." <<
G4endl;
234 return latFind->second;
235 }
236
238 G4cerr <<
"G4LatticeManager::GetLattice found no matching lattices for "
240
241 return 0;
242}
const G4String & GetName() const
◆ GetLatticeManager()
◆ HasLattice() [1/2]
◆ HasLattice() [2/2]
◆ LoadLattice() [1/2]
Definition at line 122 of file G4LatticeManager.cc.
123 {
125 G4cout <<
"G4LatticeManager::LoadLattice material " << Mat->
GetName()
126 <<
" " << latDir <<
G4endl;
127 }
128
132
134 else {
135 G4cerr <<
"ERROR creating " << latDir <<
" lattice for material "
137 }
138
139 return newLat;
140}
G4bool RegisterLattice(G4VPhysicalVolume *, G4LatticePhysical *)
Referenced by LoadLattice().
◆ LoadLattice() [2/2]
Definition at line 144 of file G4LatticeManager.cc.
145 {
147 G4cout <<
"G4LatticeManager::LoadLattice volume " << Vol->
GetName()
148 <<
" " << latDir <<
G4endl;
149 }
150
152
153
155 if (!lLattice) return 0;
156
160
162
163 return pLattice;
164}
G4LatticeLogical * LoadLattice(G4Material *, const G4String &latDir)
G4Material * GetMaterial() const
G4LogicalVolume * GetLogicalVolume() const
const G4RotationMatrix * GetFrameRotation() const
◆ MapKtoV()
Definition at line 264 of file G4LatticeManager.cc.
266 {
269 G4cout <<
"G4LatticeManager::MapKtoV using lattice " << theLattice
271
272
273 return theLattice ? theLattice->
MapKtoV(polarizationState, k) : 300.*m/s;
274}
G4LatticeLogical * GetLattice(G4Material *) const
G4double MapKtoV(G4int, G4ThreeVector) const
◆ MapKtoVDir()
Definition at line 282 of file G4LatticeManager.cc.
284 {
287 G4cout <<
"G4LatticeManager::MapKtoVDir using lattice " << theLattice
289
290
291 return theLattice ? theLattice->
MapKtoVDir(polarizationState, k) : k.
unit();
292}
G4ThreeVector MapKtoVDir(G4int, G4ThreeVector) const
◆ RegisterLattice() [1/3]
Definition at line 102 of file G4LatticeManager.cc.
103 {
104 if (!Mat || !Lat) return false;
105
109 latLock.unlock();
110
112 G4cout <<
"G4LatticeManager::RegisterLattice: "
113 <<
" Total number of logical lattices: " <<
fLLatticeList.size()
115 }
116
117 return true;
118}
◆ RegisterLattice() [2/3]
Definition at line 194 of file G4LatticeManager.cc.
195 {
196 if (!Vol || !LLat) return false;
197
198
200
201
203}
◆ RegisterLattice() [3/3]
◆ Reset()
void G4LatticeManager::Reset |
( |
| ) |
|
Definition at line 63 of file G4LatticeManager.cc.
63 {
64 for (LatticeLogReg::iterator lm=
fLLattices.begin();
66 delete (*lm);
67 }
68
69 for (LatticePhyReg::iterator pm=
fPLattices.begin();
71 delete (*pm);
72 }
73
75}
◆ SetVerboseLevel()
void G4LatticeManager::SetVerboseLevel |
( |
G4int |
vb | ) |
|
|
inline |
◆ fLLatticeList
◆ fLLattices
◆ fPLatticeList
◆ fPLattices
◆ verboseLevel
G4int G4LatticeManager::verboseLevel |
|
protected |
The documentation for this class was generated from the following files: