![]() |
ATLAS Offline Software
|
#include <CaloLayerCalculator.h>
Classes | |
| struct | Helper |
| Helper class for layer variable calculation. More... | |
Public Member Functions | |
| CaloLayerCalculator () | |
| Initialization. | |
| template<typename Iterator> | |
| void | fill (Iterator beg, Iterator end, double eta, double phi, double deta, double dphi, CaloSampling::CaloSample sampling, xAOD::CaloCluster *tofill=0) |
| Calculate layer variables from cells in a list. | |
| StatusCode | fill (const CaloDetDescrManager &mgr, const CaloCellContainer *cell_container, double eta, double phi, double deta, double dphi, CaloSampling::CaloSample sampling, xAOD::CaloCluster *tofill=0) |
| Calculate layer variables from a cell container. | |
| double | etam () const |
| Data access. | |
| double | phim () const |
| Get the mean layer \(\phi\) value. | |
| double | etas () const |
| Get the RMS \(\eta\) size. | |
| double | phis () const |
| Get the RMS \(\phi\) size. | |
| double | em () const |
| Get the total energy. | |
| double | etamax () const |
| Get maximum \(\eta\) value. | |
| double | phimax () const |
| Get maximum \(\phi\) value. | |
| double | emax () const |
| Get the maximum energy. | |
| double | phimr () const |
| Similar as phim, etam, phimax, etamax, but with raw quantities. | |
| double | etamr () const |
| double | phirmax () const |
| double | etarmax () const |
Private Member Functions | |
| void | reset () |
| Internals. | |
| void | resetOnNegativeEnergy () |
| Reset output variables, but not m_em, allowing samplings to be negative. | |
| void | resetOnNegativeEnergy (double eta, double phi) |
| Reset output variables, but not m_em, allowing samplings to be negative, fill layer position with original eta,phi seed position. | |
| double | get_weight (CaloClusterCellLink::const_iterator it) |
| Get the weight from a cell iterator. | |
| double | get_weight (CaloClusterCellLink::iterator it) |
| Get the weight from a cell iterator. | |
| template<typename CONT, typename RPAR, typename COLL> | |
| double | get_weight (NavigableIterator< CONT, RPAR, COLL > it) |
| Get the weight from a cell iterator. | |
Static Private Member Functions | |
| template<typename Iterator> | |
| static double | get_weight (Iterator it) |
| Get the weight from a cell iterator. | |
Private Attributes | |
| double | m_etam = 0.0 |
| Layer variables. | |
| double | m_phim = 0.0 |
| double | m_etas = 0.0 |
| double | m_phis = 0.0 |
| double | m_em = 0.0 |
| double | m_etamax = 0.0 |
| double | m_phimax = 0.0 |
| double | m_emax = 0.0 |
| double | m_etamr = 0.0 |
| double | m_phimr = 0.0 |
| double | m_etarmax = 0.0 |
| double | m_phirmax = 0.0 |
Friends | |
| struct | Helper |
Definition at line 81 of file CaloLayerCalculator.h.
| CaloLayerCalculator::CaloLayerCalculator | ( | ) |
Initialization.
Default constructor.
Default constructor.
Sets the variables to invalid values.
Sets the variables to invalid values.
Definition at line 23 of file CaloLayerCalculator.cxx.
|
inline |
Get the total energy.
Definition at line 445 of file CaloLayerCalculator.h.
|
inline |
Get the maximum energy.
Definition at line 480 of file CaloLayerCalculator.h.
|
inline |
Data access.
Get the mean layer \(\eta\) value.
Get the mean layer \(\eta\) value.
Definition at line 401 of file CaloLayerCalculator.h.
|
inline |
Get maximum \(\eta\) value.
Definition at line 457 of file CaloLayerCalculator.h.
|
inline |
Definition at line 219 of file CaloLayerCalculator.h.
|
inline |
Definition at line 221 of file CaloLayerCalculator.h.
|
inline |
Get the RMS \(\eta\) size.
Definition at line 423 of file CaloLayerCalculator.h.
| StatusCode CaloLayerCalculator::fill | ( | const CaloDetDescrManager & | mgr, |
| const CaloCellContainer * | cell_container, | ||
| double | eta, | ||
| double | phi, | ||
| double | deta, | ||
| double | dphi, | ||
| CaloSampling::CaloSample | sampling, | ||
| xAOD::CaloCluster * | tofill = 0 ) |
Calculate layer variables from a cell container.
| mgr | CaloDetDescrManager |
| cell_container | The cell container. |
| 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. |
This takes a list of cells from a cell container, selects those within a deta by dphi window around eta, phi in layer sampling, and fills the layer variables from them. If tofill is non-null, then selected cells will also be added to the cluster tofill.
| cell_container | The cell container. |
| 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. |
This takes a list of cells from a cell container, selects those within a deta by dphi window around eta, phi in layer sampling, and fills the layer variables from them. If tofill is non-null, then selected cells will also be added to the cluster tofill.
Definition at line 47 of file CaloLayerCalculator.cxx.
| void CaloLayerCalculator::fill | ( | Iterator | beg, |
| Iterator | end, | ||
| double | eta, | ||
| double | phi, | ||
| double | deta, | ||
| double | dphi, | ||
| CaloSampling::CaloSample | sampling, | ||
| xAOD::CaloCluster * | tofill = 0 ) |
Calculate layer variables from cells in a list.
| beg | The starting iterator for the cell list. |
| end | The ending iterator for the cell list. |
| 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. |
This takes a list of cells specified by beg and end, selects those within a deta by dphi window around eta, phi in layer sampling, and fills the layer variables from them. If the iterators come from a Navigable, then cell weights will be used in the calculation. If tofill and cell_container are non-null, then selected cells will also be added to the cluster tofill.
| beg | The starting iterator for the cell list. |
| end | The ending iterator for the cell list. |
| 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. |
This takes a list of cells specified by beg and end, selects those within a deta by dphi window around eta, phi in layer sampling, and fills the layer variables from them. If the iterators come from a Navigable, then cell weights will be used in the calculation. If tofill and cell_container are non-null, then selected cells will also be added to the cluster tofill; in this case, cell_container should be the container in storegate holding the cells.
Definition at line 376 of file CaloLayerCalculator.h.
|
inlineprivate |
Get the weight from a cell iterator.
This is the version specialized for CaloClusterCellLink::const_iterator
Definition at line 506 of file CaloLayerCalculator.h.
|
inlineprivate |
Get the weight from a cell iterator.
This is the version specialized for CaloClusterCellLink::iterator
Definition at line 513 of file CaloLayerCalculator.h.
|
inlinestaticprivate |
Get the weight from a cell iterator.
This is the generic version, that always returns 1.
Definition at line 490 of file CaloLayerCalculator.h.
|
inlineprivate |
Get the weight from a cell iterator.
This is the version specialized for a Navigable, which returns the Navigable parameter.
Definition at line 500 of file CaloLayerCalculator.h.
|
inline |
Get the mean layer \(\phi\) value.
Definition at line 412 of file CaloLayerCalculator.h.
|
inline |
Get maximum \(\phi\) value.
Definition at line 469 of file CaloLayerCalculator.h.
|
inline |
Similar as phim, etam, phimax, etamax, but with raw quantities.
Definition at line 218 of file CaloLayerCalculator.h.
|
inline |
Definition at line 220 of file CaloLayerCalculator.h.
|
inline |
Get the RMS \(\phi\) size.
Definition at line 434 of file CaloLayerCalculator.h.
|
private |
Internals.
Reset output variables to invalid values.
Reset all variables to invalid values.
Definition at line 76 of file CaloLayerCalculator.cxx.
|
private |
Reset output variables, but not m_em, allowing samplings to be negative.
Definition at line 98 of file CaloLayerCalculator.cxx.
|
private |
Reset output variables, but not m_em, allowing samplings to be negative, fill layer position with original eta,phi seed position.
Reset output variables using seed position to fill eta,phi layer variables but not m_em, allowing samplings to be negative.
Definition at line 121 of file CaloLayerCalculator.cxx.
|
friend |
Definition at line 347 of file CaloLayerCalculator.h.
|
private |
Definition at line 262 of file CaloLayerCalculator.h.
|
private |
Definition at line 265 of file CaloLayerCalculator.h.
|
private |
Layer variables.
Definition at line 258 of file CaloLayerCalculator.h.
|
private |
Definition at line 263 of file CaloLayerCalculator.h.
|
private |
Definition at line 268 of file CaloLayerCalculator.h.
|
private |
Definition at line 270 of file CaloLayerCalculator.h.
|
private |
Definition at line 260 of file CaloLayerCalculator.h.
|
private |
Definition at line 259 of file CaloLayerCalculator.h.
|
private |
Definition at line 264 of file CaloLayerCalculator.h.
|
private |
Definition at line 269 of file CaloLayerCalculator.h.
|
private |
Definition at line 271 of file CaloLayerCalculator.h.
|
private |
Definition at line 261 of file CaloLayerCalculator.h.