ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
MuonR4::SpacePointBucket Class Reference

: The muon space point bucket represents a collection of points that will bre processed together in the pattern seeding. More...

#include <SpacePointContainer.h>

Inheritance diagram for MuonR4::SpacePointBucket:
Collaboration diagram for MuonR4::SpacePointBucket:

Public Member Functions

 SpacePointBucket ()=default
 Standard constructor. More...
 
void setCoveredRange (double min, double max)
 set the range in the precision plane covered by the bucket More...
 
double coveredMin () const
 lower interval value covered by the bucket More...
 
double coveredMax () const
 upper interval value covered by the bucket More...
 
const MuonGMR4::SpectrometerSectormsSector () const
 returns th associated muonChamber More...
 
void setBucketId (unsigned int id)
 sets the Identifier of the MuonSpacePointBucket in context of the associated muonChamber More...
 
unsigned int bucketId () const
 Returns the Identifier in the context of the MuonChamber. More...
 
bool operator< (const SpacePointBucket &other) const
 

Public Attributes

elements
 STL member. More...
 

Private Attributes

unsigned int m_bucketId {0}
 
double m_min {-20. *Gaudi::Units::m}
 
double m_max {20. * Gaudi::Units::m}
 

Detailed Description

: The muon space point bucket represents a collection of points that will bre processed together in the pattern seeding.

Buckets represent a a collection of hits that are close in a layer & sector of the muon spectrometer The area covered may varied across the different regions of the spectrometers & may also partially overlap with other buckets close-by.

Definition at line 20 of file MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h.

Constructor & Destructor Documentation

◆ SpacePointBucket()

MuonR4::SpacePointBucket::SpacePointBucket ( )
default

Standard constructor.

Member Function Documentation

◆ bucketId()

unsigned int MuonR4::SpacePointBucket::bucketId ( ) const
inline

Returns the Identifier in the context of the MuonChamber.

Definition at line 45 of file MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h.

45 { return m_bucketId; }

◆ coveredMax()

double MuonR4::SpacePointBucket::coveredMax ( ) const
inline

upper interval value covered by the bucket

Definition at line 33 of file MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h.

33 { return m_max; }

◆ coveredMin()

double MuonR4::SpacePointBucket::coveredMin ( ) const
inline

lower interval value covered by the bucket

Definition at line 31 of file MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h.

31 { return m_min; }

◆ msSector()

const MuonGMR4::SpectrometerSector* MuonR4::SpacePointBucket::msSector ( ) const
inline

returns th associated muonChamber

Definition at line 35 of file MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h.

35  {
36  return empty() ? nullptr : front()->msSector();
37  }

◆ operator<()

bool MuonR4::SpacePointBucket::operator< ( const SpacePointBucket other) const
inline

Definition at line 46 of file MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h.

46  {
48  static const ChamberSorter sorter{};
49  int chambCompare = -sorter(msSector(), other.msSector()) +
50  sorter(other.msSector(), msSector());
51  if (chambCompare) return chambCompare < 0;
52  return bucketId() < other.bucketId();
53  }

◆ setBucketId()

void MuonR4::SpacePointBucket::setBucketId ( unsigned int  id)
inline

sets the Identifier of the MuonSpacePointBucket in context of the associated muonChamber

Definition at line 41 of file MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h.

41  {
42  m_bucketId = id;
43  }

◆ setCoveredRange()

void MuonR4::SpacePointBucket::setCoveredRange ( double  min,
double  max 
)
inline

set the range in the precision plane covered by the bucket

Definition at line 26 of file MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h.

26  {
27  m_min = min;
28  m_max = max;
29  }

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ m_bucketId

unsigned int MuonR4::SpacePointBucket::m_bucketId {0}
private

◆ m_max

double MuonR4::SpacePointBucket::m_max {20. * Gaudi::Units::m}
private

◆ m_min

double MuonR4::SpacePointBucket::m_min {-20. *Gaudi::Units::m}
private

The documentation for this class was generated from the following file:
max
#define max(a, b)
Definition: cfImp.cxx:41
MuonR4::SpacePointBucket::msSector
const MuonGMR4::SpectrometerSector * msSector() const
returns th associated muonChamber
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:35
MuonR4::SpacePointBucket::bucketId
unsigned int bucketId() const
Returns the Identifier in the context of the MuonChamber.
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:45
postInclude.sorter
sorter
Definition: postInclude.SortInput.py:23
empty
bool empty(TH1 *h)
Definition: computils.cxx:294
MuonR4::SpacePointBucket::m_bucketId
unsigned int m_bucketId
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:55
MuonR4::SpacePointBucket::m_max
double m_max
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:57
MuonGMR4::MuonDetectorManager::MSEnvelopeSorter
Helper struct to ensure that the spectrometer sectors & chambers are sorted.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:109
min
#define min(a, b)
Definition: cfImp.cxx:40
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonR4::SpacePointBucket::m_min
double m_min
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:56