This class defines the phi convention for Calorimeters.
static double fix(double phi)
A rectangular window within the segmentation.
const CaloTowerSeg & m_parent
Segmentation of which this is a part.
index_t etamax() const
Upper eta index (inclusive).
size_t nphi() const
The number of towers in the phi direction in this window.
index_t etamin() const
Lower eta index.
index_t m_etamin
Inclusive indices. m_phimax < m_phimin indicates phi wraparound.
const CaloTowerSeg & parent() const
index_t phimin() const
Lower phi index.
index_t phimax() const
Upper phi index (inclusive). phimax<phimin indicates phi wraparound.
CaloTowerSeg::index_t index_t
SubSeg(const CaloTowerSeg &parent, index_t etamin, index_t etamax, index_t phimin, index_t phimax)
Constructor.
CaloTowerSeg segmentation() const
Return a new segmentation object corresponding to this window.
index_t nphi() const
Retrieve number of bins.
size_t index_t
Type for eta, phi indices.
CaloTowerSeg()
Default constructor.
double phimin() const
Retrieve lower boundary value range.
index_t neta() const
Retrieve number of bins.
double deta() const
Retrieve bin size .
static const CaloPhiRange s_range
double dphi() const
Retrieve bin size .
index_t phiIndex(double phiVal) const
Returns index for a given value.
SubSeg subseg(double eta, double deta, double phi, double dphi) const
Return a window within the current segmentation.
static const index_t outOfRange
Used to flag out-of-range indices.
double phimax() const
Retrieve upper boundary value range.
double phi(index_t phiInd) const
Returns value for a given index.
double etamin() const
Retrieve lower boundary value range.
double etamax() const
Retrieve upper boundary value range.
double eta(index_t etaInd) const
Returns value for a given index.
index_t etaIndex(double etaVal) const
Returns index for a given value.