|
ATLAS Offline Software
|
Go to the documentation of this file.
22 return !(*
this !=
other);
36 return grid()->centralPhi(m_index);
41 return grid()->centralEta(m_index);
61 return grid()->etaPhiIndex(m_index);
71 std::size_t nEtaTowers,
72 std::size_t nPhiTowers,
81 std::size_t etaIndex =
getEtaIndex(eta, outOfRange);
89 if (std::abs(eta) >=
maxEta())
114 phi = std::fmod(phi, 2 *
M_PI);
bool displacePhi() const
Whether or not this is displaced in phi.
std::pair< std::size_t, std::size_t > etaPhiIndex() const
The eta/phi indices of the tower together.
double towerPhi() const
The central phi coordinate of this tower.
std::size_t etaIndex() const
The eta index of this tower.
std::size_t nPhiTowers() const
The number of phi bins.
@ EtaDisplaced
The grid is shifted by half a tower width in eta.
std::size_t nEtaTowers
The number of divisions along the eta axis.
bool operator==(const GridParameters &other) const
bool displacePhi
Whether the grid is displaced in phi.
@ PhiDisplaced
The grid is shifted by half a tower width in phi.
const GridParameters m_params
The grid's parameters.
std::pair< std::size_t, std::size_t > etaPhiIndex(std::size_t index) const
Convert a global index to an eta/phi index pair.
std::size_t getIndex(double eta, double phi, bool &outOfRange) const
Get the index for the given eta, phi values.
GridDisplacement displacement() const
The grid displacement.
std::size_t phiIndex() const
The phi index of this tower.
std::size_t index() const
The global index of this tower.
bool displaceEta() const
Whether or not this is displaced in eta.
@ NoDisplacement
The grid is not shifted.
GridDisplacement
Enum to describe the positioning of the grid.
double phiWidth() const
The bin width in phi.
const GridParameters & parameters() const
The grid parameters.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
GridDisplacement displacement() const
The.
std::size_t getEtaIndex(double eta, bool &outOfRange) const
Get the eta index for the given value.
std::size_t nPhiTowers
The number of divisions along the phi axis.
PeriodicGridBase(const GridParameters ¶meters)
Construct the grid from its parameters.
bool displaceEta
Whether the grid is displaced in eta.
double maxEta() const
The maximum eta range for the grid.
std::size_t getPhiIndex(double phi) const
Get the phi index for the given value.
double towerEta() const
The central eta coordinate of this tower.
Provide a base class for the grids used in some pufit algorithms.
std::size_t globalIndex(std::size_t iEta, std::size_t iPhi) const
Convert eta and phi to a global index.
Base class for grids used in some of the pufit algorithms.
double centralPhi(std::size_t iPhi) const
Central phi coordinate of the given phi.
double centralEta(std::size_t iEta) const
Central eta coordinate of the given eta index.
bool operator!=(const GridParameters &other) const
Check inequality with other parameter sets.
double maxEta
The maximum |eta| value.
Parameters describing a grid.
std::size_t nTowers() const
The number of bins.
setScale setgFexType iEta
double etaWidth() const
The bin width in eta.
std::size_t nEtaTowers() const
The number of eta bins.