![]() |
ATLAS Offline Software
|
#include <ExpandedSector.h>
Public Types | |
| enum class | SectorProjector : std::int8_t { leftOverlap = -1 , center = 0 , rightOverlap = 1 } |
| Enumeration to select the sector projection of the regular MS sector. More... | |
Public Member Functions | |
| ExpandedSector (const unsigned msSector, const SectorProjector proj) | |
| Constructor of the expanded sector taking the regular MS sector number and the projector. | |
| ExpandedSector (const double phi) | |
| Constructor from an arbitrary phi angle. | |
| ExpandedSector (const std::int8_t expSector) | |
| Constructor from a expanded sector number. | |
| bool | operator< (const ExpandedSector &other) const |
| Define the ordering operator. | |
| bool | operator== (const ExpandedSector &other) const |
| Define the equal operator. | |
| bool | operator!= (const ExpandedSector &other) const |
| Define the unequal operator. | |
| unsigned | msSector () const |
| Returns the ms sector corresponding to the expanded sector. | |
| unsigned | adjacentMsSector () const |
| Returns the neighbouring msSector number constructed from the primary sector and the sector overlap projector. | |
| SectorProjector | projector () const |
| Returns the projector in the corresponding MS sector. | |
| std::int8_t | sector () const |
| Returns the expanded sector number. | |
| double | phi () const |
| Returns the phi angle of the expanded sector. | |
| Amg::Vector3D | radialDir () const |
| Returns the vector pointing radially along the sector plane. | |
| Amg::Vector3D | normalDir () const |
| Returns the vector that is normal to the plane spanned by the expanded sector. | |
| bool | isNeighbour (const ExpandedSector &other) const |
Static Public Member Functions | |
| static std::string | toString (const SectorProjector proj) |
| Return the projector as a string. | |
Private Member Functions | |
| std::ostream & | toString (std::ostream &ostr) const |
| Pipe the object to an ostream. | |
Private Attributes | |
| std::int8_t | m_sector {0} |
| the sector number stored | |
Friends | |
| std::ostream & | operator<< (std::ostream &ostr, const SectorProjector proj) |
| Define the ostream operator. | |
| std::ostream & | operator<< (std::ostream &ostr, const ExpandedSector &sec) |
Definition at line 27 of file ExpandedSector.h.
|
strong |
Enumeration to select the sector projection of the regular MS sector.
| Enumerator | |
|---|---|
| leftOverlap | |
| center | Project the segment onto the overlap with the previous sector. |
| rightOverlap | Project the segment onto the sector centre. |
Definition at line 31 of file ExpandedSector.h.
|
explicit |
Constructor of the expanded sector taking the regular MS sector number and the projector.
| msSector | Number of the ms reference sector [1-16] |
| proj | Splitting of the sector to the overlap with the left / right adjacent sector or the sector center |
Definition at line 48 of file ExpandedSector.cxx.
|
explicit |
Constructor from an arbitrary phi angle.
The angle is assigned to the msSectors and then the expanded sector is deduced
| phi | Angle from [-pi, pi] |
Definition at line 53 of file ExpandedSector.cxx.
|
explicit |
Constructor from a expanded sector number.
| expSector | Raw expanded sector number |
Definition at line 46 of file ExpandedSector.cxx.
| unsigned MuonR4::ExpandedSector::adjacentMsSector | ( | ) | const |
Returns the neighbouring msSector number constructed from the primary sector and the sector overlap projector.
Definition at line 76 of file ExpandedSector.cxx.
| bool MuonR4::ExpandedSector::isNeighbour | ( | const ExpandedSector & | other | ) | const |
Definition at line 104 of file ExpandedSector.cxx.
| unsigned MuonR4::ExpandedSector::msSector | ( | ) | const |
Returns the ms sector corresponding to the expanded sector.
Definition at line 70 of file ExpandedSector.cxx.
| Amg::Vector3D MuonR4::ExpandedSector::normalDir | ( | ) | const |
Returns the vector that is normal to the plane spanned by the expanded sector.
Definition at line 101 of file ExpandedSector.cxx.
| bool MuonR4::ExpandedSector::operator!= | ( | const ExpandedSector & | other | ) | const |
Define the unequal operator.
Definition at line 92 of file ExpandedSector.cxx.
| bool MuonR4::ExpandedSector::operator< | ( | const ExpandedSector & | other | ) | const |
Define the ordering operator.
Definition at line 86 of file ExpandedSector.cxx.
| bool MuonR4::ExpandedSector::operator== | ( | const ExpandedSector & | other | ) | const |
Define the equal operator.
Definition at line 89 of file ExpandedSector.cxx.
| double MuonR4::ExpandedSector::phi | ( | ) | const |
Returns the phi angle of the expanded sector.
Definition at line 95 of file ExpandedSector.cxx.
| SectorProjector MuonR4::ExpandedSector::projector | ( | ) | const |
Returns the projector in the corresponding MS sector.
Definition at line 67 of file ExpandedSector.cxx.
| Amg::Vector3D MuonR4::ExpandedSector::radialDir | ( | ) | const |
Returns the vector pointing radially along the sector plane.
Definition at line 98 of file ExpandedSector.cxx.
| std::int8_t MuonR4::ExpandedSector::sector | ( | ) | const |
Returns the expanded sector number.
Definition at line 73 of file ExpandedSector.cxx.
|
static |
Return the projector as a string.
Definition at line 109 of file ExpandedSector.cxx.
|
private |
Pipe the object to an ostream.
Definition at line 118 of file ExpandedSector.cxx.
|
friend |
Definition at line 42 of file ExpandedSector.h.
|
friend |
Define the ostream operator.
Definition at line 39 of file ExpandedSector.h.
|
private |