#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 83 of file MsTrackSeed.cxx.
83 {
84 const float r2 = Acts::hypotSquare(seg->
x(), seg->
y(), seg->
z());
85 auto insert_itr = std::ranges::find_if(
m_segments,
87 return r2 < Acts::hypotSquare(added->
x(), added->
y(), added->
z());
88 });
90 }
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{};
58 returnMe.push_back(seg->parent()->parentBucket());
59 }
60 return returnMe;
61 }
std::vector< const Segment * > detailedSegments() const
Returns the list of detailed segments.
◆ detailedSegments()
| std::vector< const Segment * > MuonR4::MsTrackSeed::detailedSegments |
( |
| ) |
const |
Returns the list of detailed segments.
Definition at line 64 of file MsTrackSeed.cxx.
64 {
65 std::vector<const Segment*> segs{};
69 segs.push_back(seg);
70 }
71 }
72 return segs;
73 }
size_t size() const
Number of registered mappings.
const std::vector< const xAOD::MuonSegment * > & 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 74 of file MsTrackSeed.cxx.
75 {
76 std::vector<const xAOD::MuonSegment*>::iterator itr =
80 }
81 (*itr) = updated;
82 }
#define THROW_EXCEPTION(MESSAGE)
◆ sector()
◆ segments()
Returns the vector of associated segments.
Definition at line 63 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 67 of file MsTrackSeed.h.
67{static_cast<std::int8_t>(0)};
◆ m_segments
The documentation for this class was generated from the following files: