 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "Acts/Utilities/MathHelpers.hpp"
16 ostr<<
"MS Track seed @"<<
Amg::toString(seed.position())<<
", sector: "<<seed.sector()<<std::endl;
22 <<
", R: "<<Acts::fastHypot(seg->x(), seg->y())
25 <<
", chi2: "<<(seg->chiSquared() /
std::max(seg->numberDoF(), 1.f))
26 <<
", nPrec: "<<seg->nPrecisionHits()
27 <<
", nPhi: "<<seg->nPhiLayers()
28 <<
", nTrigEta: "<<seg->nTrigEtaLayers()<<std::endl;
33 m_loc{loc}, m_sector{sector}{}
36 std::vector<const SpacePointBucket*> returnMe{};
38 returnMe.push_back(seg->parent()->parentBucket());
45 std::vector<const Segment*> segs{};
64 const float r2 = Acts::hypotSquare(seg->
x(), seg->
y(), seg->
z());
65 auto insert_itr = std::ranges::find_if(
m_segments,
67 return r2 < Acts::hypotSquare(added->
x(), added->
y(), added->
z());
JetConstituentVector::iterator iterator
std::string printID(const xAOD::MuonSegment &seg)
Print the chamber ID of a segment, e.g.
std::string find(const std::string &s)
return a remapped string
Placeholder for what will later be the muon segment EDM representation.
Class describing a MuonSegment.
MsTrackSeed(const Location loc, const int sector)
Constructor with location defintion.
Location
Enum defining whether the seed is made in the endcap / barrel.
Location location() const
Returns the location of the seed.
const Segment * detailedSegment(const xAOD::MuonSegment &seg)
Helper function to navigate from the xAOD::MuonSegment to the MuonR4::Segment.
std::vector< const SpacePointBucket * > buckets() const
Returns the list of associated buckets.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
std::vector< const Segment * > detailedSegments() const
Returns the list of detailed segments.
void replaceSegment(const xAOD::MuonSegment *exist, const xAOD::MuonSegment *updated)
Replaces an already added segment in the seed with a better suited one.
Location m_loc
Location variable.
void setPosition(Amg::Vector3D &&pos)
set the seed's position
Eigen::Matrix< double, 3, 1 > Vector3D
#define THROW_EXCEPTION(MESSAGE)
float z() const
Returns the y position.
This header ties the generic definitions in this package.
const Amg::Vector3D & position() const
Returns the seed's position.
float y() const
Returns the x position.
std::ostream & operator<<(std::ostream &ostr, const MuonR4::MsTrackSeed &seed)
void addSegment(const xAOD::MuonSegment *seg)
Append a segment to the seed.
std::vector< const xAOD::MuonSegment * > m_segments
const std::vector< const xAOD::MuonSegment * > & segments() const
Returns the vector of associated segments.