From 7361615bc4ddf608fe761af8e64d938670e698bd Mon Sep 17 00:00:00 2001 From: James Shen Date: Tue, 30 Apr 2024 13:18:14 -0400 Subject: [PATCH] Fix formatting in PR #129 --- src/gen/src/AmBeSource.cc | 4 ++-- src/gen/src/CfSource.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gen/src/AmBeSource.cc b/src/gen/src/AmBeSource.cc index 70899219..9f9a030f 100644 --- a/src/gen/src/AmBeSource.cc +++ b/src/gen/src/AmBeSource.cc @@ -100,7 +100,7 @@ AmBeSource::AmBeSource() { double energy = massNeutron + neutronKE; // info << "energy = " << energy*CLHEP::MeV << newline; // Generate momentum direction uniformly in phi and cos(theta). - double phi = CLHEP::RandFlat::shoot(0., 2.0*M_PI); + double phi = CLHEP::RandFlat::shoot(0., 2.0 * M_PI); double cosTheta = CLHEP::RandFlat::shoot(-1., 1.); double sinTheta = sqrt(1. - cosTheta * cosTheta); @@ -147,7 +147,7 @@ AmBeSource::AmBeSource() { for (int nn = 0; nn < Ngamma; nn++) { double energy = 4.43; // from the C12 first excited state // Generate momentum direction uniformly in phi and cos(theta). - double phi = CLHEP::RandFlat::shoot(0., 2.0*M_PI); + double phi = CLHEP::RandFlat::shoot(0., 2.0 * M_PI); double cosTheta = CLHEP::RandFlat::shoot(-1., 1.); double sinTheta = sqrt(1. - cosTheta * cosTheta); double px = energy * sinTheta * cos(phi); diff --git a/src/gen/src/CfSource.cc b/src/gen/src/CfSource.cc index 31daed02..b404d0f5 100644 --- a/src/gen/src/CfSource.cc +++ b/src/gen/src/CfSource.cc @@ -132,7 +132,7 @@ CfSource::CfSource(int newIsotope) : Isotope(newIsotope) { double neutronKE = fGenerate->shoot() * (fhigh - flow) + flow; double energy = massNeutron + neutronKE; // Generate momentum direction uniformly in phi and cos(theta). - double phi = CLHEP::RandFlat::shoot(0., 2.0*M_PI); + double phi = CLHEP::RandFlat::shoot(0., 2.0 * M_PI); double cosTheta = CLHEP::RandFlat::shoot(-1., 1.); double sinTheta = sqrt(1. - cosTheta * cosTheta); double neutronP2 = std::max(0., energy * energy - massNeutron * massNeutron); @@ -181,7 +181,7 @@ CfSource::CfSource(int newIsotope) : Isotope(newIsotope) { for (int nn = 0; nn < Ngamma; nn++) { double energy = gGenerate->shoot() * (ghigh - glow) + glow; // Generate momentum direction uniformly in phi and cos(theta). - double phi = CLHEP::RandFlat::shoot(0., 2.0*M_PI); + double phi = CLHEP::RandFlat::shoot(0., 2.0 * M_PI); double cosTheta = CLHEP::RandFlat::shoot(-1., 1.); double sinTheta = sqrt(1. - cosTheta * cosTheta); double px = energy * sinTheta * cos(phi);