ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
Event
MuonTrackEvent
MuonTrackEvent
MsTrackSeed.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONTRACKEVENT_MSTRACKSEED_H
5
#define MUONTRACKEVENT_MSTRACKSEED_H
6
7
#include <vector>
8
9
#include "
AthContainers/DataVector.h
"
10
#include "
MuonSpacePoint/SpacePointContainer.h
"
11
#include "
MuonTrackEvent/ExpandedSector.h
"
12
#include "
MuonPatternEvent/Segment.h
"
13
14
#include "
xAODMuon/MuonSegment.h
"
15
16
#include "Acts/Utilities/OstreamFormatter.hpp"
20
namespace
MuonR4
{
21
22
class
MsTrackSeed
{
23
public
:
25
enum class
Location
: int8_t{
26
Undefined
=-1,
27
Barrel
,
28
Endcap
29
};
30
static
std::string
toString
(
const
Location
loc);
31
friend
std::ostream&
operator<<
(std::ostream& ostr,
const
Location
loc) {
32
return
ostr<<
toString
(loc);
33
}
34
39
MsTrackSeed
(
const
Location
loc,
40
const
ExpandedSector
sector
);
42
std::span<const xAOD::MuonSegment* const>
segments
()
const
;
44
std::vector<const SpacePointBucket*>
buckets
()
const
;
46
void
addSegment
(
const
xAOD::MuonSegment
* seg);
51
void
replaceSegment
(
const
xAOD::MuonSegment
* exist,
52
const
xAOD::MuonSegment
* updated);
53
55
const
Amg::Vector3D
&
position
()
const
;
57
void
setPosition
(
Amg::Vector3D
&& pos);
59
Location
location
()
const
;
61
ExpandedSector
sector
()
const
{
return
m_sector
; }
62
private
:
64
Location
m_loc
{
Location::Undefined
};
65
ExpandedSector
m_sector
{
static_cast<
std::int8_t
>
(0)};
66
Amg::Vector3D
m_pos
{Amg::Vector3D::Zero()};
67
std::vector<const xAOD::MuonSegment*>
m_segments
{};
68
};
69
using
MsTrackSeedContainer
= std::vector<MsTrackSeed>;
70
std::ostream&
operator<<
(std::ostream& ostr,
const
MuonR4::MsTrackSeed
& seed);
71
72
}
73
CLASS_DEF
(
MuonR4::MsTrackSeedContainer
, 1290595104 , 1 )
74
ACTS_OSTREAM_FORMATTER
(
MuonR4
::MsTrackSeed::Location);
75
#endif
ACTS_OSTREAM_FORMATTER
ACTS_OSTREAM_FORMATTER(MuonR4::CalibratedSpacePoint::State)
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
MuonSegment.h
ExpandedSector.h
Undefined
@ Undefined
Definition
MaterialTypes.h:8
Segment.h
SpacePointContainer.h
MuonR4::ExpandedSector
Definition
ExpandedSector.h:27
MuonR4::MsTrackSeed
Definition
MsTrackSeed.h:22
MuonR4::MsTrackSeed::m_sector
ExpandedSector m_sector
Definition
MsTrackSeed.h:65
MuonR4::MsTrackSeed::position
const Amg::Vector3D & position() const
Returns the seed's position.
Definition
MsTrackSeed.cxx:83
MuonR4::MsTrackSeed::addSegment
void addSegment(const xAOD::MuonSegment *seg)
Append a segment to the seed.
Definition
MsTrackSeed.cxx:75
MuonR4::MsTrackSeed::m_loc
Location m_loc
Location variable.
Definition
MsTrackSeed.h:64
MuonR4::MsTrackSeed::MsTrackSeed
MsTrackSeed(const Location loc, const ExpandedSector sector)
Constructor with location defintion.
Definition
MsTrackSeed.cxx:52
MuonR4::MsTrackSeed::buckets
std::vector< const SpacePointBucket * > buckets() const
Returns the list of associated buckets.
Definition
MsTrackSeed.cxx:55
MuonR4::MsTrackSeed::location
Location location() const
Returns the location of the seed.
Definition
MsTrackSeed.cxx:54
MuonR4::MsTrackSeed::Location
Location
Enum defining whether the seed is made in the endcap / barrel.
Definition
MsTrackSeed.h:25
MuonR4::MsTrackSeed::Location::Barrel
@ Barrel
Definition
MsTrackSeed.h:27
MuonR4::MsTrackSeed::Location::Endcap
@ Endcap
Definition
MsTrackSeed.h:28
MuonR4::MsTrackSeed::Location::Undefined
@ Undefined
Definition
MsTrackSeed.h:26
MuonR4::MsTrackSeed::sector
ExpandedSector sector() const
Returns the seed's sector.
Definition
MsTrackSeed.h:61
MuonR4::MsTrackSeed::m_pos
Amg::Vector3D m_pos
Definition
MsTrackSeed.h:66
MuonR4::MsTrackSeed::toString
static std::string toString(const Location loc)
Definition
MsTrackSeed.cxx:43
MuonR4::MsTrackSeed::operator<<
friend std::ostream & operator<<(std::ostream &ostr, const Location loc)
Definition
MsTrackSeed.h:31
MuonR4::MsTrackSeed::m_segments
std::vector< const xAOD::MuonSegment * > m_segments
Definition
MsTrackSeed.h:67
MuonR4::MsTrackSeed::segments
std::span< const xAOD::MuonSegment *const > segments() const
Returns the vector of associated segments.
Definition
MsTrackSeed.cxx:65
MuonR4::MsTrackSeed::replaceSegment
void replaceSegment(const xAOD::MuonSegment *exist, const xAOD::MuonSegment *updated)
Replaces an already added segment in the seed with a better suited one.
Definition
MsTrackSeed.cxx:66
MuonR4::MsTrackSeed::setPosition
void setPosition(Amg::Vector3D &&pos)
set the seed's position
Definition
MsTrackSeed.cxx:84
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
MuonR4::MsTrackSeedContainer
std::vector< MsTrackSeed > MsTrackSeedContainer
Definition
MsTrackSeed.h:69
MuonR4::operator<<
std::ostream & operator<<(std::ostream &ostr, const MuonR4::MsTrackSeed &seed)
Definition
MsTrackSeed.cxx:18
xAOD::MuonSegment
MuonSegment_v1 MuonSegment
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/MuonSegment.h:13
Generated on
for ATLAS Offline Software by
1.17.0