![]() |
ATLAS Offline Software
|
#include <PUSplitGrid.h>
Public Member Functions | |
| PUSplitGrid (double maxEta, std::size_t nEtaTowers, std::size_t nPhiTowers, bool displaceEta=false, bool displacePhi=false) | |
| Create a new tower grid. | |
| PUSplitGrid (const GridParameters ¶meters) | |
| Construct a grid from the provided parameters. | |
| PUSplitGrid (const PUSplitGrid &other) | |
| Copy constructor. | |
| void | reset () |
| Reset the internal storage. | |
| Tower & | operator[] (const std::pair< std::size_t, std::size_t > &indices) |
| Access stored value by eta/phi index (access is bounds checked) | |
| std::vector< Tower >::iterator | begin () |
| Access by iterator. | |
| std::vector< Tower >::iterator | end () |
| Iterator end point. | |
| PufitMultiGrid & | operator+= (const PufitMultiGrid &other) |
| Add a whole grid into this. | |
| PufitMultiGrid & | operator-= (const PufitMultiGrid &other) |
| Subtract a whole grid from this. | |
| PufitGrid & | get () |
| Get one of the underlying grids. | |
| std::size_t | getIndex (double eta, double phi, bool &outOfRange) const |
| Get the index for the given eta, phi values. | |
| std::size_t | getEtaIndex (double eta, bool &outOfRange) const |
| Get the eta index for the given value. | |
| std::size_t | getPhiIndex (double phi) const |
| Get the phi index for the given value. | |
| std::size_t | globalIndex (std::size_t iEta, std::size_t iPhi) const |
| Convert eta and phi to a global index. | |
| std::pair< std::size_t, std::size_t > | etaPhiIndex (std::size_t index) const |
| Convert a global index to an eta/phi index pair. | |
| double | centralEta (std::size_t iEta) const |
| Central eta coordinate of the given eta index. | |
| double | centralPhi (std::size_t iPhi) const |
| Central phi coordinate of the given phi. | |
| const GridParameters & | parameters () const |
| The grid parameters. | |
| double | maxEta () const |
| The maximum eta range for the grid. | |
| std::size_t | nEtaTowers () const |
| The number of eta bins. | |
| std::size_t | nPhiTowers () const |
| The number of phi bins. | |
| std::size_t | nTowers () const |
| The number of bins. | |
| bool | displaceEta () const |
| Whether or not this is displaced in eta. | |
| bool | displacePhi () const |
| Whether or not this is displaced in phi. | |
| GridDisplacement | displacement () const |
| The grid displacement. | |
| double | etaWidth () const |
| The bin width in eta. | |
| double | phiWidth () const |
| The bin width in phi. | |
Static Public Attributes | |
| static constexpr std::size_t | All |
| Maximum value representable by N bits. | |
| static constexpr std::size_t | NCategories |
| The number of separate categories in the grid. | |
Private Attributes | |
| std::array< PufitGrid, N > | m_grids |
| std::vector< Tower > | m_towers |
| const GridParameters | m_params |
| The grid's parameters. | |
Definition at line 14 of file PUSplitGrid.h.
| HLT::MET::PUSplitGrid::PUSplitGrid | ( | double | maxEta, |
| std::size_t | nEtaTowers, | ||
| std::size_t | nPhiTowers, | ||
| bool | displaceEta = false, | ||
| bool | displacePhi = false ) |
Create a new tower grid.
| maxEta | The maximum eta range for the grid |
| nEtaTowers | The number of eta towers |
| nPhiTowers | The number of phi towers |
| displaceEta | Whether to displace eta |
| displacePhi | Whether to displace phi |
Definition at line 11 of file PUSplitGrid.cxx.
| HLT::MET::PUSplitGrid::PUSplitGrid | ( | const GridParameters & | parameters | ) |
Construct a grid from the provided parameters.
Definition at line 20 of file PUSplitGrid.cxx.
| HLT::MET::PUSplitGrid::PUSplitGrid | ( | const PUSplitGrid & | other | ) |
Copy constructor.
Definition at line 24 of file PUSplitGrid.cxx.
|
inherited |
Access by iterator.
|
inherited |
Central eta coordinate of the given eta index.
Definition at line 155 of file PeriodicGridBase.cxx.
|
inherited |
Central phi coordinate of the given phi.
Definition at line 157 of file PeriodicGridBase.cxx.
|
inherited |
Whether or not this is displaced in eta.
Definition at line 175 of file PeriodicGridBase.cxx.
|
inherited |
The grid displacement.
Definition at line 181 of file PeriodicGridBase.cxx.
|
inherited |
Whether or not this is displaced in phi.
Definition at line 178 of file PeriodicGridBase.cxx.
|
inherited |
Iterator end point.
|
inherited |
Convert a global index to an eta/phi index pair.
Definition at line 152 of file PeriodicGridBase.cxx.
|
inherited |
|
inlineinherited |
Get one of the underlying grids.
This is only defined where I is a power of 2
Definition at line 281 of file PufitMultiGrid.h.
|
inherited |
Get the eta index for the given value.
| eta | The eta value | |
| [out] | outOfRange | Set to true if outside of the eta range |
If it's out of range the returned index will be nEta
Definition at line 143 of file PeriodicGridBase.cxx.
|
inherited |
Get the index for the given eta, phi values.
| eta | The eta value | |
| phi | The phi value | |
| [out] | outOfRange | Set to true if outside of the eta range |
If it's out of range the returned index will be nTowers
Definition at line 131 of file PeriodicGridBase.cxx.
|
inherited |
Get the phi index for the given value.
Definition at line 146 of file PeriodicGridBase.cxx.
|
inherited |
Convert eta and phi to a global index.
Definition at line 149 of file PeriodicGridBase.cxx.
|
inherited |
The maximum eta range for the grid.
Definition at line 163 of file PeriodicGridBase.cxx.
|
inherited |
The number of eta bins.
Definition at line 166 of file PeriodicGridBase.cxx.
|
inherited |
The number of phi bins.
Definition at line 169 of file PeriodicGridBase.cxx.
|
inherited |
|
inherited |
Add a whole grid into this.
|
inherited |
Subtract a whole grid from this.
|
inherited |
Access stored value by eta/phi index (access is bounds checked)
|
inherited |
|
inherited |
|
inherited |
Reset the internal storage.
|
staticconstexprinherited |
Maximum value representable by N bits.
Definition at line 71 of file PufitMultiGrid.h.
|
privateinherited |
Definition at line 309 of file PufitMultiGrid.h.
|
privateinherited |
The grid's parameters.
Definition at line 191 of file PeriodicGridBase.h.
|
privateinherited |
Definition at line 310 of file PufitMultiGrid.h.
|
staticconstexprinherited |
The number of separate categories in the grid.
Definition at line 73 of file PufitMultiGrid.h.