CbmRoot
|
Container for internal data, processed on a single time window. More...
#include <CaWindowData.h>
Public Member Functions | |
WindowData ()=default | |
Constructor. | |
~WindowData ()=default | |
Destructor. | |
ca::Grid & | Grid (int iStation) |
Gets grid for station index. | |
const ca::Grid & | Grid (int iStation) const |
Gets grid for station index. | |
ca::Hit & | Hit (int iHit) |
Gets hit by index. | |
const ca::Hit & | Hit (int iHit) const |
Gets hit by index. | |
Vector< ca::Hit > & | Hits () |
Gets hit vector. | |
const Vector< ca::Hit > & | Hits () const |
Gets hit vector. | |
uint8_t | IsHitSuppressed (int iHit) const |
Gets hit suppression flag. | |
void | ResetHitData (int nHits) |
Resets hit data. | |
void | ResetHitSuppressionFlags () |
Reset suppressed hit flags. | |
void | SuppressHit (int iHit) |
Set hit suppression flag. | |
HitIndex_t & | HitStartIndexOnStation (int iStation) |
Index of the first hit on the station. | |
unsigned char | IsHitKeyUsed (HitKeyIndex_t iKey) const |
Hit key flag: if this hit or cluster was already used. | |
unsigned char & | IsHitKeyUsed (HitKeyIndex_t iKey) |
Hit key flag: if this hit or cluster was already used. | |
Vector< unsigned char > & | HitKeyFlags () |
Access to the hit key flags container. | |
HitIndex_t | HitStartIndexOnStation (int iStation) const |
Index of the first hit on the station. | |
HitIndex_t & | NofHitsOnStation (int iStation) |
Number of hits on station. | |
HitIndex_t | NofHitsOnStation (int iStation) const |
Number of hits on station. | |
Vector< HitIndex_t > & | RecoHitIndices () |
Accesses indices of hits, used by reconstructed tracks. | |
const Vector< HitIndex_t > & | RecoHitIndices () const |
Accesses indices of hits. | |
HitIndex_t & | RecoHitIndex (int iHit) |
Accesses index of hit in the input data. | |
HitIndex_t | RecoHitIndex (int iHit) const |
Accesses index of hit in the input data. | |
Track & | RecoTrack (int iTrack) |
Accesses reconstructed track by index. | |
const Track & | RecoTrack (int iTrack) const |
Accesses reconstructed track by index. | |
Vector< Track > & | RecoTracks () |
Accesses reconstructed track container. | |
const Vector< Track > & | RecoTracks () const |
Accesses reconstructed track container. | |
HitIndex_t | TsHitIndex (int iSt, int iHit) const |
Maps hit index from the time window to the time slice. | |
Vector< HitIndex_t > & | TsHitIndices (int iSt) |
Accesses container of hit index map from the time window to the time slice. | |
const Vector< HitIndex_t > & | TsHitIndices (int iSt) const |
Accesses container of hit index map from the time window to the time slice. | |
void | SetCurrentIteration (const Iteration *ptr) |
Accesses current iteration. | |
const Iteration * | CurrentIteration () const |
Accesses current iteration. | |
kf::FieldValue< fvec > & | TargB () |
Accesses magnetic field in starting point (target or first station) | |
const kf::FieldValue< fvec > & | TargB () const |
Accesses magnetic field in starting point (target or first station) | |
kf::MeasurementXy< fvec > & | TargetMeasurement () |
Measurement of the target with the uncertainty. | |
const kf::MeasurementXy< fvec > & | TargetMeasurement () const |
Measurement of the target with the uncertainty. | |
Private Attributes | |
std::array< ca::Grid, kMaxNofStations > | fvGrid |
Grid vs. station index. | |
Vector< ca::Hit > | fvHits {"WindowData::fHits"} |
Hits of the current time window. | |
Vector< unsigned char > | fvbHitKeyFlags {"WindowData::fvbHitKeyFlags"} |
List of used hit keys. | |
Vector< unsigned char > | fvbHitSuppressed {"WindowData::fvbHitSuppressed"} |
Flag, if the hit is suppressed for tracking. | |
std::array< HitIndex_t, kMaxNofStations+1 > | fvHitStartIndexOnStation = {0} |
First hit index of the station. | |
std::array< HitIndex_t, kMaxNofStations+1 > | fvNofHitsOnStation = {0} |
Number of hits on the station. | |
Vector< Track > | fvRecoTracks {"WindowData::fvRecoTracks"} |
Sample of reconstructed tracks. | |
Vector< HitIndex_t > | fvRecoHitIndices {"WindowData::fvRecoHitIndices"} |
Sample of reconstructed hit indices. | |
std::array< Vector< HitIndex_t >, kMaxNofStations > | fvTsHitIndices {"WindowData::fvFullDSHitIndex"} |
Map of hit indices from the time window to the time slice. | |
const Iteration * | fpCurrentIteration = nullptr |
Current track-finder iteration. | |
kf::FieldValue< fvec > | fTargB {} |
field in the target point (modifiable, do not touch!!) | |
kf::MeasurementXy< fvec > | fTargetMeasurement {} |
target constraint | |
Static Private Attributes | |
static constexpr int | kMaxNofStations = constants::size::MaxNstations |
Alias to max number of stations. | |
Container for internal data, processed on a single time window.
Definition at line 26 of file CaWindowData.h.
|
default |
Constructor.
|
default |
Destructor.
|
inline |
Accesses current iteration.
Definition at line 150 of file CaWindowData.h.
References fpCurrentIteration.
Referenced by cbm::algo::ca::TrackFinderWindow::CAFindTrack(), cbm::algo::ca::TrackFinderWindow::checkTripletMatch(), cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::TrackFinderWindow::ConstructTriplets(), cbm::algo::ca::TrackFinderWindow::CreateTrackCandidates(), cbm::algo::ca::TrackFinderWindow::CreateTracks(), cbm::algo::ca::TripletConstructor::CreateTripletsForHit(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::TrackExtender::FindMoreHits(), cbm::algo::ca::TripletConstructor::FindTripletHits(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::ca::TrackFinderWindow::SearchNeighbors(), cbm::algo::ca::TrackFinderWindow::SelectTracks(), and cbm::algo::ca::TripletConstructor::SelectTriplets().
|
inline |
Gets grid for station index.
iStation | Index of the tracking station |
Definition at line 36 of file CaWindowData.h.
References fvGrid.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::TrackFinderWindow::ConstructTriplets(), cbm::algo::ca::TrackExtender::FindMoreHits(), cbm::algo::ca::TrackFinderWindow::PrepareCAIteration(), and cbm::algo::ca::TrackFinderWindow::PrepareGrid().
|
inline |
Gets grid for station index.
iStation | Index of the tracking station |
Definition at line 40 of file CaWindowData.h.
References fvGrid.
|
inline |
Gets hit by index.
iHit | Hit index |
Definition at line 44 of file CaWindowData.h.
References fvHits.
Referenced by cbm::algo::ca::TrackFinderWindow::CAFindTrack(), cbm::algo::ca::TrackFinderWindow::CaTrackFinderSlice(), cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::TrackFinderWindow::CreateTrackCandidates(), cbm::algo::ca::TripletConstructor::CreateTripletsForHit(), cbm::algo::ca::TrackFinderWindow::DoCompetitionLoop(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::TrackExtender::FindMoreHits(), cbm::algo::ca::TripletConstructor::FindTripletHits(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::ca::TrackExtender::FitBranchFast(), cbm::algo::ca::TrackFinderWindow::ReadWindowData(), and cbm::algo::ca::TrackFinderWindow::SelectTracks().
|
inline |
Gets hit by index.
iHit | Hit index |
Definition at line 48 of file CaWindowData.h.
References fvHits.
|
inline |
Access to the hit key flags container.
Definition at line 86 of file CaWindowData.h.
References fvbHitKeyFlags.
Referenced by cbm::algo::ca::TrackFinderWindow::PrepareCAIteration(), and cbm::algo::ca::TrackFinderWindow::PrepareGrid().
Gets hit vector.
Definition at line 51 of file CaWindowData.h.
References fvHits.
Referenced by cbm::algo::ca::TrackFinderWindow::CaTrackFinderSlice(), cbm::algo::ca::TrackFinderWindow::ConstructTriplets(), cbm::algo::ca::TrackFinderWindow::CreateTrackCandidates(), cbm::algo::ca::TrackFinderWindow::PrepareCAIteration(), and cbm::algo::ca::TrackFinderWindow::PrepareGrid().
|
inline |
Index of the first hit on the station.
iStation | Index of the tracking station |
Definition at line 72 of file CaWindowData.h.
References fvHitStartIndexOnStation.
Referenced by cbm::algo::ca::TrackFinderWindow::PrepareGrid(), cbm::algo::ca::TrackFinderWindow::ReadWindowData(), and cbm::algo::ca::TripletConstructor::SelectTriplets().
|
inline |
Index of the first hit on the station.
iStation | Index of the tracking station |
Definition at line 90 of file CaWindowData.h.
References fvHitStartIndexOnStation.
|
inline |
Hit key flag: if this hit or cluster was already used.
iKey | Index of the key (index of the hit or the cluster) |
Definition at line 83 of file CaWindowData.h.
References fvbHitKeyFlags.
|
inline |
Hit key flag: if this hit or cluster was already used.
iKey | Index of the key (index of the hit or the cluster) |
Definition at line 79 of file CaWindowData.h.
References fvbHitKeyFlags.
Referenced by cbm::algo::ca::TrackFinderWindow::CAFindTrack(), cbm::algo::ca::TrackFinderWindow::CaTrackFinderSlice(), cbm::algo::ca::TrackFinderWindow::CreateTrackCandidates(), cbm::algo::ca::TrackExtender::FindMoreHits(), and cbm::algo::ca::TrackFinderWindow::SelectTracks().
|
inline |
Gets hit suppression flag.
iHit | Hit index |
Definition at line 58 of file CaWindowData.h.
References fvbHitSuppressed.
Referenced by cbm::algo::ca::TrackFinderWindow::CaTrackFinderSlice(), cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::TrackExtender::FindMoreHits(), and cbm::algo::ca::TripletConstructor::FindTripletHits().
|
inline |
Number of hits on station.
iStation | Index of the tracking station |
Definition at line 97 of file CaWindowData.h.
References fvNofHitsOnStation.
Referenced by cbm::algo::ca::TrackFinderWindow::PrepareGrid(), and cbm::algo::ca::TrackFinderWindow::ReadWindowData().
|
inline |
Number of hits on station.
iStation | Index of the tracking station |
Definition at line 101 of file CaWindowData.h.
References fvNofHitsOnStation.
|
inline |
Accesses index of hit in the input data.
iHit | Index of reconstructed hit, used in reconstructed tracks |
Definition at line 112 of file CaWindowData.h.
References fvRecoHitIndices.
Referenced by cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Accesses index of hit in the input data.
iHit | Index of reconstructed hit, used in reconstructed tracks |
Definition at line 117 of file CaWindowData.h.
References fvRecoHitIndices.
|
inline |
Accesses indices of hits, used by reconstructed tracks.
Definition at line 104 of file CaWindowData.h.
References fvRecoHitIndices.
Referenced by cbm::algo::ca::CloneMerger::Exec(), cbm::algo::ca::TrackFinderWindow::ReadWindowData(), and cbm::algo::ca::TrackFinderWindow::SelectTracks().
|
inline |
Accesses indices of hits.
Definition at line 107 of file CaWindowData.h.
References fvRecoHitIndices.
|
inline |
Accesses reconstructed track by index.
iTrack | Track index |
Definition at line 121 of file CaWindowData.h.
References fvRecoTracks.
Referenced by cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Accesses reconstructed track by index.
iTrack | Track index |
Definition at line 125 of file CaWindowData.h.
References fvRecoTracks.
Accesses reconstructed track container.
Definition at line 128 of file CaWindowData.h.
References fvRecoTracks.
Referenced by cbm::algo::ca::CloneMerger::Exec(), cbm::algo::ca::TrackFitter::FitCaTracks(), cbm::algo::ca::TrackFinderWindow::ReadWindowData(), and cbm::algo::ca::TrackFinderWindow::SelectTracks().
Accesses reconstructed track container.
Definition at line 131 of file CaWindowData.h.
References fvRecoTracks.
void WindowData::ResetHitData | ( | int | nHits | ) |
Resets hit data.
nHits | Number of hits in the sample |
Definition at line 16 of file CaWindowData.cxx.
References fvbHitSuppressed, fvHits, and cbm::algo::ca::Vector< T >::reset().
Referenced by cbm::algo::ca::TrackFinderWindow::ReadWindowData().
|
inline |
Reset suppressed hit flags.
Definition at line 65 of file CaWindowData.h.
References fvbHitSuppressed, fvHits, and cbm::algo::ca::Vector< T >::reset().
Referenced by cbm::algo::ca::TrackFinderWindow::PrepareCAIteration().
|
inline |
Accesses current iteration.
Definition at line 147 of file CaWindowData.h.
References fpCurrentIteration.
Referenced by cbm::algo::ca::TrackFinderWindow::PrepareCAIteration().
|
inline |
Set hit suppression flag.
Definition at line 68 of file CaWindowData.h.
References fvbHitSuppressed.
Referenced by cbm::algo::ca::TripletConstructor::FindDoublets().
|
inline |
Accesses magnetic field in starting point (target or first station)
Definition at line 153 of file CaWindowData.h.
References fTargB.
Referenced by cbm::algo::ca::TripletConstructor::CreateTripletsForHit(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::ca::TrackFinderWindow::PrepareCAIteration(), and cbm::algo::ca::TripletConstructor::TripletConstructor().
|
inline |
Accesses magnetic field in starting point (target or first station)
Definition at line 156 of file CaWindowData.h.
References fTargB.
|
inline |
Measurement of the target with the uncertainty.
Definition at line 159 of file CaWindowData.h.
References fTargetMeasurement.
Referenced by cbm::algo::ca::TripletConstructor::CreateTripletsForHit(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::ca::TrackFitter::FitCaTracks(), and cbm::algo::ca::TrackFinderWindow::PrepareCAIteration().
|
inline |
Measurement of the target with the uncertainty.
Definition at line 162 of file CaWindowData.h.
References fTargetMeasurement.
|
inline |
Maps hit index from the time window to the time slice.
iSt | Index of tracking station |
iHit | Index of hit in the window |
Definition at line 136 of file CaWindowData.h.
References fvTsHitIndices.
Referenced by cbm::algo::ca::TrackFinderWindow::PrepareGrid(), and cbm::algo::ca::TrackFinderWindow::ReadWindowData().
|
inline |
Accesses container of hit index map from the time window to the time slice.
iSt | Index of tracking station |
Definition at line 140 of file CaWindowData.h.
References fvTsHitIndices.
Referenced by cbm::algo::ca::TrackFinderWindow::ConstructTriplets(), cbm::algo::ca::TrackFinderWindow::PrepareGrid(), and cbm::algo::ca::TrackFinderWindow::ReadWindowData().
|
inline |
Accesses container of hit index map from the time window to the time slice.
iSt | Index of tracking station |
Definition at line 144 of file CaWindowData.h.
References fvTsHitIndices.
|
private |
Current track-finder iteration.
Definition at line 199 of file CaWindowData.h.
Referenced by CurrentIteration(), and SetCurrentIteration().
|
private |
field in the target point (modifiable, do not touch!!)
Definition at line 201 of file CaWindowData.h.
|
private |
target constraint
Definition at line 202 of file CaWindowData.h.
Referenced by TargetMeasurement(), and TargetMeasurement().
|
private |
List of used hit keys.
Definition at line 178 of file CaWindowData.h.
Referenced by HitKeyFlags(), IsHitKeyUsed(), and IsHitKeyUsed().
|
private |
Flag, if the hit is suppressed for tracking.
Definition at line 181 of file CaWindowData.h.
Referenced by IsHitSuppressed(), ResetHitData(), ResetHitSuppressionFlags(), and SuppressHit().
|
private |
Grid vs. station index.
Definition at line 168 of file CaWindowData.h.
Hits of the current time window.
It is a portion of fInputData to process in the current time window hit.Id is replaced by the hit index in fInputData
Definition at line 174 of file CaWindowData.h.
Referenced by Hit(), Hit(), Hits(), Hits(), ResetHitData(), and ResetHitSuppressionFlags().
|
private |
First hit index of the station.
Definition at line 184 of file CaWindowData.h.
Referenced by HitStartIndexOnStation(), and HitStartIndexOnStation().
|
private |
Number of hits on the station.
Definition at line 187 of file CaWindowData.h.
Referenced by NofHitsOnStation(), and NofHitsOnStation().
|
private |
Sample of reconstructed hit indices.
Definition at line 193 of file CaWindowData.h.
Referenced by RecoHitIndex(), RecoHitIndex(), RecoHitIndices(), and RecoHitIndices().
Sample of reconstructed tracks.
Definition at line 190 of file CaWindowData.h.
Referenced by RecoTrack(), RecoTrack(), RecoTracks(), and RecoTracks().
|
private |
Map of hit indices from the time window to the time slice.
Definition at line 196 of file CaWindowData.h.
Referenced by TsHitIndex(), TsHitIndices(), and TsHitIndices().
|
staticconstexprprivate |
Alias to max number of stations.
Definition at line 165 of file CaWindowData.h.