#include <MsTrackSeed.h>
Definition at line 22 of file MsTrackSeed.h.
◆ Location
Enum defining whether the seed is made in the endcap / barrel.
| Enumerator |
|---|
| Undefined | |
| Barrel | |
| Endcap | |
Definition at line 25 of file MsTrackSeed.h.
◆ MsTrackSeed()
Constructor with location defintion.
- Parameters
-
| loc | Localtion definition whether the seed is constructed on the barrel or on the endcap surface |
| sector | In which tree sector is the seed constructed: sector: 2*MS-sector +- Overlap |
Definition at line 52 of file MsTrackSeed.cxx.
52 :
Location m_loc
Location variable.
ExpandedSector sector() const
Returns the seed's sector.
◆ addSegment()
Append a segment to the seed.
Definition at line 75 of file MsTrackSeed.cxx.
75 {
76 const float r2 = Acts::hypotSquare(seg->
x(), seg->
y(), seg->
z());
77 auto insert_itr = std::ranges::find_if(
m_segments,
79 return r2 < Acts::hypotSquare(added->
x(), added->
y(), added->
z());
80 });
82 }
std::vector< const xAOD::MuonSegment * > m_segments
float y() const
Returns the x position.
float z() const
Returns the y position.
MuonSegment_v1 MuonSegment
Reference the current persistent version:
◆ buckets()
Returns the list of associated buckets.
Definition at line 55 of file MsTrackSeed.cxx.
55 {
56 std::vector<const SpacePointBucket*> returnMe{};
59 returnMe.push_back(seg->parent()->parentBucket());
60 }
61 }
62 return returnMe;
63 }
std::span< const xAOD::MuonSegment *const > segments() const
Returns the vector of associated segments.
const Segment * detailedSegment(const xAOD::MuonSegment &seg)
Helper function to navigate from the xAOD::MuonSegment to the MuonR4::Segment.
◆ location()
◆ position()
◆ replaceSegment()
Replaces an already added segment in the seed with a better suited one.
- Parameters
-
| exist | Pointer to the segment that is already part of the seed (Exception is thrown if not) |
| updated | Pointer to the segment with which the segment is replaced with |
Definition at line 66 of file MsTrackSeed.cxx.
67 {
68 std::vector<const xAOD::MuonSegment*>::iterator itr =
72 }
73 (*itr) = updated;
74 }
#define THROW_EXCEPTION(MESSAGE)
◆ sector()
◆ segments()
Returns the vector of associated segments.
Definition at line 65 of file MsTrackSeed.cxx.
◆ setPosition()
◆ toString()
Definition at line 43 of file MsTrackSeed.cxx.
43 {
44 switch (loc) {
47 case Barrel:
return "Barrel";
48 case Endcap:
return "Endcap";
49 }
50 return "";
51 }
Location
Enum defining whether the seed is made in the endcap / barrel.
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | ostr, |
|
|
const Location | loc ) |
|
friend |
Definition at line 31 of file MsTrackSeed.h.
31 {
33 }
static std::string toString(const Location loc)
◆ m_loc
◆ m_pos
◆ m_sector
| ExpandedSector MuonR4::MsTrackSeed::m_sector {static_cast<std::int8_t>(0)} |
|
private |
Definition at line 65 of file MsTrackSeed.h.
65{static_cast<std::int8_t>(0)};
◆ m_segments
The documentation for this class was generated from the following files: