absco_tube - absorption corrections for a tubular sample

**#include <absco.h**>

**void absco_tube ( double *A_S_SC, double *A_C_SC, double *A_C_C, double scattering_angle, double mu_i_S, double mu_f_S, double mu_i_C, double mu_f_C, double radius, double thickness_S, double thickness_C_inner, double thickness_C_outer );**

**Output pointers.**

***A_S_SC**-
Absorption factor for scattering in S, absorption in S an C. See

**absco**(7) for a definition of absorption factors. ***A_C_SC**-
Absorption factor for scattering in C, absorption in S an C. If it is a null pointer, all cell-related computations are skipped.

***A_C_C**-
Absorption factor for scattering in C, absorption in C. Must be a null pointer iff A_C_SC is a null pointer.

**Generic input arguments.**

**scattering_angle**-
The scattering angle in degrees, must be between 0 and 180.

**mu_i_S**-
Attenuation coefficient for the incoming beam in the sample material, in inverse length units.

**mu_f_S**-
Attenuation coefficient for the outgoing beam in the sample material. May differ from

**mu_i_S**in the case of inelastic scattering. **mu_i_C**-
Attenuation coefficient for the incoming beam in the container material.

**mu_f_C**-
Attenuation coefficient for the outgoing beam in the container material. May differ from

**mu_i_C**in the case of inelastic scattering.

**Input arguments for tube geometry.**

**radius**-
Outer radius of the sample layer. The length unit must be the inverse of the unit used for the attenuation coefficients

**mu**. **thickness_S**-
Thickness of the sample layer.

**thickness_C_inner**-
Thickness of the inner container wall.

**thickness_C_outer**-
Thickness of the outer container wall.

On error, a message is written to stderr, and the program exits with errno

**absco**(7), **transmission_tube**(3), **absco_slab**(3), **print-absco**(1)

Web site: http://apps.jcns.fz-juelich.de/absco

J. Wuttke, libabsco white paper: "Absorption-Correction Factors for Scattering from Flat or Tubular Samples: Open-Source Implementation libabsco, and Why it Should be Used with Caution." See web site for reference.

Joachim Wuttke <j.wuttke@fz-juelich.de>

Copyright (C) 2011-12 Joachim Wuttke.

Software: GNU General Public License (GPL).

This documentation: Creative Commons Attribution Share Alike.