ATLAS Offline Software
|
Helper class for layer variable calculation. More...
Public Member Functions | |
Helper (CaloLayerCalculator &calc, double eta, double phi, double deta, double dphi, CaloSampling::CaloSample sampling, xAOD::CaloCluster *tofill, const CaloCellContainer *cell_container) | |
Initialize for doing layer variable calculation. More... | |
void | cell (const CaloCell *cell, double weight) |
Accumulate results for another cell. More... | |
~Helper () | |
Calculate the layer variables from the accumulated cells The variables in the parent CaloLayerCalculator instance (passed to the constructor) are updated. More... | |
Public Attributes | |
CaloLayerCalculator & | m_calc |
These members hold the values passed to the constructor. More... | |
double | m_eta |
double | m_phi |
double | m_deta |
double | m_dphi |
CaloSampling::CaloSample | m_sampling |
xAOD::CaloCluster * | m_tofill |
const CaloCellContainer * | m_cell_container |
double | m_s00 |
Temporary variables used to accumulate the results. More... | |
double | m_s10 |
double | m_s20 |
double | m_s01 |
double | m_s02 |
double | m_s10r |
double | m_s01r |
Helper class for layer variable calculation.
This class is used to allow factoring out the layer variable calculation itself (which we only want to write once) from the loop over cells (of which there may be multiple varieties). To compute the layer variables, a Helper
instance is created; it will contain the temporary variables used to accumulate the results. Then, for each cell in the list, call the cell
method of Helper
. At the end, the Helper
destructor will update the layer variables.
Definition at line 285 of file CaloLayerCalculator.h.
CaloLayerCalculator::Helper::Helper | ( | CaloLayerCalculator & | calc, |
double | eta, | ||
double | phi, | ||
double | deta, | ||
double | dphi, | ||
CaloSampling::CaloSample | sampling, | ||
xAOD::CaloCluster * | tofill, | ||
const CaloCellContainer * | cell_container | ||
) |
Initialize for doing layer variable calculation.
calc | The parent CaloLayerCalculator instance. |
eta | The \(\eta\) center of the cluster, for cell selection. |
phi | The \(\phi\) center of the cluster, for cell selection. |
deta | The \(\eta\) full width for cell selection. |
dphi | The \(\phi\) full width for cell selection. |
sampling | The sampling for cell selection. |
tofill | If non-null, then selected cells will be added to this cluster. |
cell_container | If tofill is non-null, then this is this container from which the cells came. |
Definition at line 154 of file CaloLayerCalculator.cxx.
CaloLayerCalculator::Helper::~Helper | ( | ) |
Calculate the layer variables from the accumulated cells The variables in the parent CaloLayerCalculator
instance (passed to the constructor) are updated.
Definition at line 244 of file CaloLayerCalculator.cxx.
Accumulate results for another cell.
cell | The cell to accumulate. |
weight | The weight for the cell. |
Definition at line 190 of file CaloLayerCalculator.cxx.
CaloLayerCalculator& CaloLayerCalculator::Helper::m_calc |
These members hold the values passed to the constructor.
Definition at line 327 of file CaloLayerCalculator.h.
const CaloCellContainer* CaloLayerCalculator::Helper::m_cell_container |
Definition at line 334 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_deta |
Definition at line 330 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_dphi |
Definition at line 331 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_eta |
Definition at line 328 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_phi |
Definition at line 329 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_s00 |
Temporary variables used to accumulate the results.
Definition at line 337 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_s01 |
Definition at line 340 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_s01r |
Definition at line 345 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_s02 |
Definition at line 341 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_s10 |
Definition at line 338 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_s10r |
Definition at line 344 of file CaloLayerCalculator.h.
double CaloLayerCalculator::Helper::m_s20 |
Definition at line 339 of file CaloLayerCalculator.h.
CaloSampling::CaloSample CaloLayerCalculator::Helper::m_sampling |
Definition at line 332 of file CaloLayerCalculator.h.
xAOD::CaloCluster* CaloLayerCalculator::Helper::m_tofill |
Definition at line 333 of file CaloLayerCalculator.h.