Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4LatticePhysical Class Reference

#include <G4LatticePhysical.hh>

Public Member Functions

 G4LatticePhysical (const G4LatticeLogical *Lat=0, const G4RotationMatrix *Rot=0)
 
virtual ~G4LatticePhysical ()
 
void SetVerboseLevel (G4int vb)
 
G4double MapKtoV (G4int, G4ThreeVector) const
 
G4ThreeVector MapKtoVDir (G4int, G4ThreeVector) const
 
void SetLatticeLogical (const G4LatticeLogical *Lat)
 
void SetPhysicalOrientation (const G4RotationMatrix *Rot)
 
void SetLatticeOrientation (G4double, G4double)
 
void SetMillerOrientation (G4int, G4int, G4int)
 
const G4LatticeLogicalGetLattice () const
 
G4double GetScatteringConstant () const
 
G4double GetAnhDecConstant () const
 
G4double GetLDOS () const
 
G4double GetSTDOS () const
 
G4double GetFTDOS () const
 
G4double GetBeta () const
 
G4double GetGamma () const
 
G4double GetLambda () const
 
G4double GetMu () const
 
G4ThreeVector RotateToGlobal (const G4ThreeVector &dir) const
 
G4ThreeVector RotateToLocal (const G4ThreeVector &dir) const
 

Detailed Description

Definition at line 42 of file G4LatticePhysical.hh.

Constructor & Destructor Documentation

G4LatticePhysical::G4LatticePhysical ( const G4LatticeLogical Lat = 0,
const G4RotationMatrix Rot = 0 
)

Definition at line 50 of file G4LatticePhysical.cc.

References SetPhysicalOrientation().

52  : verboseLevel(0), fTheta(0), fPhi(0), fLattice(Lat) {
54 }
void SetPhysicalOrientation(const G4RotationMatrix *Rot)
G4LatticePhysical::~G4LatticePhysical ( )
virtual

Definition at line 56 of file G4LatticePhysical.cc.

56 {;}

Member Function Documentation

G4double G4LatticePhysical::GetAnhDecConstant ( ) const
inline

Definition at line 63 of file G4LatticePhysical.hh.

References G4LatticeLogical::GetAnhDecConstant().

Referenced by G4PhononDownconversion::GetMeanFreePath().

63 { return fLattice->GetAnhDecConstant(); }
G4double GetAnhDecConstant() const
G4double G4LatticePhysical::GetBeta ( ) const
inline

Definition at line 67 of file G4LatticePhysical.hh.

References G4LatticeLogical::GetBeta().

Referenced by G4PhononDownconversion::PostStepDoIt().

67 { return fLattice->GetBeta(); }
G4double GetBeta() const
G4double G4LatticePhysical::GetFTDOS ( ) const
inline

Definition at line 66 of file G4LatticePhysical.hh.

References G4LatticeLogical::GetFTDOS().

Referenced by G4PhononScattering::PostStepDoIt().

66 { return fLattice->GetFTDOS(); }
G4double GetFTDOS() const
G4double G4LatticePhysical::GetGamma ( ) const
inline

Definition at line 68 of file G4LatticePhysical.hh.

References G4LatticeLogical::GetGamma().

Referenced by G4PhononDownconversion::PostStepDoIt().

68 { return fLattice->GetGamma(); }
G4double GetGamma() const
G4double G4LatticePhysical::GetLambda ( ) const
inline

Definition at line 69 of file G4LatticePhysical.hh.

References G4LatticeLogical::GetLambda().

Referenced by G4PhononDownconversion::PostStepDoIt().

69 { return fLattice->GetLambda(); }
G4double GetLambda() const
const G4LatticeLogical* G4LatticePhysical::GetLattice ( ) const
inline

Definition at line 60 of file G4LatticePhysical.hh.

60 { return fLattice; }
G4double G4LatticePhysical::GetLDOS ( ) const
inline

Definition at line 64 of file G4LatticePhysical.hh.

References G4LatticeLogical::GetLDOS().

Referenced by G4PhononScattering::PostStepDoIt().

64 { return fLattice->GetLDOS(); }
G4double GetLDOS() const
G4double G4LatticePhysical::GetMu ( ) const
inline

Definition at line 70 of file G4LatticePhysical.hh.

References G4LatticeLogical::GetMu().

Referenced by G4PhononDownconversion::PostStepDoIt().

70 { return fLattice->GetMu(); }
G4double GetMu() const
G4double G4LatticePhysical::GetScatteringConstant ( ) const
inline

Definition at line 62 of file G4LatticePhysical.hh.

References G4LatticeLogical::GetScatteringConstant().

Referenced by G4PhononScattering::GetMeanFreePath().

62 { return fLattice->GetScatteringConstant(); }
G4double GetScatteringConstant() const
G4double G4LatticePhysical::GetSTDOS ( ) const
inline

Definition at line 65 of file G4LatticePhysical.hh.

References G4LatticeLogical::GetSTDOS().

Referenced by G4PhononScattering::PostStepDoIt().

65 { return fLattice->GetSTDOS(); }
G4double GetSTDOS() const
G4double G4LatticePhysical::MapKtoV ( G4int  polarizationState,
G4ThreeVector  k 
) const

Definition at line 105 of file G4LatticePhysical.cc.

References G4cout, G4endl, G4LatticeLogical::MapKtoV(), and CLHEP::Hep3Vector::rotate().

Referenced by G4VPhononProcess::CreateSecondary(), G4LatticeManager::MapKtoV(), and G4PhononReflection::PostStepDoIt().

106  {
107  if (verboseLevel>1) G4cout << "G4LatticePhysical::MapKtoV " << k << G4endl;
108 
109  k.rotate(yhat,fTheta).rotate(zhat, fPhi);
110  return fLattice->MapKtoV(polarizationState, k);
111 }
virtual G4double MapKtoV(G4int, const G4ThreeVector &) const
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
Hep3Vector & rotate(double, const Hep3Vector &)
Definition: ThreeVectorR.cc:28
G4ThreeVector G4LatticePhysical::MapKtoVDir ( G4int  polarizationState,
G4ThreeVector  k 
) const

Definition at line 116 of file G4LatticePhysical.cc.

References G4cout, G4endl, G4LatticeLogical::MapKtoVDir(), and CLHEP::Hep3Vector::rotate().

Referenced by G4VPhononProcess::CreateSecondary(), and G4LatticeManager::MapKtoVDir().

117  {
118  if (verboseLevel>1) G4cout << "G4LatticePhysical::MapKtoVDir " << k << G4endl;
119 
120  k.rotate(yhat,fTheta).rotate(zhat,fPhi);
121 
122  G4ThreeVector VG = fLattice->MapKtoVDir(polarizationState, k);
123 
124  return VG.rotate(zhat,-fPhi).rotate(yhat,-fTheta);
125 }
virtual G4ThreeVector MapKtoVDir(G4int, const G4ThreeVector &) const
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
Hep3Vector & rotate(double, const Hep3Vector &)
Definition: ThreeVectorR.cc:28
G4ThreeVector G4LatticePhysical::RotateToGlobal ( const G4ThreeVector dir) const

Definition at line 132 of file G4LatticePhysical.cc.

References G4cout, and G4endl.

Referenced by G4VPhononProcess::CreateSecondary().

132  {
133  if (verboseLevel>1) {
134  G4cout << "G4LatticePhysical::RotateToGlobal " << dir
135  << "\nusing fLocalToGlobal " << fLocalToGlobal
136  << G4endl;
137  }
138 
139  G4ThreeVector result = fLocalToGlobal*dir;
140  if (verboseLevel>1) G4cout << " result " << result << G4endl;
141 
142  return result;
143 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
G4ThreeVector G4LatticePhysical::RotateToLocal ( const G4ThreeVector dir) const

Definition at line 146 of file G4LatticePhysical.cc.

References G4cout, and G4endl.

146  {
147  if (verboseLevel>1) {
148  G4cout << "G4LatticePhysical::RotateToLocal " << dir
149  << "\nusing fGlobalToLocal " << fGlobalToLocal
150  << G4endl;
151  }
152 
153  G4ThreeVector result = fGlobalToLocal*dir;
154  if (verboseLevel>1) G4cout << " result " << result << G4endl;
155 
156  return result;
157 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void G4LatticePhysical::SetLatticeLogical ( const G4LatticeLogical Lat)
inline

Definition at line 54 of file G4LatticePhysical.hh.

54 { fLattice = Lat; }
void G4LatticePhysical::SetLatticeOrientation ( G4double  t_rot,
G4double  p_rot 
)

Definition at line 79 of file G4LatticePhysical.cc.

References G4cout, and G4endl.

79  {
80  fTheta = t_rot;
81  fPhi = p_rot;
82 
83  if (verboseLevel)
84  G4cout << "G4LatticePhysical::SetLatticeOrientation " << fTheta << " "
85  << fPhi << G4endl;
86 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void G4LatticePhysical::SetMillerOrientation ( G4int  l,
G4int  k,
G4int  n 
)

Definition at line 90 of file G4LatticePhysical.cc.

References G4cout, G4endl, and python.hepunit::halfpi.

90  {
91  fTheta = halfpi - std::atan2(n+0.000001,l+0.000001);
92  fPhi = halfpi - std::atan2(l+0.000001,k+0.000001);
93 
94  if (verboseLevel)
95  G4cout << "G4LatticePhysical::SetMillerOrientation(" << l << k << n
96  << ") : " << fTheta << " " << fPhi << G4endl;
97 }
G4GLOB_DLL std::ostream G4cout
const G4int n
#define G4endl
Definition: G4ios.hh:61
void G4LatticePhysical::SetPhysicalOrientation ( const G4RotationMatrix Rot)

Definition at line 61 of file G4LatticePhysical.cc.

References G4cout, G4endl, CLHEP::HepRotation::IDENTITY, and CLHEP::HepRotation::invert().

Referenced by G4LatticePhysical().

61  {
62  if (!Rot) { // No orientation specified
63  fLocalToGlobal = fGlobalToLocal = G4RotationMatrix::IDENTITY;
64  } else {
65  fLocalToGlobal = fGlobalToLocal = *Rot; // Frame rotation
66  fGlobalToLocal.invert();
67  }
68 
69  if (verboseLevel) {
70  G4cout << "G4LatticePhysical::SetPhysicalOrientation " << *Rot
71  << "\nfLocalToGlobal: " << fLocalToGlobal
72  << "\nfGlobalToLocal: " << fGlobalToLocal
73  << G4endl;
74  }
75 }
HepRotation & invert()
static DLL_API const HepRotation IDENTITY
Definition: Rotation.h:369
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void G4LatticePhysical::SetVerboseLevel ( G4int  vb)
inline

Definition at line 48 of file G4LatticePhysical.hh.

48 { verboseLevel = vb; }

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