Import Geant4 10.5.1 source tree

This commit is contained in:
Gabriele Cosmo
2019-04-17 10:39:02 +02:00
parent a7fdc52004
commit 28a70706e0
661 changed files with 55791 additions and 106984 deletions
@@ -45,7 +45,7 @@ public:
const HadrontherapyDetectorHit& operator=(const HadrontherapyDetectorHit&);
G4int operator==(const HadrontherapyDetectorHit&) const;
G4bool operator==(const HadrontherapyDetectorHit&) const;
//******************************MT
inline void* operator new(size_t);
@@ -47,7 +47,7 @@ struct ionLet
G4int Z; // atomic number
G4int A; // mass number
G4double *letDN , *letDD, *letTN , *letTD; // Track averaged LET and Dose averaged LET
//friend bool operator<(const ionLet& a, const ionLet& b) {return (a.Z == b.Z) ? b.A < a.A : b.Z < a.Z ;}
//friend G4bool operator<(const ionLet& a, const ionLet& b) {return (a.Z == b.Z) ? b.A < a.A : b.Z < a.Z ;}
G4bool operator<(const ionLet& a) const{return (this->Z == a.Z) ? this-> A < a.A : this->Z < a.Z ;}
// For isotopes sort by the mass number, else sort by the atomic one.
};
@@ -90,7 +90,7 @@ struct ion
G4int A; // mass number
G4double *dose; // pointer to dose matrix
unsigned int *fluence; // pointer to fluence matrix
//friend bool operator<(const ion& a, const ion& b) {return (a.Z == b.Z) ? b.A < a.A : b.Z < a.Z ;}
//friend G4bool operator<(const ion& a, const ion& b) {return (a.Z == b.Z) ? b.A < a.A : b.Z < a.Z ;}
G4bool operator<(const ion& a) const{return (this->Z == a.Z) ? this-> A < a.A : this->Z < a.Z ;}
};