Import Geant4 10.5.0 source tree
This commit is contained in:
@@ -498,7 +498,8 @@ G4int maxEnergyIndex = 0;
|
||||
G4double phi = twopi*G4UniformRand();
|
||||
G4double sinth = std::sin(theta);
|
||||
G4double en = thePhotons->operator[](i)->GetTotalEnergy();
|
||||
G4ThreeVector tempVector(en*sinth*std::cos(phi), en*sinth*std::sin(phi), en*std::cos(theta) );
|
||||
// DHW G4ThreeVector tempVector(en*sinth*std::cos(phi), en*sinth*std::sin(phi), en*std::cos(theta) );
|
||||
G4ThreeVector tempVector(en*sinth*std::cos(phi), en*sinth*std::sin(phi), en*costheta );
|
||||
thePhotons->operator[](i)->SetMomentum( tempVector ) ;
|
||||
}
|
||||
else if(tabulationType==1)
|
||||
|
||||
Reference in New Issue
Block a user