ATLAS Offline Software
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 
12 #include "xAODMuon/MuonSegment.h"
16 namespace MuonR4{
17 
18  class MsTrackSeed {
19  public:
21  enum class Location: int8_t{
22  Undefined =-1,
23  Barrel,
24  Endcap
25  };
31  MsTrackSeed(const Location loc,
32  const int sector);
34  const std::vector<const xAOD::MuonSegment*>& segments() const;
36  std::vector<const Segment*> detailedSegments() const;
38  std::vector<const SpacePointBucket*> buckets() const;
40  void addSegment(const xAOD::MuonSegment* seg);
46  const xAOD::MuonSegment* updated);
47 
49  const Amg::Vector3D& position() const;
53  Location location() const;
55  int sector() const { return m_sector; }
56  private:
59  int m_sector{0};
61  std::vector<const xAOD::MuonSegment*> m_segments{};
62  };
63  using MsTrackSeedContainer = std::vector<MsTrackSeed>;
64  std::ostream& operator<<(std::ostream& ostr, const MuonR4::MsTrackSeed& seed);
65 
66 }
67 CLASS_DEF( MuonR4::MsTrackSeedContainer , 1290595104 , 1 )
68 #endif
MuonR4::MsTrackSeed::Location::Barrel
@ Barrel
MuonR4::MsTrackSeed
Definition: MsTrackSeed.h:18
MuonSegment.h
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
MuonR4::MsTrackSeed::Location::Endcap
@ Endcap
MuonR4::MsTrackSeed::MsTrackSeed
MsTrackSeed(const Location loc, const int sector)
Constructor with location defintion.
Definition: MsTrackSeed.cxx:35
MuonR4::MsTrackSeed::Location
Location
Enum defining whether the seed is made in the endcap / barrel.
Definition: MsTrackSeed.h:21
MuonR4::MsTrackSeed::location
Location location() const
Returns the location of the seed.
Definition: MsTrackSeed.cxx:37
MuonR4::MsTrackSeed::buckets
std::vector< const SpacePointBucket * > buckets() const
Returns the list of associated buckets.
Definition: MsTrackSeed.cxx:38
WriteCellNoiseToCool.exist
exist
Definition: WriteCellNoiseToCool.py:543
MuonR4::MsTrackSeed::detailedSegments
std::vector< const Segment * > detailedSegments() const
Returns the list of detailed segments.
Definition: MsTrackSeed.cxx:47
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:57
MuonR4::MsTrackSeed::m_loc
Location m_loc
Location variable.
Definition: MsTrackSeed.h:58
MuonR4::MsTrackSeed::setPosition
void setPosition(Amg::Vector3D &&pos)
set the seed's position
Definition: MsTrackSeed.cxx:75
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonR4::MsTrackSeed::m_sector
int m_sector
Definition: MsTrackSeed.h:59
MuonR4::MsTrackSeed::Location::Undefined
@ Undefined
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:16
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
MuonR4::MsTrackSeed::sector
int sector() const
Returns the seed's sector.
Definition: MsTrackSeed.h:55
MuonR4::MsTrackSeed::position
const Amg::Vector3D & position() const
Returns the seed's position.
Definition: MsTrackSeed.cxx:74
MuonR4::operator<<
std::ostream & operator<<(std::ostream &ostr, const MuonR4::MsTrackSeed &seed)
Definition: MsTrackSeed.cxx:15
SpacePointContainer.h
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
MuonR4::MsTrackSeedContainer
std::vector< MsTrackSeed > MsTrackSeedContainer
Definition: MsTrackSeed.h:63
MuonR4::MsTrackSeed::addSegment
void addSegment(const xAOD::MuonSegment *seg)
Append a segment to the seed.
Definition: MsTrackSeed.cxx:66
MuonR4::MsTrackSeed::m_pos
Amg::Vector3D m_pos
Definition: MsTrackSeed.h:60
Segment.h
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
MuonR4::MsTrackSeed::m_segments
std::vector< const xAOD::MuonSegment * > m_segments
Definition: MsTrackSeed.h:61
MuonR4::MsTrackSeed::segments
const std::vector< const xAOD::MuonSegment * > & segments() const
Returns the vector of associated segments.
Definition: MsTrackSeed.cxx:46