ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.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 MUONSPACEPOINT_MUONSPACEPOINTCONTAINER_H
5#define MUONSPACEPOINT_MUONSPACEPOINTCONTAINER_H
6
9#include "GaudiKernel/SystemOfUnits.h"
11#include <vector>
12namespace MuonR4{
21 public std::vector<std::shared_ptr<SpacePoint>> {
22 public:
25 using std::vector<std::shared_ptr<SpacePoint>>::vector;
27 void setCoveredRange(double min, double max);
29 double coveredMin() const { return m_min; }
31 double coveredMax() const { return m_max; }
34 return empty() ? nullptr : front()->msSector();
35 }
36
38 void setBucketId(unsigned int id);
40 unsigned int bucketId() const { return m_bucketId; }
41 bool operator<(const SpacePointBucket& other) const;
46 const std::vector<chamberLocation> & chamberLocations() const{
47 return m_chamberLocs;
48 }
49 private:
50 unsigned int m_bucketId{0};
51 double m_min{-20. *Gaudi::Units::m};
52 double m_max{20. * Gaudi::Units::m};
53 std::vector<chamberLocation> m_chamberLocs{};
54 };
55
57}
60
61#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
static const Attributes_t empty
#define min(a, b)
Definition cfImp.cxx:40
#define max(a, b)
Definition cfImp.cxx:41
Derived DataVector<T>.
Definition DataVector.h:795
A spectrometer sector forms the envelope of all chambers that are placed in the same MS sector & laye...
: The muon space point bucket represents a collection of points that will bre processed together in t...
const MuonGMR4::SpectrometerSector * msSector() const
returns th associated muonChamber
void setCoveredRange(double min, double max)
set the range in the precision plane covered by the bucket
void setBucketId(unsigned int id)
sets the Identifier of the MuonSpacePointBucket in context of the associated muonChamber
unsigned int bucketId() const
Returns the Identifier in the context of the MuonChamber.
const std::vector< chamberLocation > & chamberLocations() const
returns the list of all tracking chambers in the bucket for fast navigation
This header ties the generic definitions in this package.
DataVector< SpacePointBucket > SpacePointContainer
Abrivation of the space point container type.
: Helper struct for fast approximate navigation.