Geant4  10.02
G4LatticeManager Class Reference

#include <G4LatticeManager.hh>

+ Collaboration diagram for G4LatticeManager:

Public Member Functions

void SetVerboseLevel (G4int vb)
 
void Reset ()
 
G4bool RegisterLattice (G4VPhysicalVolume *, G4LatticePhysical *)
 
G4bool RegisterLattice (G4VPhysicalVolume *, G4LatticeLogical *)
 
G4bool RegisterLattice (G4Material *, G4LatticeLogical *)
 
G4LatticeLogicalLoadLattice (G4Material *, const G4String &latDir)
 
G4LatticeLogicalGetLattice (G4Material *) const
 
G4bool HasLattice (G4Material *) const
 
G4LatticePhysicalLoadLattice (G4VPhysicalVolume *, const G4String &latDir)
 
G4LatticePhysicalGetLattice (G4VPhysicalVolume *) const
 
G4bool HasLattice (G4VPhysicalVolume *) const
 
G4double MapKtoV (G4VPhysicalVolume *, G4int, const G4ThreeVector &) const
 
G4ThreeVector MapKtoVDir (G4VPhysicalVolume *, G4int, const G4ThreeVector &) const
 

Static Public Member Functions

static G4LatticeManagerGetLatticeManager ()
 

Protected Types

typedef std::map< G4Material
*, G4LatticeLogical * > 
LatticeMatMap
 
typedef std::set
< G4LatticeLogical * > 
LatticeLogReg
 
typedef std::map
< G4VPhysicalVolume
*, G4LatticePhysical * > 
LatticeVolMap
 
typedef std::set
< G4LatticePhysical * > 
LatticePhyReg
 

Protected Member Functions

void Clear ()
 

Protected Attributes

G4int verboseLevel
 
LatticeLogReg fLLattices
 
LatticeMatMap fLLatticeList
 
LatticePhyReg fPLattices
 
LatticeVolMap fPLatticeList
 

Private Member Functions

 G4LatticeManager ()
 
virtual ~G4LatticeManager ()
 

Static Private Attributes

static G4LatticeManagerfLM = 0
 

Detailed Description

Definition at line 48 of file G4LatticeManager.hh.

Member Typedef Documentation

typedef std::set<G4LatticeLogical*> G4LatticeManager::LatticeLogReg
protected

Definition at line 90 of file G4LatticeManager.hh.

Definition at line 89 of file G4LatticeManager.hh.

typedef std::set<G4LatticePhysical*> G4LatticeManager::LatticePhyReg
protected

Definition at line 96 of file G4LatticeManager.hh.

Definition at line 95 of file G4LatticeManager.hh.

Constructor & Destructor Documentation

G4LatticeManager::G4LatticeManager ( )
private

Definition at line 54 of file G4LatticeManager.cc.

References Clear().

Referenced by GetLatticeManager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4LatticeManager::~G4LatticeManager ( )
privatevirtual

Definition at line 58 of file G4LatticeManager.cc.

References Reset().

+ Here is the call graph for this function:

Member Function Documentation

void G4LatticeManager::Clear ( )
protected

Definition at line 80 of file G4LatticeManager.cc.

References fLLatticeList, fLLattices, fPLatticeList, and fPLattices.

Referenced by G4LatticeManager(), and Reset().

+ Here is the caller graph for this function:

G4LatticeLogical * G4LatticeManager::GetLattice ( G4Material Mat) const

Definition at line 210 of file G4LatticeManager.cc.

References fLLatticeList, G4cerr, G4cout, G4endl, G4Material::GetName(), and verboseLevel.

Referenced by MapKtoV(), MapKtoVDir(), and G4VPhononProcess::StartTracking().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4LatticePhysical * G4LatticeManager::GetLattice ( G4VPhysicalVolume Vol) const

Definition at line 229 of file G4LatticeManager.cc.

References fPLatticeList, G4cerr, G4cout, G4endl, G4VPhysicalVolume::GetName(), and verboseLevel.

+ Here is the call graph for this function:

G4LatticeManager * G4LatticeManager::GetLatticeManager ( )
static

Definition at line 90 of file G4LatticeManager.cc.

References fLM, G4LatticeManager(), and G4TemplateAutoLock< M, L, U >::unlock().

Referenced by XPhononStackingAction::ClassifyNewTrack(), XDetectorConstruction::SetupGeometry(), and G4VPhononProcess::StartTracking().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeManager::HasLattice ( G4Material Mat) const

Definition at line 255 of file G4LatticeManager.cc.

References fLLatticeList.

G4bool G4LatticeManager::HasLattice ( G4VPhysicalVolume Vol) const

Definition at line 249 of file G4LatticeManager.cc.

References fPLatticeList.

G4LatticeLogical * G4LatticeManager::LoadLattice ( G4Material Mat,
const G4String latDir 
)

Definition at line 123 of file G4LatticeManager.cc.

References G4cerr, G4cout, G4endl, G4Material::GetName(), G4LatticeReader::MakeLattice(), RegisterLattice(), and verboseLevel.

Referenced by LoadLattice(), and XDetectorConstruction::SetupGeometry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4LatticePhysical * G4LatticeManager::LoadLattice ( G4VPhysicalVolume Vol,
const G4String latDir 
)

Definition at line 145 of file G4LatticeManager.cc.

References G4cout, G4endl, G4VPhysicalVolume::GetFrameRotation(), G4VPhysicalVolume::GetLogicalVolume(), G4LogicalVolume::GetMaterial(), G4VPhysicalVolume::GetName(), LoadLattice(), RegisterLattice(), and verboseLevel.

+ Here is the call graph for this function:

G4double G4LatticeManager::MapKtoV ( G4VPhysicalVolume Vol,
G4int  polarizationState,
const G4ThreeVector k 
) const

Definition at line 265 of file G4LatticeManager.cc.

References G4cout, G4endl, GetLattice(), m, G4LatticePhysical::MapKtoV(), s, and verboseLevel.

Referenced by XPhononStackingAction::ClassifyNewTrack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4LatticeManager::MapKtoVDir ( G4VPhysicalVolume Vol,
G4int  polarizationState,
const G4ThreeVector k 
) const

Definition at line 283 of file G4LatticeManager.cc.

References G4cout, G4endl, GetLattice(), G4LatticePhysical::MapKtoVDir(), and verboseLevel.

Referenced by XPhononStackingAction::ClassifyNewTrack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeManager::RegisterLattice ( G4VPhysicalVolume Vol,
G4LatticePhysical Lat 
)

Definition at line 172 of file G4LatticeManager.cc.

References fPLatticeList, fPLattices, G4cout, G4endl, G4TemplateAutoLock< M, L, U >::unlock(), and verboseLevel.

Referenced by LoadLattice(), RegisterLattice(), and XDetectorConstruction::SetupGeometry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4LatticeManager::RegisterLattice ( G4VPhysicalVolume Vol,
G4LatticeLogical LLat 
)

Definition at line 195 of file G4LatticeManager.cc.

References G4VPhysicalVolume::GetFrameRotation(), G4VPhysicalVolume::GetLogicalVolume(), G4LogicalVolume::GetMaterial(), and RegisterLattice().

+ Here is the call graph for this function:

G4bool G4LatticeManager::RegisterLattice ( G4Material Mat,
G4LatticeLogical Lat 
)

Definition at line 103 of file G4LatticeManager.cc.

References fLLatticeList, fLLattices, G4cout, G4endl, G4TemplateAutoLock< M, L, U >::unlock(), and verboseLevel.

+ Here is the call graph for this function:

void G4LatticeManager::Reset ( )

Definition at line 64 of file G4LatticeManager.cc.

References Clear(), fLLattices, and fPLattices.

Referenced by ~G4LatticeManager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4LatticeManager::SetVerboseLevel ( G4int  vb)
inline

Definition at line 55 of file G4LatticeManager.hh.

References verboseLevel.

Member Data Documentation

LatticeMatMap G4LatticeManager::fLLatticeList
protected

Definition at line 93 of file G4LatticeManager.hh.

Referenced by Clear(), GetLattice(), HasLattice(), and RegisterLattice().

LatticeLogReg G4LatticeManager::fLLattices
protected

Definition at line 92 of file G4LatticeManager.hh.

Referenced by Clear(), RegisterLattice(), and Reset().

G4LatticeManager * G4LatticeManager::fLM = 0
staticprivate

Definition at line 50 of file G4LatticeManager.hh.

Referenced by GetLatticeManager().

LatticeVolMap G4LatticeManager::fPLatticeList
protected

Definition at line 99 of file G4LatticeManager.hh.

Referenced by Clear(), GetLattice(), HasLattice(), and RegisterLattice().

LatticePhyReg G4LatticeManager::fPLattices
protected

Definition at line 98 of file G4LatticeManager.hh.

Referenced by Clear(), RegisterLattice(), and Reset().

G4int G4LatticeManager::verboseLevel
protected

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