65 for(
auto anAtomPos:
GetAtomBase(anElement)->GetPos())
70 GFS +=
G4complex(std::cos(2 * CLHEP::pi * aDouble),
71 std::sin(2 * CLHEP::pi * aDouble));
75 SF +=
G4complex(AFF * GFS.real(),AFF * GFS.imag());
90 for(
auto anAtomPos:
GetAtomBase(anElement)->GetPos())
95 GFS +=
G4complex(std::cos(2 * CLHEP::pi * aDouble),
96 std::sin(2 * CLHEP::pi * aDouble));
105 for (
size_t i=0; i<6; i++) {
106 for (
size_t j=0; j<6; j++) {
115 if (p>0 && p<7 && q>0 && q<7)
fElReduced[p-1][q-1] = value;
121 if((theCrystalAtomBaseMap.count(anElement)<1)){
123 +
" is not registered." ;
128 return theCrystalAtomBaseMap[anElement];
134 std::vector<G4ThreeVector> pos;
138 vecout.insert(std::end(vecout), std::begin(pos), std::end(pos));
146 std::vector<G4ThreeVector> pos;
151 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
void SetCpq(G4int p, G4int q, G4double value)
G4bool FillAtomicPos(G4ThreeVector &pos, std::vector< G4ThreeVector > &vecout)
const G4String & GetName() const
const G4ElementVector * GetElementVector() const