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. More... | |
PUSplitGrid (const GridParameters ¶meters) | |
Construct a grid from the provided parameters. More... | |
PUSplitGrid (const PUSplitGrid &other) | |
Copy constructor. More... | |
void | reset () |
Reset the internal storage. More... | |
Tower & | operator[] (const std::pair< std::size_t, std::size_t > &indices) |
Access stored value by eta/phi index (access is bounds checked) More... | |
const Tower & | operator[] (const std::pair< std::size_t, std::size_t > &indices) const |
Access stored value by eta/phi index (access is bounds checked) More... | |
Tower & | operator[] (std::size_t index) |
Access stored value by global index number (access is bounds checked) More... | |
const Tower & | operator[] (std::size_t index) const |
Access stored value by global index number (access is bounds checked) More... | |
std::vector< Tower >::iterator | begin () |
Access by iterator. More... | |
std::vector< Tower >::const_iterator | begin () const |
Access by iterator. More... | |
std::vector< Tower >::iterator | end () |
Iterator end point. More... | |
std::vector< Tower >::const_iterator | end () const |
Iterator end point. More... | |
PufitMultiGrid & | operator+= (const PufitMultiGrid &other) |
Add a whole grid into this. More... | |
PufitMultiGrid & | operator-= (const PufitMultiGrid &other) |
Subtract a whole grid from this. More... | |
std::size_t | getIndex (double eta, double phi, bool &outOfRange) const |
Get the index for the given eta, phi values. More... | |
std::size_t | getEtaIndex (double eta, bool &outOfRange) const |
Get the eta index for the given value. More... | |
std::size_t | getPhiIndex (double phi) const |
Get the phi index for the given value. More... | |
std::size_t | globalIndex (std::size_t iEta, std::size_t iPhi) const |
Convert eta and phi to a global index. More... | |
std::pair< std::size_t, std::size_t > | etaPhiIndex (std::size_t index) const |
Convert a global index to an eta/phi index pair. More... | |
double | centralEta (std::size_t iEta) const |
Central eta coordinate of the given eta index. More... | |
double | centralPhi (std::size_t iPhi) const |
Central phi coordinate of the given phi. More... | |
const GridParameters & | parameters () const |
The grid parameters. More... | |
double | maxEta () const |
The maximum eta range for the grid. More... | |
std::size_t | nEtaTowers () const |
The number of eta bins. More... | |
std::size_t | nPhiTowers () const |
The number of phi bins. More... | |
std::size_t | nTowers () const |
The number of bins. More... | |
bool | displaceEta () const |
Whether or not this is displaced in eta. More... | |
bool | displacePhi () const |
Whether or not this is displaced in phi. More... | |
GridDisplacement | displacement () const |
The grid displacement. More... | |
double | etaWidth () const |
The bin width in eta. More... | |
double | phiWidth () const |
The bin width in phi. More... | |
Static Public Attributes | |
constexpr static std::size_t | All |
Maximum value representable by N bits. More... | |
constexpr static std::size_t | NCategories |
The number of separate categories in the grid. More... | |
Private Attributes | |
const GridParameters | m_params |
The grid's parameters. More... | |
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 |
Access by iterator.
|
inherited |
|
inherited |
Central phi coordinate of the given phi.
Definition at line 133 of file PeriodicGridBase.cxx.
|
inherited |
|
inherited |
The grid displacement.
Definition at line 145 of file PeriodicGridBase.cxx.
|
inherited |
|
inherited |
Iterator end point.
|
inherited |
Iterator end point.
|
inherited |
Convert a global index to an eta/phi index pair.
Definition at line 124 of file PeriodicGridBase.cxx.
|
inherited |
|
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 87 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 79 of file PeriodicGridBase.cxx.
|
inherited |
|
inherited |
Convert eta and phi to a global index.
Definition at line 120 of file PeriodicGridBase.cxx.
|
inherited |
|
inherited |
|
inherited |
|
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 |
Access stored value by eta/phi index (access is bounds checked)
|
inherited |
Access stored value by global index number (access is bounds checked)
|
inherited |
Access stored value by global index number (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 |
The grid's parameters.
Definition at line 191 of file PeriodicGridBase.h.
|
staticconstexprinherited |
The number of separate categories in the grid.
Definition at line 73 of file PufitMultiGrid.h.