|
ATLAS Offline Software
|
Go to the documentation of this file.
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;
143 std::size_t
getEtaIndex(
double eta,
bool &outOfRange)
const;
196 #endif //> !PUFITUTILS_PERIODICGRIDBASE_H
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.
Base class for towers belonging to the grids.
@ 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.
@ EtaPhiDisplaced
The grid is shifted by half a tower width in both eta and phi.
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.
virtual const PeriodicGridBase * grid() const =0
The grid which owns this tower.
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.
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.