ATLAS Offline Software
|
Helper class for calculating the energy interpolation table. More...
Public Member Functions | |
Builder (const CxxUtils::Array< 4 > &correction, const CxxUtils::Array< 2 > ®ions, const CxxUtils::Array< 2 > &forms, float aeta, float u, int region_ndx) | |
Constructor. More... | |
virtual float | calculate (int energy_ndx, bool &good) const |
Calculate the correction for tabulated energy ENERGY_NDX. More... | |
Static Private Member Functions | |
static float | calc0 (float aeta, float u, const CaloRec::Array< 2 > &coef) |
Evaluate the function Form 0. More... | |
static float | calc3 (float aeta, float u, const CaloRec::Array< 2 > &coef) |
Evaluate the function Form 3. More... | |
static float | calc4 (float aeta, float u, const CaloRec::Array< 2 > &coef) |
Evaluate the function Form 4. More... | |
static float | calc5 (float aeta, float u, const CaloRec::Array< 2 > &coef) |
Evaluate the function Form 5. More... | |
static float | calc10 (float aeta, float u, const CaloRec::Array< 2 > &coef) |
Evaluate the function Form 10. More... | |
static float | calc11 (float aeta, float u, const CaloRec::Array< 2 > &coef) |
Evaluate the function Form 11. More... | |
static float | calc13 (float aeta, float u, const CaloRec::Array< 2 > &coef, float xlo, float xhi) |
Evaluate the function Form 13. More... | |
Private Attributes | |
const CxxUtils::Array< 4 > & | m_correction |
const CxxUtils::Array< 2 > & | m_regions |
Table of regions. More... | |
const CxxUtils::Array< 2 > & | m_forms |
Functional form per region. More... | |
int | m_region_ndx |
The index of the region in which we're evaluating the correction. More... | |
float | m_aeta |
The abs(eta) at which the correction is being evaluated (in cal-local coordinates). More... | |
float | m_u |
The fractional offset in the cell of this cluster. More... | |
int | m_form |
The index of the functional form we're evaluating. More... | |
Helper class for calculating the energy interpolation table.
Definition at line 172 of file CaloSwEtaoff_v3.h.
CaloSwEtaoff_v3::Builder::Builder | ( | const CxxUtils::Array< 4 > & | correction, |
const CxxUtils::Array< 2 > & | regions, | ||
const CxxUtils::Array< 2 > & | forms, | ||
float | aeta, | ||
float | u, | ||
int | region_ndx | ||
) |
Constructor.
Constructor for energy interpolation table helper class.
Gets correction information, the abs(eta) at which the correction is being evaluated (in cal-local coordinates), the fractional cell offset u, and the index of the region for this correction.
correction | Tabulated arrays of function parameters. |
regions | Table of regions. |
forms | Functional form per region. |
aeta | The absolute value of \(\eta\) at which the correction is being evaluated (in cal-local coordinates). |
u | The fractional offset of the cluster within the cell. |
region_ndx | The index of the region within which the correction is being evaluated. |
Definition at line 129 of file CaloSwEtaoff_v3.cxx.
|
staticprivate |
Evaluate the function Form 0.
Evaluate the correction function for Form 0.
aeta | The \(|\eta|\) of the cluster being corrected. |
u | The fractional offset of the cluster within the cell. |
coef | Array of polynomial coefficients for each parameter. |
Definition at line 268 of file CaloSwEtaoff_v3.cxx.
|
staticprivate |
Evaluate the function Form 10.
Evaluate the correction function for Form 10.
aeta | The \(|\eta|\) of the cluster being corrected. |
u | The fractional offset of the cluster within the cell. |
coef | Array of polynomial coefficients for each parameter. |
Definition at line 345 of file CaloSwEtaoff_v3.cxx.
|
staticprivate |
Evaluate the function Form 11.
Evaluate the correction function for Form 11.
aeta | The \(|\eta|\) of the cluster being corrected. |
u | The fractional offset of the cluster within the cell. |
coef | Array of polynomial coefficients for each parameter. |
Definition at line 376 of file CaloSwEtaoff_v3.cxx.
|
staticprivate |
Evaluate the function Form 13.
Evaluate the correction function for Form 5.
aeta | The \(|\eta|\) of the cluster being corrected. |
u | The fractional offset of the cluster within the cell. |
coef | Array of polynomial coefficients for each parameter. |
Definition at line 395 of file CaloSwEtaoff_v3.cxx.
|
staticprivate |
Evaluate the function Form 3.
Evaluate the correction function for Form 3.
aeta | The \(|\eta|\) of the cluster being corrected. |
u | The fractional offset of the cluster within the cell. |
coef | Array of polynomial coefficients for each parameter. |
Definition at line 286 of file CaloSwEtaoff_v3.cxx.
|
staticprivate |
Evaluate the function Form 4.
Evaluate the correction function for Form 4.
aeta | The \(|\eta|\) of the cluster being corrected. |
u | The fractional offset of the cluster within the cell. |
coef | Array of polynomial coefficients for each parameter. |
Definition at line 306 of file CaloSwEtaoff_v3.cxx.
|
staticprivate |
Evaluate the function Form 5.
Evaluate the correction function for Form 4.
aeta | The \(|\eta|\) of the cluster being corrected. |
u | The fractional offset of the cluster within the cell. |
coef | Array of polynomial coefficients for each parameter. |
Definition at line 328 of file CaloSwEtaoff_v3.cxx.
|
virtual |
Calculate the correction for tabulated energy ENERGY_NDX.
Calculate the correction for one tabulated energy index.
energy_ndx | The tabulated energy index for which the correction should be calculated. |
good[out] | Set to true if the calculation succeeded. |
Definition at line 152 of file CaloSwEtaoff_v3.cxx.
|
private |
The abs(eta) at which the correction is being evaluated (in cal-local coordinates).
Definition at line 227 of file CaloSwEtaoff_v3.h.
|
private |
Definition at line 214 of file CaloSwEtaoff_v3.h.
|
private |
The index of the functional form we're evaluating.
Definition at line 233 of file CaloSwEtaoff_v3.h.
|
private |
Functional form per region.
Definition at line 220 of file CaloSwEtaoff_v3.h.
|
private |
The index of the region in which we're evaluating the correction.
Definition at line 223 of file CaloSwEtaoff_v3.h.
|
private |
Table of regions.
Definition at line 217 of file CaloSwEtaoff_v3.h.
|
private |
The fractional offset in the cell of this cluster.
Definition at line 230 of file CaloSwEtaoff_v3.h.