![]() |
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. | |
| virtual void | calculate (double eta, double phi, double deta, double dphi, CaloSampling::CaloSample sampling, bool dofill=false) |
| Calculate layer variables. | |
| virtual const CaloCell * | max_et_cell () const |
| Return the cell with the maximum energy. | |
| virtual bool | empty () const |
| Test for empty candidate cell list. | |
| void | calculate_cluster (double eta, double phi, double deta, double dphi, CaloSampling::CaloSample sampling) |
| Calculate layer variables for cells in the cluster. | |
| 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. | |
| CaloCluster * | cluster () |
| Return the cluster we're updating. | |
| double | etam () const |
| Return the \(\eta\) position from the last calculation. | |
| double | phim () const |
| Return the \(\phi\) position from the last calculation. | |
| double | etamax () const |
| Return the \(\eta\) maximum position from the last calculation. | |
| double | phimax () const |
| Return the \(\phi\) maximum position from the last calculation. | |
| double | etareal () const |
| double | deta (int layer) const |
| double | dphi (int layer) const |
Protected Attributes | |
| CaloLayerCalculator | m_calc |
| The calculator object. | |
| const CaloClusterCorrection & | m_parent |
| The correction object using us. | |
| CaloCluster * | m_cluster |
| The cluster we're updating. | |
| CaloFillRectangularCluster::WindowArray_t | m_windows |
| Window size, per layer. | |
| double | m_etam |
| \(\eta\) position from last calculation. | |
| double | m_phim |
| \(\phi\) position from last calculation. | |
Version of helper class for cells taken from the cluster itself.
Definition at line 667 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 718 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 742 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 384 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 445 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the cluster we're updating.
Definition at line 461 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Definition at line 314 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Definition at line 315 of file CaloFillRectangularCluster.cxx.
|
virtual |
Test for empty candidate cell list.
Implements CaloClusterCorr::SamplingHelper.
Definition at line 764 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the \(\eta\) position from the last calculation.
Definition at line 469 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the \(\eta\) maximum position from the last calculation.
Definition at line 485 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Definition at line 311 of file CaloFillRectangularCluster.cxx.
Return the cell with the maximum energy.
Implements CaloClusterCorr::SamplingHelper.
Definition at line 755 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the \(\phi\) position from the last calculation.
Definition at line 477 of file CaloFillRectangularCluster.cxx.
|
inlineinherited |
Return the \(\phi\) maximum position from the last calculation.
Definition at line 493 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
The calculator object.
Definition at line 320 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
The cluster we're updating.
Definition at line 326 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
\(\eta\) position from last calculation.
Definition at line 332 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
The correction object using us.
Definition at line 323 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
\(\phi\) position from last calculation.
Definition at line 335 of file CaloFillRectangularCluster.cxx.
|
protectedinherited |
Window size, per layer.
Definition at line 329 of file CaloFillRectangularCluster.cxx.