#include <CaloLayerCalculator.h>
|
| CaloLayerCalculator () |
| Initialization. More...
|
|
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. More...
|
|
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. More...
|
|
double | etam () const |
| Data access. More...
|
|
double | phim () const |
| Get the mean layer \(\phi\) value. More...
|
|
double | etas () const |
| Get the RMS \(\eta\) size. More...
|
|
double | phis () const |
| Get the RMS \(\phi\) size. More...
|
|
double | em () const |
| Get the total energy. More...
|
|
double | etamax () const |
| Get maximum \(\eta\) value. More...
|
|
double | phimax () const |
| Get maximum \(\phi\) value. More...
|
|
double | emax () const |
| Get the maximum energy. More...
|
|
double | phimr () const |
| Similar as phim, etam, phimax, etamax, but with raw quantities. More...
|
|
double | etamr () const |
|
double | phirmax () const |
|
double | etarmax () const |
|
|
void | reset () |
| Internals. More...
|
|
void | resetOnNegativeEnergy () |
| Reset output variables, but not m_em, allowing samplings to be negative. More...
|
|
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. More...
|
|
double | get_weight (CaloClusterCellLink::const_iterator it) |
| Get the weight from a cell iterator. More...
|
|
double | get_weight (CaloClusterCellLink::iterator it) |
| Get the weight from a cell iterator. More...
|
|
template<typename CONT , typename RPAR , typename COLL > |
double | get_weight (NavigableIterator< CONT, RPAR, COLL > it) |
| Get the weight from a cell iterator. More...
|
|
|
template<typename Iterator > |
static double | get_weight (Iterator it) |
| Get the weight from a cell iterator. More...
|
|
Definition at line 81 of file CaloLayerCalculator.h.
◆ CaloLayerCalculator()
CaloLayerCalculator::CaloLayerCalculator |
( |
| ) |
|
◆ em()
double CaloLayerCalculator::em |
( |
| ) |
const |
|
inline |
Get the total energy.
- Returns
- The total energy of the selected cells.
Definition at line 445 of file CaloLayerCalculator.h.
◆ emax()
double CaloLayerCalculator::emax |
( |
| ) |
const |
|
inline |
Get the maximum energy.
- Returns
- The energy of the selected cell with the most energy.
Definition at line 480 of file CaloLayerCalculator.h.
◆ etam()
double CaloLayerCalculator::etam |
( |
| ) |
const |
|
inline |
Data access.
Get the mean layer \(\eta\) value.
Get the mean layer \(\eta\) value.
- Returns
- The mean \(\eta\) of the selected cells, or -999.
-
The mean \(\eta\) of the selected cells, or -999.
Definition at line 401 of file CaloLayerCalculator.h.
◆ etamax()
double CaloLayerCalculator::etamax |
( |
| ) |
const |
|
inline |
Get maximum \(\eta\) value.
- Returns
- The \(\eta\) center of the selected cell with the most energy, or -999.
Definition at line 457 of file CaloLayerCalculator.h.
◆ etamr()
double CaloLayerCalculator::etamr |
( |
| ) |
const |
|
inline |
◆ etarmax()
double CaloLayerCalculator::etarmax |
( |
| ) |
const |
|
inline |
◆ etas()
double CaloLayerCalculator::etas |
( |
| ) |
const |
|
inline |
Get the RMS \(\eta\) size.
- Returns
- The RMS \(\eta\) of the selected cells.
Definition at line 423 of file CaloLayerCalculator.h.
◆ fill() [1/2]
Calculate layer variables from a cell container.
- Parameters
-
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
.
- Parameters
-
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.
60 std::cout <<
"ERROR attempt to fill a cluster from different cell containers\n";
61 return StatusCode::FAILURE;
66 cell_list.select(
eta,
phi,deta,dphi,sampling);
68 fill (cell_list.begin(),
70 eta,
phi, deta, dphi, sampling, tofill);
72 return StatusCode::SUCCESS;
◆ fill() [2/2]
template<typename Iterator >
Calculate layer variables from cells in a list.
- Parameters
-
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
.
- Parameters
-
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.
389 Helper h (*
this,
eta,
phi, deta, dphi, sampling, tofill, cell_container);
◆ get_weight() [1/4]
◆ get_weight() [2/4]
◆ get_weight() [3/4]
template<typename Iterator >
double CaloLayerCalculator::get_weight |
( |
Iterator |
it | ) |
|
|
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.
◆ get_weight() [4/4]
template<typename CONT , typename RPAR , typename COLL >
◆ phim()
double CaloLayerCalculator::phim |
( |
| ) |
const |
|
inline |
Get the mean layer \(\phi\) value.
- Returns
- The mean \(\phi\) of the selected cells, or -999.
Definition at line 412 of file CaloLayerCalculator.h.
◆ phimax()
double CaloLayerCalculator::phimax |
( |
| ) |
const |
|
inline |
Get maximum \(\phi\) value.
- Returns
- The \(\phi\) center of the selected cell with the most energy, or -999.
Definition at line 469 of file CaloLayerCalculator.h.
◆ phimr()
double CaloLayerCalculator::phimr |
( |
| ) |
const |
|
inline |
◆ phirmax()
double CaloLayerCalculator::phirmax |
( |
| ) |
const |
|
inline |
◆ phis()
double CaloLayerCalculator::phis |
( |
| ) |
const |
|
inline |
Get the RMS \(\phi\) size.
- Returns
- The RMS \(\phi\) of the selected cells.
Definition at line 434 of file CaloLayerCalculator.h.
◆ reset()
void CaloLayerCalculator::reset |
( |
| ) |
|
|
private |
Internals.
Reset output variables to invalid values.
Reset all variables to invalid values.
Definition at line 76 of file CaloLayerCalculator.cxx.
◆ resetOnNegativeEnergy() [1/2]
void CaloLayerCalculator::resetOnNegativeEnergy |
( |
| ) |
|
|
private |
Reset output variables, but not m_em, allowing samplings to be negative.
Definition at line 98 of file CaloLayerCalculator.cxx.
◆ resetOnNegativeEnergy() [2/2]
void CaloLayerCalculator::resetOnNegativeEnergy |
( |
double |
eta, |
|
|
double |
phi |
|
) |
| |
|
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.
◆ Helper
◆ m_em
double CaloLayerCalculator::m_em = 0.0 |
|
private |
◆ m_emax
double CaloLayerCalculator::m_emax = 0.0 |
|
private |
◆ m_etam
double CaloLayerCalculator::m_etam = 0.0 |
|
private |
◆ m_etamax
double CaloLayerCalculator::m_etamax = 0.0 |
|
private |
◆ m_etamr
double CaloLayerCalculator::m_etamr = 0.0 |
|
private |
◆ m_etarmax
double CaloLayerCalculator::m_etarmax = 0.0 |
|
private |
◆ m_etas
double CaloLayerCalculator::m_etas = 0.0 |
|
private |
◆ m_phim
double CaloLayerCalculator::m_phim = 0.0 |
|
private |
◆ m_phimax
double CaloLayerCalculator::m_phimax = 0.0 |
|
private |
◆ m_phimr
double CaloLayerCalculator::m_phimr = 0.0 |
|
private |
◆ m_phirmax
double CaloLayerCalculator::m_phirmax = 0.0 |
|
private |
◆ m_phis
double CaloLayerCalculator::m_phis = 0.0 |
|
private |
The documentation for this class was generated from the following files:
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.