Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
@@ -46,6 +46,7 @@
#ifndef G4CrystalAtomBase_HH
#define G4CrystalAtomBase_HH 1
#include <utility>
#include <vector>
#include <G4ThreeVector.hh>
@@ -58,7 +59,7 @@ public: // with description
// Constructor to create a lattice
//
G4CrystalAtomBase() {;};
G4CrystalAtomBase(G4ThreeVector apos) {AddPos(apos);};
G4CrystalAtomBase(const G4ThreeVector& apos) { AddPos(apos); };
~G4CrystalAtomBase() {;};
//
@@ -76,10 +77,11 @@ public:
inline
G4ThreeVector GetPos(G4int idx) {return thePos[idx];}
inline void AddPos(const G4ThreeVector& a3vec) { thePos.push_back(a3vec); }
inline
void AddPos(G4ThreeVector a3vec) {thePos.push_back(a3vec);}
inline
void SetPos(std::vector<G4ThreeVector> a3vecvec) {thePos = a3vecvec;}
void SetPos(std::vector<G4ThreeVector> a3vecvec) {
thePos = std::move(a3vecvec);
}
inline
void DelPos(G4int idx) {thePos.erase(thePos.begin()+idx);}
};