5#ifndef TRIGEFMISSINGET_PERIODICGRIDBASE_H
6#define TRIGEFMISSINGET_PERIODICGRIDBASE_H
97 std::size_t
index()
const;
106 std::pair<std::size_t, std::size_t>
etaPhiIndex()
const;
134 bool &outOfRange)
const;
149 std::size_t
globalIndex(std::size_t iEta, std::size_t iPhi)
const;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
std::pair< std::size_t, std::size_t > etaPhiIndex() const
The eta/phi indices of the tower together.
std::size_t etaIndex() const
The eta index of this tower.
virtual const PeriodicGridBase * grid() const =0
The grid which owns this tower.
double towerEta() const
The central eta coordinate of this tower.
std::size_t index() const
The global index of this tower.
double towerPhi() const
The central phi coordinate of this tower.
std::size_t phiIndex() const
The phi index of this tower.
std::size_t nPhiTowers() const
The number of phi bins.
double maxEta() const
The maximum eta range for the grid.
std::size_t nTowers() const
The number of bins.
double centralEta(std::size_t iEta) const
Central eta coordinate of the given eta index.
std::size_t getPhiIndex(double phi) const
Get the phi index for the given value.
std::size_t nEtaTowers() const
The number of eta bins.
std::size_t getIndex(double eta, double phi, bool &outOfRange) const
Get the index for the given eta, phi values.
bool displacePhi() const
Whether or not this is displaced in phi.
PeriodicGridBase(const GridParameters ¶meters)
Construct the grid from its parameters.
bool displaceEta() const
Whether or not this is displaced in eta.
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 phiWidth() const
The bin width in phi.
double centralPhi(std::size_t iPhi) const
Central phi coordinate of the given phi.
GridDisplacement displacement() const
The grid displacement.
std::size_t getEtaIndex(double eta, bool &outOfRange) const
Get the eta index for the given value.
double etaWidth() const
The bin width in eta.
const GridParameters & parameters() const
The grid parameters.
const GridParameters m_params
The grid's parameters.
GridDisplacement
Enum to describe the positioning of the grid.
@ EtaPhiDisplaced
The grid is shifted by half a tower width in both eta and phi.
@ PhiDisplaced
The grid is shifted by half a tower width in phi.
@ NoDisplacement
The grid is not shifted.
@ EtaDisplaced
The grid is shifted by half a tower width in eta.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Parameters describing a grid.
bool operator!=(const GridParameters &other) const
Check inequality with other parameter sets.
GridDisplacement displacement() const
The.
bool displaceEta
Whether the grid is displaced in eta.
bool displacePhi
Whether the grid is displaced in phi.
std::size_t nPhiTowers
The number of divisions along the phi axis.
bool operator==(const GridParameters &other) const
std::size_t nEtaTowers
The number of divisions along the eta axis.
double maxEta
The maximum |eta| value.