![]() |
ATLAS Offline Software
|
Pattern state object storing pattern information during construction. More...
Public Types | |
| using | HitStationPair = std::pair<std::reference_wrapper<const HitPayload>, StIndex> |
Public Member Functions | |
| PatternState (const HitPayload &seed, const StIndex seedStation, const int sectorCoord, const double seedTheta) | |
| Constructor taking the seed information. | |
| PatternState ()=delete | |
| void | addHit (const HitPayload &hit, const StIndex stationHit, const double residual) |
| Add a hit to the pattern and update the internal state. | |
| void | overWriteHit (const HitPayload &oldHit, const HitPayload &newHit, const StIndex station, const double newResidual) |
| Overwrite a hit in the pattern and update the internal state. | |
| HitStationPair | getNthLastHit (const std::size_t n) const |
| Get the nth last inserted hit and the associated station. | |
| bool | isInPattern (const HitPayload &hit, const StIndex station) const |
| Check wheter a hit is present in the pattern. | |
| void | finalizePattern () |
| Finalize the pattern and update its state. | |
| bool | operator== (const PatternState &other) const |
| Equal operator, it checks the hit-per-station map. | |
| void | print (std::ostream &ostr) const |
| Print the pattern candidate and stream operator. | |
Public Attributes | |
| std::unordered_map< StIndex, std::vector< HitPayload > > | hitsPerStation {} |
| Map collection of hits per station. | |
| std::vector< StIndex > | stations {} |
| Pattern hit stations to save the filling order. | |
| BucketPerContainer | bucketsPerContainer {} |
| Map of spacepoint buckets per spacepoint container associated to the pattern. | |
| int | sectorCoord {-1} |
| expanded sector coordinate & average theta & average phi of the pattern | |
| double | theta {0.} |
| double | phi {0.} |
| unsigned | nPrecisionHits {0} |
| Counts of precision measurements / non-precision in bending direction / phi measurements. | |
| unsigned | nBendingTriggerHits {0} |
| unsigned | nPhiHits {0} |
| double | totalResidual {0.} |
| Total residual and last contribution to the residual (needed when replacing a hit) | |
| double | lastResidual {0.} |
| bool | isOverlap {false} |
| Flag to indicate if the pattern is overlapping with another one, used during overlap removal. | |
| unsigned | nInsertedHits {0} |
| Number of inserted hits during one of the two search stages (from seed outward and from seed inward) | |
| unsigned | nMissedLayerHits {0} |
| Number of missed candidate hits in different measurement layers during pattern building. | |
| Acts::CloneablePtr< PatternHitVisualInfo > | visualInfo {nullptr} |
| Pointer to Visual Information for pattern visualization. | |
Friends | |
| std::ostream & | operator<< (std::ostream &ostr, const PatternState &candidate) |
Pattern state object storing pattern information during construction.
Definition at line 124 of file GlobalPatternFinder.h.
| using MuonR4::FastReco::GlobalPatternFinder::PatternState::HitStationPair = std::pair<std::reference_wrapper<const HitPayload>, StIndex> |
Definition at line 151 of file GlobalPatternFinder.h.
| MuonR4::FastReco::GlobalPatternFinder::PatternState::PatternState | ( | const HitPayload & | seed, |
| const StIndex | seedStation, | ||
| const int | sectorCoord, | ||
| const double | seedTheta ) |
Constructor taking the seed information.
| seed | seed hit |
| seedStation | station of the seed hit |
| sectorCoord | expanded sector coordinate |
| seedTheta | global theta of the seed |
Definition at line 630 of file GlobalPatternFinder.cxx.
|
delete |
| void MuonR4::FastReco::GlobalPatternFinder::PatternState::addHit | ( | const HitPayload & | hit, |
| const StIndex | stationHit, | ||
| const double | residual ) |
Add a hit to the pattern and update the internal state.
| hit | hit to be added |
| stationHit | station of the hit |
| residual | residual of the hit |
Increment the number of inserted hits
Reset the number of missed layer hits
Update the hit counts in bending direction
Update the phi hit count and the average phi value
Update the residual
Definition at line 637 of file GlobalPatternFinder.cxx.
| void MuonR4::FastReco::GlobalPatternFinder::PatternState::finalizePattern | ( | ) |
Finalize the pattern and update its state.
Update the bucket map
Update eta
Definition at line 701 of file GlobalPatternFinder.cxx.
| GlobalPatternFinder::PatternState::HitStationPair MuonR4::FastReco::GlobalPatternFinder::PatternState::getNthLastHit | ( | const std::size_t | n | ) | const |
Get the nth last inserted hit and the associated station.
| n | the index of the hit to retrieve |
Definition at line 741 of file GlobalPatternFinder.cxx.
| bool MuonR4::FastReco::GlobalPatternFinder::PatternState::isInPattern | ( | const HitPayload & | hit, |
| const StIndex | station ) const |
Check wheter a hit is present in the pattern.
| hit | hit to be checked |
| station | station of the hit to be checked |
Definition at line 761 of file GlobalPatternFinder.cxx.
| bool MuonR4::FastReco::GlobalPatternFinder::PatternState::operator== | ( | const PatternState & | other | ) | const |
Equal operator, it checks the hit-per-station map.
It'svery expensive and in principle should be avoided
Definition at line 767 of file GlobalPatternFinder.cxx.
| void MuonR4::FastReco::GlobalPatternFinder::PatternState::overWriteHit | ( | const HitPayload & | oldHit, |
| const HitPayload & | newHit, | ||
| const StIndex | station, | ||
| const double | newResidual ) |
Overwrite a hit in the pattern and update the internal state.
| oldHit | hit to be replaced |
| newHit | new hit to replace with |
| station | station of the new hit |
| newResidual | residual of the new hit |
Update the phi hit count and average phi of the pattern
Definition at line 661 of file GlobalPatternFinder.cxx.
| void MuonR4::FastReco::GlobalPatternFinder::PatternState::print | ( | std::ostream & | ostr | ) | const |
Print the pattern candidate and stream operator.
Definition at line 773 of file GlobalPatternFinder.cxx.
|
friend |
Definition at line 194 of file GlobalPatternFinder.h.
| BucketPerContainer MuonR4::FastReco::GlobalPatternFinder::PatternState::bucketsPerContainer {} |
Map of spacepoint buckets per spacepoint container associated to the pattern.
Definition at line 172 of file GlobalPatternFinder.h.
| std::unordered_map<StIndex, std::vector<HitPayload> > MuonR4::FastReco::GlobalPatternFinder::PatternState::hitsPerStation {} |
Map collection of hits per station.
A pattern is determined by the hits belonging to it.
Definition at line 167 of file GlobalPatternFinder.h.
| bool MuonR4::FastReco::GlobalPatternFinder::PatternState::isOverlap {false} |
Flag to indicate if the pattern is overlapping with another one, used during overlap removal.
Definition at line 185 of file GlobalPatternFinder.h.
| double MuonR4::FastReco::GlobalPatternFinder::PatternState::lastResidual {0.} |
Definition at line 183 of file GlobalPatternFinder.h.
| unsigned MuonR4::FastReco::GlobalPatternFinder::PatternState::nBendingTriggerHits {0} |
Definition at line 179 of file GlobalPatternFinder.h.
| unsigned MuonR4::FastReco::GlobalPatternFinder::PatternState::nInsertedHits {0} |
Number of inserted hits during one of the two search stages (from seed outward and from seed inward)
Definition at line 187 of file GlobalPatternFinder.h.
| unsigned MuonR4::FastReco::GlobalPatternFinder::PatternState::nMissedLayerHits {0} |
Number of missed candidate hits in different measurement layers during pattern building.
Definition at line 189 of file GlobalPatternFinder.h.
| unsigned MuonR4::FastReco::GlobalPatternFinder::PatternState::nPhiHits {0} |
Definition at line 180 of file GlobalPatternFinder.h.
| unsigned MuonR4::FastReco::GlobalPatternFinder::PatternState::nPrecisionHits {0} |
Counts of precision measurements / non-precision in bending direction / phi measurements.
Definition at line 178 of file GlobalPatternFinder.h.
| double MuonR4::FastReco::GlobalPatternFinder::PatternState::phi {0.} |
Definition at line 176 of file GlobalPatternFinder.h.
| int MuonR4::FastReco::GlobalPatternFinder::PatternState::sectorCoord {-1} |
expanded sector coordinate & average theta & average phi of the pattern
Definition at line 174 of file GlobalPatternFinder.h.
| std::vector<StIndex> MuonR4::FastReco::GlobalPatternFinder::PatternState::stations {} |
Pattern hit stations to save the filling order.
Stations can be repeated when we invert the search direction (e.g. from seed ourward -> BM BO, then from seed inward BM BI)
Definition at line 170 of file GlobalPatternFinder.h.
| double MuonR4::FastReco::GlobalPatternFinder::PatternState::theta {0.} |
Definition at line 175 of file GlobalPatternFinder.h.
| double MuonR4::FastReco::GlobalPatternFinder::PatternState::totalResidual {0.} |
Total residual and last contribution to the residual (needed when replacing a hit)
Definition at line 182 of file GlobalPatternFinder.h.
| Acts::CloneablePtr<PatternHitVisualInfo> MuonR4::FastReco::GlobalPatternFinder::PatternState::visualInfo {nullptr} |
Pointer to Visual Information for pattern visualization.
Definition at line 191 of file GlobalPatternFinder.h.