Import Geant4 10.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 12:08:39 +02:00
parent 286caacf06
commit c9b32a6c0a
5770 changed files with 1050949 additions and 367105 deletions
-34
View File
@@ -35,40 +35,6 @@ void Hep3Vector::setMag(double ma) {
}
}
double Hep3Vector::operator () (int i) const {
switch(i) {
case X:
return x();
case Y:
return y();
case Z:
return z();
default:
std::cerr << "Hep3Vector::operator () - "
<< "Hep3Vector subscripting: bad index (" << i << ")"
<< std::endl;
}
return 0.;
}
double & Hep3Vector::operator () (int i) {
static double dummy;
switch(i) {
case X:
return dx;
case Y:
return dy;
case Z:
return dz;
default:
std::cerr
<< "Hep3Vector::operator () - "
<< "Hep3Vector subscripting: bad index (" << i << ")"
<< std::endl;
return dummy;
}
}
Hep3Vector & Hep3Vector::rotateUz(const Hep3Vector& NewUzVector) {
// NewUzVector must be normalized !