![]() |
FairShip
|
#include <ActsStrawTracker.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| ActsStrawTracker (const TGeoManager *geometry, TVirtualMagField *field) | |
| ~ActsStrawTracker () | |
| ActsStrawTracker (const ActsStrawTracker &)=delete | |
| ActsStrawTracker & | operator= (const ActsStrawTracker &)=delete |
| void | ClearEvent () |
| Forget the measurements and tracks of the previous event. | |
| Int_t | AddMeasurement (Int_t detectorId, Double_t driftRadius, Double_t resolution) |
| Int_t | FindTracks () |
| Find and fit all tracks among the measurements; returns their number. | |
| Int_t | FitCandidate (const std::vector< Int_t > &measurements) |
| std::vector< Int_t > | GetTrackMeasurements (Int_t track) const |
| Measurements used in the fit of a track. | |
| Int_t | GetNTracks () const |
| RecoTrack | GetTrack (Int_t track) const |
| Bool_t | FitVertex (const std::vector< Int_t > &tracks, RecoVertex &vertex) const |
| Double_t | DistanceToHit (Int_t track, const TVector3 &hit) const |
| Int_t | GetNStraws () const |
| Number of straws found in the geometry. | |
Private Attributes | |
| std::unique_ptr< Impl > | fImpl |
Straw tracker track and vertex fitting with ACTS.
Finds tracks with its own pattern recognition (StrawPatRec), or fits track candidates from another pattern recognition (or MC truth), with the ACTS Kalman filter; the left/right ambiguity of each straw hit is resolved in the fit. Also fits vertices with the Billoir vertex fitter and extrapolates fitted tracks to arbitrary planes. All inputs and outputs are in the SHiP frame (cm, GeV); ACTS is an implementation detail.
Usage per event: ClearEvent(), AddMeasurement() for each straw hit, then FindTracks() or FitCandidate() for each candidate, then GetTrack()/FitVertex()/DistanceToHit().
Definition at line 33 of file ActsStrawTracker.h.
| SHiP::ActsStrawTracker::ActsStrawTracker | ( | const TGeoManager * | geometry, |
| TVirtualMagField * | field ) |
Build the straw surfaces from geometry and use field for the fit.
Neither is owned; both must outlive the tracker.
Definition at line 384 of file ActsStrawTracker.cxx.
|
default |
|
delete |
| Int_t SHiP::ActsStrawTracker::AddMeasurement | ( | Int_t | detectorId, |
| Double_t | driftRadius, | ||
| Double_t | resolution ) |
Add a straw measurement and return its index.
driftRadius is the (unsigned) drift distance in cm and resolution its uncertainty. Returns -1 if the detector ID does not belong to a straw.
Definition at line 400 of file ActsStrawTracker.cxx.
| void SHiP::ActsStrawTracker::ClearEvent | ( | ) |
Forget the measurements and tracks of the previous event.
Definition at line 394 of file ActsStrawTracker.cxx.
| Double_t SHiP::ActsStrawTracker::DistanceToHit | ( | Int_t | track, |
| const TVector3 & | hit ) const |
Distance in cm between a hit and a fitted track at the plane of constant z through the hit, or -1 if the extrapolation fails
Definition at line 810 of file ActsStrawTracker.cxx.
| Int_t SHiP::ActsStrawTracker::FindTracks | ( | ) |
Find and fit all tracks among the measurements; returns their number.
Definition at line 584 of file ActsStrawTracker.cxx.
| Int_t SHiP::ActsStrawTracker::FitCandidate | ( | const std::vector< Int_t > & | measurements | ) |
Fit the measurements of one track candidate (indices returned by AddMeasurement), and return the index of the fitted track, or -1 if the candidate cannot be fitted. Measurements that do not fit the track are dropped.
Definition at line 652 of file ActsStrawTracker.cxx.
| Bool_t SHiP::ActsStrawTracker::FitVertex | ( | const std::vector< Int_t > & | tracks, |
| RecoVertex & | vertex ) const |
Fit a vertex to the given tracks (track indices).
Track IDs in vertex are the indices passed in. Returns false if the fit fails.
Definition at line 708 of file ActsStrawTracker.cxx.
| Int_t SHiP::ActsStrawTracker::GetNStraws | ( | ) | const |
Number of straws found in the geometry.
Definition at line 827 of file ActsStrawTracker.cxx.
| Int_t SHiP::ActsStrawTracker::GetNTracks | ( | ) | const |
Definition at line 667 of file ActsStrawTracker.cxx.
| RecoTrack SHiP::ActsStrawTracker::GetTrack | ( | Int_t | track | ) | const |
Definition at line 671 of file ActsStrawTracker.cxx.
| std::vector< Int_t > SHiP::ActsStrawTracker::GetTrackMeasurements | ( | Int_t | track | ) | const |
Measurements used in the fit of a track.
Definition at line 659 of file ActsStrawTracker.cxx.
|
delete |
|
private |
Definition at line 84 of file ActsStrawTracker.h.