Skip to content

Commit

Permalink
Refs #8088 added log messages to LoadHKL
Browse files Browse the repository at this point in the history
  • Loading branch information
Vickie Lynch committed Oct 8, 2013
1 parent 7221f32 commit 832242a
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 832242a

Please sign in to comment.