Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/8088_savehkl_logs'
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Oct 11, 2013
2 parents 71a16cd + 832242a commit fc7ba84
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Code/Mantid/Framework/Crystal/src/SaveHKL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ namespace Crystal
double rho = sampleMaterial.numberDensity();
if (smu == EMPTY_DBL()) smu = sampleMaterial.totalScatterXSection(NeutronAtom::ReferenceLambda) * rho;
if (amu == EMPTY_DBL()) amu = sampleMaterial.absorbXSection(NeutronAtom::ReferenceLambda) * rho;
g_log.notice() << "Sample number density = " << rho << " atoms/Angstrom^3\n";
g_log.notice() << "Cross sections for wavelength = " << NeutronAtom::ReferenceLambda << "Angstroms\n"
<< " Coherent = " << sampleMaterial.cohScatterXSection() << " barns\n"
<< " Incoherent = " << sampleMaterial.incohScatterXSection() << " barns\n"
<< " Total = " << sampleMaterial.totalScatterXSection() << " barns\n"
<< " Absorption = " << sampleMaterial.absorbXSection() << " barns\n";
}
else //Save input in Sample with wrong atomic number and name
{
Expand All @@ -206,6 +212,10 @@ namespace Crystal
Material mat("SetInAnvredCorrection", neutron, 1.0);
ws->mutableSample().setMaterial(mat);
}
g_log.notice() << "LinearScatteringCoef = " << smu << " 1/cm\n"
<< "LinearAbsorptionCoef = " << amu << " 1/cm\n"
<< "Radius = " << radius << " cm\n"
<< "Power Lorentz corrections = " << power_th << " \n";
API::Run & run = ws->mutableRun();
if ( run.hasProperty("Radius") )
{
Expand Down

0 comments on commit fc7ba84

Please sign in to comment.