4#ifndef MUONTRACKEVENT_EXPANDEDSECTOR_H
5#define MUONTRACKEVENT_EXPANDEDSECTOR_H
9#include "Acts/Utilities/OstreamFormatter.hpp"
78 std::int8_t
sector()
const;
90 std::ostream&
toString(std::ostream& ostr)
const;
Scalar phi() const
phi method
ACTS_OSTREAM_FORMATTER(MuonR4::ExpandedSector::SectorProjector)
friend std::ostream & operator<<(std::ostream &ostr, const SectorProjector proj)
Define the ostream operator.
double phi() const
Returns the phi angle of the expanded sector.
Amg::Vector3D normalDir() const
Returns the vector that is normal to the plane spanned by the expanded sector.
std::int8_t m_sector
the sector number stored
friend std::ostream & operator<<(std::ostream &ostr, const ExpandedSector &sec)
bool operator==(const ExpandedSector &other) const
Define the equal operator.
SectorProjector
Enumeration to select the sector projection of the regular MS sector.
@ rightOverlap
Project the segment onto the sector centre.
@ center
Project the segment onto the overlap with the previous sector.
ExpandedSector(const unsigned msSector, const SectorProjector proj)
Constructor of the expanded sector taking the regular MS sector number and the projector.
unsigned msSector() const
Returns the ms sector corresponding to the expanded sector.
std::int8_t sector() const
Returns the expanded sector number.
SectorProjector projector() const
Returns the projector in the corresponding MS sector.
bool isNeighbour(const ExpandedSector &other) const
bool operator!=(const ExpandedSector &other) const
Define the unequal operator.
unsigned adjacentMsSector() const
Returns the neighbouring msSector number constructed from the primary sector and the sector overlap p...
Amg::Vector3D radialDir() const
Returns the vector pointing radially along the sector plane.
static std::string toString(const SectorProjector proj)
Return the projector as a string.
bool operator<(const ExpandedSector &other) const
Define the ordering operator.
Eigen::Matrix< double, 3, 1 > Vector3D
This header ties the generic definitions in this package.