Import Geant4 10.1.0 source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4eeToTwoPiModel.cc 66241 2012-12-13 18:34:42Z gunter $
|
||||
// $Id: G4eeToTwoPiModel.cc 82961 2014-07-21 09:20:49Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -61,9 +61,16 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
G4eeToTwoPiModel::G4eeToTwoPiModel(G4eeCrossSections* cr):
|
||||
cross(cr)
|
||||
G4eeToTwoPiModel::G4eeToTwoPiModel(G4eeCrossSections* cr,
|
||||
G4double maxkinEnergy,
|
||||
G4double binWidth)
|
||||
: G4Vee2hadrons(cr,
|
||||
2.0*G4PionPlus::PionPlus()->GetPDGMass(),
|
||||
maxkinEnergy,
|
||||
binWidth)
|
||||
{
|
||||
G4cout << "#####G4eeToTwoPiModel####" << G4endl;
|
||||
|
||||
massPi = G4PionPlus::PionPlus()->GetPDGMass();
|
||||
massRho = 775.5*MeV;
|
||||
}
|
||||
@@ -75,13 +82,6 @@ G4eeToTwoPiModel::~G4eeToTwoPiModel()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4double G4eeToTwoPiModel::ThresholdEnergy() const
|
||||
{
|
||||
return 2.0*massPi;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4double G4eeToTwoPiModel::PeakEnergy() const
|
||||
{
|
||||
return massRho;
|
||||
@@ -91,21 +91,7 @@ G4double G4eeToTwoPiModel::PeakEnergy() const
|
||||
|
||||
G4double G4eeToTwoPiModel::ComputeCrossSection(G4double e) const
|
||||
{
|
||||
G4double ee = std::min(HighEnergy(),e);
|
||||
return cross->CrossSection2pi(ee);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4PhysicsVector* G4eeToTwoPiModel::PhysicsVector(G4double emin,
|
||||
G4double emax) const
|
||||
{
|
||||
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;
|
||||
return cross->CrossSection2pi(e);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
Reference in New Issue
Block a user