39 , theUnitCell(nullptr)
64 for(
const auto& anAtomPos :
GetAtomBase(anElement)->GetPos())
69 GFS +=
G4complex(std::cos(CLHEP::twopi * aDouble),
70 std::sin(CLHEP::twopi * aDouble));
74 SF +=
G4complex(AFF * GFS.real(),AFF * GFS.imag());
89 for(
const auto& anAtomPos :
GetAtomBase(anElement)->GetPos())
92 h * anAtomPos.x() + k * anAtomPos.y() + l * anAtomPos.z();
93 GFS +=
G4complex(std::cos(CLHEP::twopi * aDouble),
94 std::sin(CLHEP::twopi * aDouble));
103 for (
size_t i=0; i<6; ++i) {
104 for (
size_t j=0; j<6; ++j) {
113 if(p > 0 && p < 7 && q > 0 && q < 7)
122 if((theCrystalAtomBaseMap.count(anElement)<1)){
124 +
" is not registered." ;
129 return theCrystalAtomBaseMap[anElement];
135 std::vector<G4ThreeVector> pos;
136 for(
auto & asinglepos:
GetAtomBase(anEl)->GetPos()){
139 vecout.insert(std::end(vecout), std::begin(pos), std::end(pos));
147 std::vector<G4ThreeVector> pos;
152 vecout.insert(std::end(vecout), std::begin(pos), std::end(pos));
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::complex< G4double > G4complex
void SetElReduced(const ReducedElasticity &mat)
G4complex ComputeStructureFactorGeometrical(G4int h, G4int k, G4int l)
G4CrystalExtension(G4Material *, const G4String &name="crystal")
G4CrystalAtomBase * GetAtomBase(const G4Element *anElement)
void AddAtomBase(const G4Element *anElement, G4CrystalAtomBase *aBase)
G4complex ComputeStructureFactor(G4double kScatteringVector, G4int h, G4int k, G4int l)
G4bool GetAtomPos(const G4Element *anEl, std::vector< G4ThreeVector > &vecout)
ReducedElasticity fElReduced
~G4CrystalExtension() override
void SetCpq(G4int p, G4int q, G4double value)
G4bool FillAtomicPos(G4ThreeVector &pos, std::vector< G4ThreeVector > &vecout)
const G4String & GetName() const
const G4ElementVector * GetElementVector() const