ATLAS Offline Software
|
Version of helper class for cells taken from the cluster itself. More...
Public Member Functions | |
SamplingHelper_Cluster (const CaloClusterCorrection &parent, const CaloFillRectangularCluster::WindowArray_t &windows, CaloCluster *cluster) | |
Constructor. More... | |
virtual void | calculate (double eta, double phi, double deta, double dphi, CaloSampling::CaloSample sampling, bool dofill=false) |
Calculate layer variables. More... | |
virtual const CaloCell * | max_et_cell () const |
Return the cell with the maximum energy. More... | |
virtual bool | empty () const |
Test for empty candidate cell list. More... | |
void | calculate_cluster (double eta, double phi, double deta, double dphi, CaloSampling::CaloSample sampling) |
Calculate layer variables for cells in the cluster. More... | |
void | calculate_and_set (double eta, double phi, int layer, int fallback_layer, const CaloSampling::CaloSample samplings[4], bool allow_badpos=false) |
Calculate layer variables and update cluster. More... | |
CaloCluster * | cluster () |
Return the cluster we're updating. More... | |
double | etam () const |
Return the \(\eta\) position from the last calculation. More... | |
double | phim () const |
Return the \(\phi\) position from the last calculation. More... | |
double | etamax () const |
Return the \(\eta\) maximum position from the last calculation. More... | |
double | phimax () const |
Return the \(\phi\) maximum position from the last calculation. More... | |
double | etareal () const |
double | deta (int layer) const |
double | dphi (int layer) const |
Protected Attributes | |
CaloLayerCalculator | m_calc |
The calculator object. More... | |
const CaloClusterCorrection & | m_parent |
The correction object using us. More... | |
CaloCluster * | m_cluster |
The cluster we're updating. More... | |
CaloFillRectangularCluster::WindowArray_t | m_windows |
Window size, per layer. More... | |
double | m_etam |
\(\eta\) position from last calculation. More... | |
double | m_phim |
\(\phi\) position from last calculation. More... | |
Version of helper class for cells taken from the cluster itself.
Definition at line 666 of file CaloFillRectangularCluster.cxx.
CaloClusterCorr::SamplingHelper_Cluster::SamplingHelper_Cluster | ( | const CaloClusterCorrection & | parent, |
const CaloFillRectangularCluster::WindowArray_t & | windows, | ||
CaloCluster * | cluster | ||
) |
Constructor.
parent | The parent correction class. |
windows | Per-layer array of window eta,phi sizes. |
cluster | The cluster being operated on. |
Definition at line 717 of file CaloFillRectangularCluster.cxx.
|
virtual |
Calculate layer variables.
eta | Center of the cluster in \(\eta\). |
phi | Center of the cluster in \(\phi\). |
deta | Full width of the cluster in \(\eta\). |
dphi | Full width of the cluster in \(\phi\). |
sampling | The sampling for which to do the calculation. |
dofill | (Ignored for this implementation.) |
This method selects the cells within the specified window in the specified sampling from the list of candidate cells and calculates the layer variables.
The result of the calculation will be held in internal variables.
Implements CaloClusterCorr::SamplingHelper.
Definition at line 741 of file CaloFillRectangularCluster.cxx.
|
inherited |
Calculate layer variables and update cluster.
eta | Center of the cluster in \(\eta\). |
phi | Center of the cluster in \(\phi\). |
layer | Calorimeter layer being calculated (0-3). |
fallback_layer | Layer for fallback values (see below). |
samplings | List of samplings for this region. |
allow_badpos | Should error flags be allowed into the cluster? |
This method selects the cells within the specified window for the sampling for the specified layer from the current list of cells in the cluster and calculates the layer variables.
The result of the calculation will be held in internal variables. In addition, the cluster variables for this sampling will be updated with the result.
In some cases, the calculation of the cluster position may yield an error (for example, if there are no selected cells). In this case, we use the cluster eta/phi from the layer given by fallback_layer
instead of the calculated result. (If fallback_layer
is < 0, then we use the eta
, phi
arguments instead.) If allow_badpos
is true, then the error flags are used to update the cluster variables; otherwise, the fallback position is used when updating the cluster.
Definition at line 383 of file CaloFillRectangularCluster.cxx.
|
inherited |
Calculate layer variables for cells in the cluster.
eta | Center of the cluster in \(\eta\). |
phi | Center of the cluster in \(\phi\). |
deta | Full width of the cluster in \(\eta\). |
dphi | Full width of the cluster in \(\phi\). |
sampling | The sampling for which to do the calculation. |
This method selects the cells within the specified window in the specified sampling from the current list of cells in the cluster and calculates the layer variables.
The result of the calculation will be held in internal variables.
Definition at line 444 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the cluster we're updating.
Definition at line 460 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Definition at line 313 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Definition at line 314 of file CaloFillRectangularCluster.cxx.
|
virtual |
Test for empty candidate cell list.
Implements CaloClusterCorr::SamplingHelper.
Definition at line 763 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the \(\eta\) position from the last calculation.
Definition at line 468 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the \(\eta\) maximum position from the last calculation.
Definition at line 484 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Definition at line 310 of file CaloFillRectangularCluster.cxx.
Return the cell with the maximum energy.
Implements CaloClusterCorr::SamplingHelper.
Definition at line 754 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the \(\phi\) position from the last calculation.
Definition at line 476 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the \(\phi\) maximum position from the last calculation.
Definition at line 492 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
The calculator object.
Definition at line 319 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
The cluster we're updating.
Definition at line 325 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
\(\eta\) position from last calculation.
Definition at line 331 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
The correction object using us.
Definition at line 322 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
\(\phi\) position from last calculation.
Definition at line 334 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
Window size, per layer.
Definition at line 328 of file CaloFillRectangularCluster.cxx.