Import Geant4 9.2.0 source tree
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4eeToTwoPiModel.cc,v 1.5 2007/05/22 17:37:30 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// $Id: G4eeToTwoPiModel.cc,v 1.6 2008/07/10 18:06:39 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -63,7 +63,8 @@ using namespace std;
|
||||
G4eeToTwoPiModel::G4eeToTwoPiModel(G4eeCrossSections* cr):
|
||||
cross(cr)
|
||||
{
|
||||
Initialise();
|
||||
massPi = G4PionPlus::PionPlus()->GetPDGMass();
|
||||
massRho = 775.5*MeV;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -73,30 +74,21 @@ G4eeToTwoPiModel::~G4eeToTwoPiModel()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void G4eeToTwoPiModel::Initialise()
|
||||
{
|
||||
massPi = G4PionPlus::PionPlus()->GetPDGMass();
|
||||
massRho = 770.*MeV;
|
||||
highEnergy = 1.*GeV;
|
||||
cross = new G4eeCrossSections();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4PhysicsVector* G4eeToTwoPiModel::PhysicsVector(G4double emin,
|
||||
G4double emax) const
|
||||
{
|
||||
G4double tmin = max(emin, 2.0*massPi);
|
||||
G4double tmax = max(tmin, emax);
|
||||
G4double tmin = std::max(emin, 2.0*massPi);
|
||||
G4double tmax = std::max(tmin, emax);
|
||||
G4int nbins = (G4int)((tmax - tmin)/(5.*MeV));
|
||||
G4PhysicsVector* v = new G4PhysicsLinearVector(emin,emax,nbins);
|
||||
v->SetSpline(true);
|
||||
return v;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void G4eeToTwoPiModel::SampleSecondaries(std::vector<G4DynamicParticle*>* newp,
|
||||
G4double e, const G4ThreeVector& direction) const
|
||||
G4double e, const G4ThreeVector& direction)
|
||||
{
|
||||
|
||||
G4double tkin = 0.5*e - massPi;
|
||||
@@ -112,7 +104,7 @@ void G4eeToTwoPiModel::SampleSecondaries(std::vector<G4DynamicParticle*>* newp,
|
||||
G4ThreeVector dir(sint*cos(phi),sint*sin(phi), cost);
|
||||
dir.rotateUz(direction);
|
||||
|
||||
// create G4DynamicParticle object for delta ray
|
||||
// create G4DynamicParticle objects
|
||||
G4DynamicParticle* pip =
|
||||
new G4DynamicParticle(G4PionPlus::PionPlus(),dir,tkin);
|
||||
G4DynamicParticle* pin =
|
||||
|
||||
Reference in New Issue
Block a user