![]() |
ATLAS Offline Software
|
#include <MuonNSWSegmentFinderTool.h>
Classes | |
| struct | SeedMeasurement |
| Struct caching the MuonClusterOnTrack and providing the orientation of the strip in addtion. More... | |
Public Types | |
| enum class | SeedOR { NoOverlap , Same , SubSet , SuperSet } |
| using | MeasVec = std::vector<SeedMeasurement> |
| Returns the contained measurements. | |
Public Member Functions | |
| NSWSeed ()=default | |
| NSWSeed (const MuonNSWSegmentFinderTool *parent, const std::array< SeedMeasurement, 4 > &seed, const std::array< double, 2 > &lengths) | |
| NSWSeed (const MuonNSWSegmentFinderTool *parent, const SeedMeasurement &first, const SeedMeasurement &second) | |
| NSWSeed (const MuonNSWSegmentFinderTool *parent, const Muon::MuonSegment &seg) | |
| Constructor to build a seed from an existing segment. | |
| NSWSeed (const MuonNSWSegmentFinderTool *parent, const Amg::Vector3D &pos, const Amg::Vector3D &dir) | |
| double | chi2 () const |
| size_t | size () const |
| Returns the number of measurements. | |
| const Amg::Vector3D & | pos () const |
| Returns the position of the seed. | |
| const Amg::Vector3D & | dir () const |
| Returns the direction of the seed. | |
| MeasVec | measurements () const |
| bool | add (SeedMeasurement meas, double max_uncert) |
| Tries to add the measurement to the seeds. Returns false if the measurement is incompatible with the seed or the seed is invalid. | |
| const Muon::MuonClusterOnTrack * | newCalibClust (std::unique_ptr< const Muon::MuonClusterOnTrack > new_clust) |
| Adds a calibrated cluster to the garbage collection. | |
| SeedOR | overlap (const NSWSeed &other) const |
Private Types | |
| using | SeedMeasCache = std::array<SeedMeasurement, 16> |
| Helper pair to cache the measurements with the respective distances. | |
Private Member Functions | |
| int | channel (const SeedMeasurement &meas) const |
| Returns the channel of the measurement on the layer. | |
| bool | find (const SeedMeasurement &meas) const |
| Checks whether the measurement is already part of the seed. | |
| double | distance (const SeedMeasurement &meas) const |
| Calculates the minimal distance between seed and measurement. | |
| bool | insert (const Muon::MuonClusterOnTrack *cl) |
| bool | insert (SeedMeasurement meas) |
Private Attributes | |
| const MuonNSWSegmentFinderTool * | m_parent {nullptr} |
| SeedMeasCache | m_measurements {} |
| Cache the eta measurements. | |
| SeedMeasCache | m_phiMeasurements {} |
| Cache the phi measurements. | |
| SeedMeasCache | m_padMeasurements {} |
| Cache the sTGC pad measurements. | |
| Amg::Vector3D | m_pos {Amg::Vector3D::Zero()} |
| Starting position of the seed. | |
| Amg::Vector3D | m_dir {Amg::Vector3D::Zero()} |
| Seed direction. | |
| double | m_width {0.} |
| seed width | |
| double | m_chi2 {0.} |
| Chi2. | |
| size_t | m_size {0} |
| Added measurements on track. | |
| std::set< std::shared_ptr< const Muon::MuonClusterOnTrack > > | m_calibClust {} |
| Garbage container per seed. | |
Definition at line 29 of file MuonNSWSegmentFinderTool.h.
| using Muon::NSWSeed::MeasVec = std::vector<SeedMeasurement> |
Returns the contained measurements.
Definition at line 82 of file MuonNSWSegmentFinderTool.h.
|
private |
Helper pair to cache the measurements with the respective distances.
Definition at line 105 of file MuonNSWSegmentFinderTool.h.
|
strong |
| Enumerator | |
|---|---|
| NoOverlap | |
| Same | |
| SubSet | |
| SuperSet | |
Definition at line 89 of file MuonNSWSegmentFinderTool.h.
|
default |
| Muon::NSWSeed::NSWSeed | ( | const MuonNSWSegmentFinderTool * | parent, |
| const std::array< SeedMeasurement, 4 > & | seed, | ||
| const std::array< double, 2 > & | lengths ) |
Insert the measurements
Definition at line 107 of file MuonNSWSegmentFinderTool.cxx.
| Muon::NSWSeed::NSWSeed | ( | const MuonNSWSegmentFinderTool * | parent, |
| const SeedMeasurement & | first, | ||
| const SeedMeasurement & | second ) |
Definition at line 125 of file MuonNSWSegmentFinderTool.cxx.
| Muon::NSWSeed::NSWSeed | ( | const MuonNSWSegmentFinderTool * | parent, |
| const Muon::MuonSegment & | seg ) |
Constructor to build a seed from an existing segment.
Definition at line 134 of file MuonNSWSegmentFinderTool.cxx.
| Muon::NSWSeed::NSWSeed | ( | const MuonNSWSegmentFinderTool * | parent, |
| const Amg::Vector3D & | pos, | ||
| const Amg::Vector3D & | dir ) |
Definition at line 144 of file MuonNSWSegmentFinderTool.cxx.
| bool Muon::NSWSeed::add | ( | SeedMeasurement | meas, |
| double | max_uncert ) |
Tries to add the measurement to the seeds. Returns false if the measurement is incompatible with the seed or the seed is invalid.
Definition at line 160 of file MuonNSWSegmentFinderTool.cxx.
|
private |
Returns the channel of the measurement on the layer.
Definition at line 146 of file MuonNSWSegmentFinderTool.cxx.
|
inline |
Definition at line 73 of file MuonNSWSegmentFinderTool.h.
|
inline |
|
private |
Calculates the minimal distance between seed and measurement.
Definition at line 147 of file MuonNSWSegmentFinderTool.cxx.
|
private |
Checks whether the measurement is already part of the seed.
Definition at line 248 of file MuonNSWSegmentFinderTool.cxx.
|
private |
Definition at line 226 of file MuonNSWSegmentFinderTool.cxx.
|
private |
Definition at line 231 of file MuonNSWSegmentFinderTool.cxx.
| MeasVec Muon::NSWSeed::measurements | ( | ) | const |
Definition at line 213 of file MuonNSWSegmentFinderTool.cxx.
| const Muon::MuonClusterOnTrack * Muon::NSWSeed::newCalibClust | ( | std::unique_ptr< const Muon::MuonClusterOnTrack > | new_clust | ) |
Adds a calibrated cluster to the garbage collection.
Definition at line 245 of file MuonNSWSegmentFinderTool.cxx.
| NSWSeed::SeedOR Muon::NSWSeed::overlap | ( | const NSWSeed & | other | ) | const |
Definition at line 196 of file MuonNSWSegmentFinderTool.cxx.
|
inline |
|
inline |
|
private |
|
private |
|
private |
Seed direction.
Definition at line 115 of file MuonNSWSegmentFinderTool.h.
|
private |
|
private |
|
private |
Definition at line 103 of file MuonNSWSegmentFinderTool.h.
|
private |
|
private |
Starting position of the seed.
Definition at line 113 of file MuonNSWSegmentFinderTool.h.
|
private |
|
private |