CbmRoot
|
ca::Hit class describes a generic hit for the CA tracker More...
#include <CaHit.h>
Public Member Functions | |
Hit ()=default | |
Default constructor. | |
bool | Check () const |
Checks, if the hit is defined. | |
void | SetFrontKey (HitKeyIndex_t key) |
Set the front key index. | |
void | SetBackKey (HitKeyIndex_t key) |
Set the back key index. | |
void | SetX (fscal x) |
Set the X coordinate. | |
void | SetY (fscal y) |
Set the Y coordinate. | |
void | SetZ (fscal z) |
Set the Z coordinate. | |
void | SetT (fscal t) |
Set the time. | |
void | SetDx2 (fscal dx2) |
Set the uncertainty of X coordinate. | |
void | SetDy2 (fscal dy2) |
Set the uncertainty of Y coordinate. | |
void | SetDxy (fscal dxy) |
Set the X/Y covariance. | |
void | SetDt2 (fscal dt2) |
Set the uncertainty of time. | |
void | SetRangeX (fscal rangeX) |
Set the +/- range of uncertainty of X coordinate. | |
void | SetRangeY (fscal rangeY) |
Set the +/- range of uncertainty of Y coordinate. | |
void | SetRangeT (fscal rangeT) |
Set the +/- range of uncertainty of time. | |
void | SetId (HitIndex_t id) |
Set the hit id. | |
void | SetStation (int station) |
Set the station index. | |
HitKeyIndex_t | FrontKey () const |
Get the front key index. | |
HitKeyIndex_t | BackKey () const |
Get the back key index. | |
fscal | X () const |
Get the X coordinate. | |
fscal | Y () const |
Get the Y coordinate. | |
fscal | Z () const |
Get the Z coordinate. | |
fscal | T () const |
Get the time. | |
fscal | dX2 () const |
Get the uncertainty of X coordinate. | |
fscal | dY2 () const |
Get the uncertainty of Y coordinate. | |
fscal | dXY () const |
Get the X/Y covariance. | |
fscal | dT2 () const |
Get the uncertainty of time. | |
fscal | RangeX () const |
Get the +/- range of uncertainty of X coordinate. | |
fscal | RangeY () const |
Get the +/- range of uncertainty of Y coordinate. | |
fscal | RangeT () const |
Get the +/- range of uncertainty of time. | |
HitIndex_t | Id () const |
Get the hit id. | |
int | Station () const |
Get the station index. | |
std::string | ToString () const |
Simple string representation of the hit class. | |
std::string | ToString (int verbose, bool bHeader) const |
String representation of the hit class. | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Serialization method, used to save ca::Hit objects into binary or text file in a defined order. | |
Private Attributes | |
HitKeyIndex_t | fFrontKey {0} |
front hit key index | |
HitKeyIndex_t | fBackKey {0} |
back hit key index | |
fscal | fX {0.} |
measured X coordinate [cm] | |
fscal | fY {0.} |
measured Y coordinate [cm] | |
fscal | fZ {0.} |
fixed Z coordinate [cm] | |
fscal | fT {0.} |
measured time [ns] | |
fscal | fDx2 {0.} |
rms^2 of uncertainty of X coordinate [cm2] | |
fscal | fDy2 {0.} |
rms^2 of uncertainty of Y coordinate [cm2] | |
fscal | fDxy {0.} |
X/Y covariance [cm2]. | |
fscal | fDt2 {0.} |
measured uncertainty of time [ns2] | |
fscal | fRangeX {0.} |
+/- range of uncertainty of X coordinate [cm] | |
fscal | fRangeY {0.} |
+/- range of uncertainty of Y coordinate [cm] | |
fscal | fRangeT {0.} |
+/- range of uncertainty of time [ns] | |
HitIndex_t | fId {0} |
id of the hit | |
int | fStation {-1} |
index of station in the active stations array | |
Friends | |
class | boost::serialization::access |
|
default |
Default constructor.
|
inline |
Get the back key index.
Definition at line 99 of file CaHit.h.
References fBackKey.
Referenced by cbm::algo::ca::TrackFinderWindow::CaTrackFinderSlice(), cbm::algo::ca::Qa::FillHitDistributionsForHitSet(), cbm::algo::ca::TrackExtender::FindMoreHits(), cbm::algo::TrackingChain::ReadHits(), cbm::algo::ca::Grid::RemoveUsedHits(), cbm::algo::ca::TrackFinderWindow::SelectTracks(), and cbm::algo::ca::Grid::StoreHits().
|
inline |
|
inline |
Get the uncertainty of time.
Definition at line 123 of file CaHit.h.
References fDt2.
Referenced by cbm::algo::ca::utils::FilterHit(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::ca::TrackExtender::FitBranchFast(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Get the uncertainty of X coordinate.
Definition at line 114 of file CaHit.h.
References fDx2.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::utils::FilterHit(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::ca::TrackExtender::FitBranchFast(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Get the X/Y covariance.
Definition at line 120 of file CaHit.h.
References fDxy.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::utils::FilterHit(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::ca::TrackExtender::FitBranchFast(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Get the uncertainty of Y coordinate.
Definition at line 117 of file CaHit.h.
References fDy2.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::utils::FilterHit(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::ca::TrackExtender::FitBranchFast(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Get the front key index.
getters
Definition at line 96 of file CaHit.h.
References fFrontKey.
Referenced by cbm::algo::ca::TrackFinderWindow::CaTrackFinderSlice(), cbm::algo::ca::Qa::FillHitDistributionsForHitSet(), cbm::algo::ca::TrackExtender::FindMoreHits(), cbm::algo::TrackingChain::ReadHits(), cbm::algo::ca::Grid::RemoveUsedHits(), cbm::algo::ca::TrackFinderWindow::SelectTracks(), and cbm::algo::ca::Grid::StoreHits().
|
inline |
Get the hit id.
Definition at line 135 of file CaHit.h.
References fId.
Referenced by cbm::algo::ca::TrackFinderWindow::CreateTrackCandidates(), cbm::algo::ca::TripletConstructor::FindTripletHits(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::TrackingChain::PrepareOutput(), CbmL1::Reconstruct(), and cbm::algo::ca::TrackFinderWindow::SelectTracks().
|
inline |
Get the +/- range of uncertainty of time.
Definition at line 132 of file CaHit.h.
References fRangeT.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::TrackExtender::FindMoreHits(), cbm::algo::ca::GridEntry::Set(), and cbm::algo::ca::Grid::StoreHits().
|
inline |
Get the +/- range of uncertainty of X coordinate.
Definition at line 126 of file CaHit.h.
References fRangeX.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::GridEntry::Set(), and cbm::algo::ca::Grid::StoreHits().
|
inline |
Get the +/- range of uncertainty of Y coordinate.
Definition at line 129 of file CaHit.h.
References fRangeY.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::GridEntry::Set(), and cbm::algo::ca::Grid::StoreHits().
|
inlineprivate |
|
inline |
Set the back key index.
Definition at line 51 of file CaHit.h.
References fBackKey.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the uncertainty of time.
Definition at line 75 of file CaHit.h.
References fDt2.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the uncertainty of X coordinate.
Definition at line 66 of file CaHit.h.
References fDx2.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the X/Y covariance.
Definition at line 72 of file CaHit.h.
References fDxy.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the uncertainty of Y coordinate.
Definition at line 69 of file CaHit.h.
References fDy2.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the front key index.
setters
Definition at line 48 of file CaHit.h.
References fFrontKey.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the hit id.
Definition at line 87 of file CaHit.h.
References fId.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the +/- range of uncertainty of time.
Definition at line 84 of file CaHit.h.
References fRangeT.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the +/- range of uncertainty of X coordinate.
Definition at line 78 of file CaHit.h.
References fRangeX.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the +/- range of uncertainty of Y coordinate.
Definition at line 81 of file CaHit.h.
References fRangeY.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the station index.
Definition at line 90 of file CaHit.h.
References fStation.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the time.
Definition at line 63 of file CaHit.h.
References fT.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the X coordinate.
Definition at line 54 of file CaHit.h.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the Y coordinate.
Definition at line 57 of file CaHit.h.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Set the Z coordinate.
Definition at line 60 of file CaHit.h.
References fZ.
Referenced by cbm::algo::TrackingChain::ReadHits(), and cbm::ca::TimeSliceReader::StoreHitRecord().
|
inline |
Get the station index.
Definition at line 138 of file CaHit.h.
References fStation.
Referenced by cbm::algo::ca::CloneMerger::Exec(), cbm::algo::ca::Qa::Exec(), cbm::algo::ca::Qa::FillHitDistributionsForHitSet(), cbm::algo::ca::TrackExtender::FindMoreHits(), cbm::algo::ca::TrackExtender::FitBranchFast(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Get the time.
Definition at line 111 of file CaHit.h.
References fT.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::Qa::FillHitDistributionsForHitSet(), cbm::algo::ca::utils::FilterHit(), cbm::algo::ca::TripletConstructor::FindDoublets(), cbm::algo::ca::TrackExtender::FindMoreHits(), cbm::algo::ca::TripletConstructor::FindTriplets(), cbm::algo::ca::TrackExtender::FitBranchFast(), cbm::algo::ca::TrackFitter::FitCaTracks(), cbm::algo::TrackingChain::ReadHits(), and cbm::algo::ca::GridEntry::Set().
std::string Hit::ToString | ( | ) | const |
Simple string representation of the hit class.
Definition at line 17 of file CaHit.cxx.
References fBackKey, fDt2, fDx2, fDxy, fDy2, fFrontKey, fId, fRangeT, fRangeX, fRangeY, fStation, fT, fX, fY, and fZ.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), and cbm::algo::ca::TrackFinderWindow::ReadWindowData().
std::string Hit::ToString | ( | int | verbose, |
bool | bHeader ) const |
|
inline |
Get the X coordinate.
Definition at line 102 of file CaHit.h.
References fX.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::Qa::FillHitDistributionsForHitSet(), cbm::algo::ca::utils::FilterHit(), 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::TrackFitter::FitCaTracks(), cbm::algo::ca::GridEntry::Set(), and cbm::algo::ca::Grid::StoreHits().
|
inline |
Get the Y coordinate.
Definition at line 105 of file CaHit.h.
References fY.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::Qa::FillHitDistributionsForHitSet(), cbm::algo::ca::utils::FilterHit(), 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::TrackFitter::FitCaTracks(), cbm::algo::ca::GridEntry::Set(), and cbm::algo::ca::Grid::StoreHits().
|
inline |
Get the Z coordinate.
Definition at line 108 of file CaHit.h.
References fZ.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::Qa::FillHitDistributionsForHitSet(), 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::TrackFitter::FitCaTracks(), and cbm::algo::ca::GridEntry::Set().
|
private |
back hit key index
Definition at line 157 of file CaHit.h.
Referenced by BackKey(), serialize(), SetBackKey(), ToString(), and ToString().
|
private |
measured uncertainty of time [ns2]
Definition at line 166 of file CaHit.h.
Referenced by Check(), dT2(), serialize(), SetDt2(), ToString(), and ToString().
|
private |
rms^2 of uncertainty of X coordinate [cm2]
Definition at line 163 of file CaHit.h.
Referenced by Check(), dX2(), serialize(), SetDx2(), ToString(), and ToString().
|
private |
X/Y covariance [cm2].
Definition at line 165 of file CaHit.h.
Referenced by Check(), dXY(), serialize(), SetDxy(), ToString(), and ToString().
|
private |
rms^2 of uncertainty of Y coordinate [cm2]
Definition at line 164 of file CaHit.h.
Referenced by Check(), dY2(), serialize(), SetDy2(), ToString(), and ToString().
|
private |
front hit key index
data members NOTE: For STS f and b correspond to the indexes of the front and back clusters of the hit in a dataset. For other tracking detectors (MVD, MuCh, TRD, TOF) f == b and corresponds to the index of the hit. Indexes f and b do not intersect between different detector stations.
Definition at line 156 of file CaHit.h.
Referenced by FrontKey(), serialize(), SetFrontKey(), ToString(), and ToString().
|
private |
id of the hit
Definition at line 171 of file CaHit.h.
Referenced by Id(), serialize(), SetId(), ToString(), and ToString().
|
private |
+/- range of uncertainty of time [ns]
Definition at line 169 of file CaHit.h.
Referenced by RangeT(), serialize(), SetRangeT(), ToString(), and ToString().
|
private |
+/- range of uncertainty of X coordinate [cm]
Definition at line 167 of file CaHit.h.
Referenced by RangeX(), serialize(), SetRangeX(), ToString(), and ToString().
|
private |
+/- range of uncertainty of Y coordinate [cm]
Definition at line 168 of file CaHit.h.
Referenced by RangeY(), serialize(), SetRangeY(), ToString(), and ToString().
|
private |
index of station in the active stations array
Definition at line 172 of file CaHit.h.
Referenced by serialize(), SetStation(), Station(), ToString(), and ToString().
|
private |
measured time [ns]
Definition at line 162 of file CaHit.h.
Referenced by Check(), serialize(), SetT(), T(), ToString(), and ToString().
|
private |
measured X coordinate [cm]
Definition at line 159 of file CaHit.h.
Referenced by Check(), serialize(), SetX(), ToString(), ToString(), and X().
|
private |
measured Y coordinate [cm]
Definition at line 160 of file CaHit.h.
Referenced by Check(), serialize(), SetY(), ToString(), ToString(), and Y().
|
private |
fixed Z coordinate [cm]
Definition at line 161 of file CaHit.h.
Referenced by Check(), serialize(), SetZ(), ToString(), ToString(), and Z().