MarlinTrk  02.08
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
MarlinTrk::MarlinAidaTTTrack Class Reference

#include <MarlinAidaTTTrack.h>

+ Inheritance diagram for MarlinTrk::MarlinAidaTTTrack:

Public Member Functions

 MarlinAidaTTTrack (MarlinAidaTT *aidaTT)
 
 ~MarlinAidaTTTrack ()
 
- Public Member Functions inherited from MarlinTrk::IMarlinTrack
virtual ~IMarlinTrack ()
 default d'tor More...
 

Protected Member Functions

aidaTT::trackParameters createPreFit (aidaTT::trackParameters &tp)
 
void getHitInfo (const EVENT::TrackerHit *hit, double *hitpos, std::vector< double > &precision, const aidaTT::ISurface *surf)
 
int getTrackState (const aidaTT::Vector3D &refPoint, int label, IMPL::TrackStateImpl &ts, double &chi2, int &ndf)
 
int myInit ()
 common initialization More...
 

Protected Attributes

MarlinAidaTT_aidaTT =nullptr
 
bool _initialised =false
 used to store whether initial track state has been supplied or created More...
 
bool _smoothed =false
 used to store whether smoothing has been performed More...
 
std::vector< EVENT::TrackerHit * > _lcioHits {}
 
aidaTT::trackParameters _initialTrackParams {}
 
aidaTT::trajectory * _fitTrajectory {}
 
const std::vector< std::pair
< double, const
aidaTT::ISurface * > > * 
_intersections {}
 
std::map< int, int > _indexMap {}
 
double _mass =0.0
 

Private Member Functions

 MarlinAidaTTTrack (const MarlinAidaTTTrack &)
 
MarlinAidaTTTrackoperator= (const MarlinAidaTTTrack &)
 
void setMass (double mass)
 set the mass of the charged particle (GeV) that is used for energy loss and multiple scattering - default value if this method is not called is the pion mass. More...
 
double getMass ()
 return the of the charged particle (GeV) that is used for energy loss and multiple scattering. More...
 
int addHit (EVENT::TrackerHit *hit)
 add hit to track - the hits have to be added ordered in time ( i.e. More...
 
int initialise (bool)
 initialise the fit using the hits added up to this point - the fit direction has to be specified using IMarlinTrack::backward or IMarlinTrack::forward. More...
 
int initialise (const EVENT::TrackState &ts, double, bool)
 initialise the fit with a track state the fit direction has to be specified using IMarlinTrack::backward or IMarlinTrack::forward. More...
 
int fit (double maxChi2Increment=DBL_MAX)
 perform the fit of all current hits, returns error code ( IMarlinTrack::success if no error ) . More...
 
int smooth ()
 this method has no effect for aidaTT/GBL ... More...
 
int smooth (EVENT::TrackerHit *)
 this method has no effect for aidaTT/GBL ... More...
 
int addAndFit (EVENT::TrackerHit *, double &, double)
 this method has no effect for aidaTT/GBL ... More...
 
int testChi2Increment (EVENT::TrackerHit *, double &)
 this method has no effect for aidaTT/GBL ... More...
 
int getTrackState (IMPL::TrackStateImpl &ts, double &chi2, int &ndf)
 get track state, returning TrackState, chi2 and ndf via reference More...
 
int getTrackState (EVENT::TrackerHit *hit, IMPL::TrackStateImpl &ts, double &chi2, int &ndf)
 get track state at measurement associated with the given hit, returning TrackState, chi2 and ndf via reference More...
 
int getHitsInFit (std::vector< std::pair< EVENT::TrackerHit *, double > > &hits)
 get the list of hits included in the fit, together with the chi2 contributions of the hits. More...
 
int getOutliers (std::vector< std::pair< EVENT::TrackerHit *, double > > &)
 this method has no effect for aidaTT/GBL ... More...
 
int getNDF (int &ndf)
 get the current number of degrees of freedom for the fit. More...
 
int getTrackerHitAtPositiveNDF (EVENT::TrackerHit *&trkhit)
 get TrackeHit at which fit became constrained, i.e. More...
 
int propagate (const Vector3D &point, IMPL::TrackStateImpl &ts, double &chi2, int &ndf)
 propagate the fit to the point of closest approach to the given point, returning TrackState, chi2 and ndf via reference More...
 
int propagate (const Vector3D &point, EVENT::TrackerHit *hit, IMPL::TrackStateImpl &ts, double &chi2, int &ndf)
 propagate the fit at the measurement site associated with the given hit, to the point of closest approach to the given point, returning TrackState, chi2 and ndf via reference More...
 
int propagateToLayer (int layerID, IMPL::TrackStateImpl &ts, double &chi2, int &ndf, int &detElementID, int mode=modeClosest)
 propagate the fit to the numbered sensitive layer, returning TrackState, chi2, ndf and integer ID of sensitive detector element via reference More...
 
int propagateToLayer (int layerID, EVENT::TrackerHit *hit, IMPL::TrackStateImpl &ts, double &chi2, int &ndf, int &detElementID, int mode=modeClosest)
 propagate the fit at the measurement site associated with the given hit, to numbered sensitive layer, returning TrackState, chi2, ndf and integer ID of sensitive detector element via reference More...
 
int propagateToDetElement (int detElementID, IMPL::TrackStateImpl &ts, double &chi2, int &ndf, int mode=modeClosest)
 propagate the fit to sensitive detector element, returning TrackState, chi2 and ndf via reference More...
 
int propagateToDetElement (int detEementID, EVENT::TrackerHit *hit, IMPL::TrackStateImpl &ts, double &chi2, int &ndf, int mode=modeClosest)
 propagate the fit at the measurement site associated with the given hit, to sensitive detector element, returning TrackState, chi2 and ndf via reference More...
 
int extrapolate (const Vector3D &point, IMPL::TrackStateImpl &ts, double &chi2, int &ndf)
 extrapolate the fit to the point of closest approach to the given point, returning TrackState, chi2 and ndf via reference More...
 
int extrapolate (const Vector3D &point, EVENT::TrackerHit *hit, IMPL::TrackStateImpl &ts, double &chi2, int &ndf)
 extrapolate the fit at the measurement site associated with the given hit, to the point of closest approach to the given point, returning TrackState, chi2 and ndf via reference More...
 
int extrapolateToLayer (int layerID, IMPL::TrackStateImpl &ts, double &chi2, int &ndf, int &detElementID, int mode=modeClosest)
 extrapolate the fit to numbered sensitive layer, returning TrackState via provided reference More...
 
int extrapolateToLayer (int layerID, EVENT::TrackerHit *hit, IMPL::TrackStateImpl &ts, double &chi2, int &ndf, int &detElementID, int mode=modeClosest)
 extrapolate the fit at the measurement site associated with the given hit, to numbered sensitive layer, returning TrackState, chi2, ndf and integer ID of sensitive detector element via reference More...
 
int extrapolateToDetElement (int detElementID, IMPL::TrackStateImpl &ts, double &chi2, int &ndf, int mode=modeClosest)
 extrapolate the fit to sensitive detector element, returning TrackState, chi2 and ndf via reference More...
 
int extrapolateToDetElement (int detEementID, EVENT::TrackerHit *hit, IMPL::TrackStateImpl &ts, double &chi2, int &ndf, int mode=modeClosest)
 extrapolate the fit at the measurement site associated with the given hit, to sensitive detector element, returning TrackState, chi2 and ndf via reference More...
 
std::string toString ()
 Dump this track to a string for debugging. More...
 
int intersectionWithLayer (int layerID, Vector3D &point, int &detElementID, int mode=modeClosest)
 extrapolate the fit to numbered sensitive layer, returning intersection point in global coordinates and integer ID of the intersected sensitive detector element via reference More...
 
int intersectionWithLayer (int layerID, EVENT::TrackerHit *hit, Vector3D &point, int &detElementID, int mode=modeClosest)
 extrapolate the fit at the measurement site associated with the given hit, to numbered sensitive layer, returning intersection point in global coordinates and integer ID of the intersected sensitive detector element via reference More...
 
int intersectionWithDetElement (int detElementID, Vector3D &point, int mode=modeClosest)
 extrapolate the fit to numbered sensitive detector element, returning intersection point in global coordinates via reference More...
 
int intersectionWithDetElement (int detElementID, EVENT::TrackerHit *hit, Vector3D &point, int mode=modeClosest)
 extrapolate the fit at the measurement site associated with the given hit, to sensitive detector element, returning intersection point in global coordinates via reference More...
 
double toBaseRange (double phi) const
 helper function to restrict the range of the azimuthal angle to ]-pi,pi] More...
 

Additional Inherited Members

- Static Public Attributes inherited from MarlinTrk::IMarlinTrack
static const bool backward = false
 boolean constant for defining backward direction - to be used for intitialise More...
 
static const bool forward = ! IMarlinTrack::backward
 boolean constant for defining backward direction - to be used for intitialise More...
 
static const int modeBackward = - 1
 
static const int modeClosest = 0
 
static const int modeForward = + 1
 
static const int success = 0
 
static const int error = 1
 
static const int bad_intputs = 3
 
static const int no_intersection = 4
 
static const int site_discarded = 5
 
static const int site_fails_chi2_cut = 6
 
static const int all_sites_fail_fit = 7
 

Detailed Description

Definition at line 30 of file MarlinAidaTTTrack.h.

Constructor & Destructor Documentation

MarlinTrk::MarlinAidaTTTrack::MarlinAidaTTTrack ( MarlinAidaTT aidaTT)

Definition at line 54 of file MarlinAidaTTTrack.cc.

MarlinTrk::MarlinAidaTTTrack::~MarlinAidaTTTrack ( )

Definition at line 60 of file MarlinAidaTTTrack.cc.

References _fitTrajectory.

MarlinTrk::MarlinAidaTTTrack::MarlinAidaTTTrack ( const MarlinAidaTTTrack )
private

Member Function Documentation

int MarlinTrk::MarlinAidaTTTrack::addAndFit ( EVENT::TrackerHit ,
double &  ,
double   
)
privatevirtual

this method has no effect for aidaTT/GBL ...

update the current fit using the supplied hit, return code via int. Provides the Chi2 increment to the fit from adding the hit via reference.

Implements MarlinTrk::IMarlinTrack.

Definition at line 165 of file MarlinAidaTTTrack.cc.

References std::endl(), and MarlinTrk::IMarlinTrack::success.

int MarlinTrk::MarlinAidaTTTrack::addHit ( EVENT::TrackerHit hit)
privatevirtual

add hit to track - the hits have to be added ordered in time ( i.e.

typically outgoing ) this order will define the direction of the energy loss used in the fit

Implements MarlinTrk::IMarlinTrack.

Definition at line 70 of file MarlinAidaTTTrack.cc.

References _lcioHits, std::vector< T >::push_back(), and MarlinTrk::IMarlinTrack::success.

aidaTT::trackParameters MarlinTrk::MarlinAidaTTTrack::createPreFit ( aidaTT::trackParameters &  tp)
protected
int MarlinTrk::MarlinAidaTTTrack::extrapolate ( const Vector3D point,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf 
)
privatevirtual

extrapolate the fit to the point of closest approach to the given point, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 518 of file MarlinAidaTTTrack.cc.

References propagate().

int MarlinTrk::MarlinAidaTTTrack::extrapolate ( const Vector3D point,
EVENT::TrackerHit hit,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf 
)
privatevirtual

extrapolate the fit at the measurement site associated with the given hit, to the point of closest approach to the given point, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 523 of file MarlinAidaTTTrack.cc.

References propagate().

int MarlinTrk::MarlinAidaTTTrack::extrapolateToDetElement ( int  detElementID,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf,
int  mode = modeClosest 
)
privatevirtual

extrapolate the fit to sensitive detector element, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 543 of file MarlinAidaTTTrack.cc.

References propagateToDetElement().

int MarlinTrk::MarlinAidaTTTrack::extrapolateToDetElement ( int  detEementID,
EVENT::TrackerHit hit,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf,
int  mode = modeClosest 
)
privatevirtual

extrapolate the fit at the measurement site associated with the given hit, to sensitive detector element, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 549 of file MarlinAidaTTTrack.cc.

References propagateToDetElement().

int MarlinTrk::MarlinAidaTTTrack::extrapolateToLayer ( int  layerID,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf,
int &  detElementID,
int  mode = modeClosest 
)
privatevirtual

extrapolate the fit to numbered sensitive layer, returning TrackState via provided reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 529 of file MarlinAidaTTTrack.cc.

References propagateToLayer().

int MarlinTrk::MarlinAidaTTTrack::extrapolateToLayer ( int  layerID,
EVENT::TrackerHit hit,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf,
int &  detElementID,
int  mode = modeClosest 
)
privatevirtual

extrapolate the fit at the measurement site associated with the given hit, to numbered sensitive layer, returning TrackState, chi2, ndf and integer ID of sensitive detector element via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 535 of file MarlinAidaTTTrack.cc.

References propagateToLayer().

int MarlinTrk::MarlinAidaTTTrack::fit ( double  maxChi2Increment = DBL_MAX)
privatevirtual

perform the fit of all current hits, returns error code ( IMarlinTrack::success if no error ) .

the fit will be performed in the order specified at initialise() wrt the order used in addHit(), i.e. IMarlinTrack::backward implies fitting from the outside to the inside for tracks comming from the IP.

Implements MarlinTrk::IMarlinTrack.

Definition at line 177 of file MarlinAidaTTTrack.cc.

References _aidaTT, _fitTrajectory, MarlinTrk::MarlinAidaTT::_geom, _indexMap, _initialised, _intersections, _lcioHits, MarlinTrk::MarlinAidaTT::_useQMS, std::vector< T >::begin(), MarlinTrk::cellIDString(), std::vector< T >::end(), std::endl(), MarlinTrk::IMarlinTrack::error, getHitInfo(), std::vector< T >::size(), and MarlinTrk::IMarlinTrack::success.

void MarlinTrk::MarlinAidaTTTrack::getHitInfo ( const EVENT::TrackerHit hit,
double *  hitpos,
std::vector< double > &  precision,
const aidaTT::ISurface *  surf 
)
protected
int MarlinTrk::MarlinAidaTTTrack::getHitsInFit ( std::vector< std::pair< EVENT::TrackerHit *, double > > &  hits)
privatevirtual

get the list of hits included in the fit, together with the chi2 contributions of the hits.

Pointers to the hits together with their chi2 contribution will be filled into a vector of pairs consitining of the pointer as the first part of the pair and the chi2 contribution as the second.

Implements MarlinTrk::IMarlinTrack.

Definition at line 482 of file MarlinAidaTTTrack.cc.

References _lcioHits, std::endl(), std::make_pair(), std::vector< T >::size(), and MarlinTrk::IMarlinTrack::success.

double MarlinTrk::MarlinAidaTTTrack::getMass ( )
privatevirtual

return the of the charged particle (GeV) that is used for energy loss and multiple scattering.

Implements MarlinTrk::IMarlinTrack.

Definition at line 67 of file MarlinAidaTTTrack.cc.

References _mass.

int MarlinTrk::MarlinAidaTTTrack::getNDF ( int &  ndf)
privatevirtual

get the current number of degrees of freedom for the fit.

Implements MarlinTrk::IMarlinTrack.

Definition at line 502 of file MarlinAidaTTTrack.cc.

References _fitTrajectory, and MarlinTrk::IMarlinTrack::success.

int MarlinTrk::MarlinAidaTTTrack::getOutliers ( std::vector< std::pair< EVENT::TrackerHit *, double > > &  )
privatevirtual

this method has no effect for aidaTT/GBL ...

get the list of hits which have been rejected by from the fit due to the a chi2 increment greater than threshold, Pointers to the hits together with their chi2 contribution will be filled into a vector of pairs consitining of the pointer as the first part of the pair and the chi2 contribution as the second.

Implements MarlinTrk::IMarlinTrack.

Definition at line 496 of file MarlinAidaTTTrack.cc.

References std::endl(), and MarlinTrk::IMarlinTrack::success.

int MarlinTrk::MarlinAidaTTTrack::getTrackerHitAtPositiveNDF ( EVENT::TrackerHit *&  trkhit)
privatevirtual

get TrackeHit at which fit became constrained, i.e.

ndf >= 0

Implements MarlinTrk::IMarlinTrack.

Definition at line 511 of file MarlinAidaTTTrack.cc.

References _lcioHits, and MarlinTrk::IMarlinTrack::success.

int MarlinTrk::MarlinAidaTTTrack::getTrackState ( IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf 
)
privatevirtual

get track state, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 413 of file MarlinAidaTTTrack.cc.

References _fitTrajectory, IMPL::TrackStateImpl::setLocation(), and MarlinTrk::IMarlinTrack::success.

Referenced by getTrackState(), propagate(), propagateToDetElement(), and propagateToLayer().

int MarlinTrk::MarlinAidaTTTrack::getTrackState ( EVENT::TrackerHit hit,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf 
)
privatevirtual

get track state at measurement associated with the given hit, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 429 of file MarlinAidaTTTrack.cc.

References _indexMap, MarlinTrk::cellIDString(), std::map< K, T >::end(), std::endl(), MarlinTrk::IMarlinTrack::error, std::map< K, T >::find(), EVENT::TrackerHit::getCellID0(), EVENT::TrackerHit::getPosition(), and getTrackState().

int MarlinTrk::MarlinAidaTTTrack::getTrackState ( const aidaTT::Vector3D &  refPoint,
int  label,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf 
)
protected
int MarlinTrk::MarlinAidaTTTrack::initialise ( bool  )
privatevirtual

initialise the fit using the hits added up to this point - the fit direction has to be specified using IMarlinTrack::backward or IMarlinTrack::forward.

this is the order wrt the order used in addHit() that will be used in the fit()

Implements MarlinTrk::IMarlinTrack.

Definition at line 75 of file MarlinAidaTTTrack.cc.

References _initialised, _initialTrackParams, _lcioHits, createPreFit(), std::endl(), MarlinTrk::IMarlinTrack::error, myInit(), and std::vector< T >::size().

Referenced by initialise().

int MarlinTrk::MarlinAidaTTTrack::initialise ( const EVENT::TrackState ts,
double  ,
bool   
)
privatevirtual

initialise the fit with a track state the fit direction has to be specified using IMarlinTrack::backward or IMarlinTrack::forward.

this is the order that will be used in the fit(). it is the users responsibility that the track state is consistent with the order of the hits used in addHit() ( i.e. the direction of energy loss ) Note: the bfield_z is not taken from the argument but from the first hit should consider changing the interface ...

Implements MarlinTrk::IMarlinTrack.

Definition at line 120 of file MarlinAidaTTTrack.cc.

References _initialised, _initialTrackParams, initialise(), and myInit().

int MarlinTrk::MarlinAidaTTTrack::intersectionWithDetElement ( int  detElementID,
Vector3D point,
int  mode = modeClosest 
)
privatevirtual

extrapolate the fit to numbered sensitive detector element, returning intersection point in global coordinates via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 743 of file MarlinAidaTTTrack.cc.

References _fitTrajectory, _indexMap, MarlinTrk::cellIDString(), std::map< K, T >::end(), std::endl(), MarlinTrk::IMarlinTrack::error, std::map< K, T >::find(), position, and MarlinTrk::IMarlinTrack::success.

Referenced by intersectionWithDetElement(), and intersectionWithLayer().

int MarlinTrk::MarlinAidaTTTrack::intersectionWithDetElement ( int  detElementID,
EVENT::TrackerHit hit,
Vector3D point,
int  mode = modeClosest 
)
privatevirtual

extrapolate the fit at the measurement site associated with the given hit, to sensitive detector element, returning intersection point in global coordinates via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 776 of file MarlinAidaTTTrack.cc.

References intersectionWithDetElement().

int MarlinTrk::MarlinAidaTTTrack::intersectionWithLayer ( int  layerID,
Vector3D point,
int &  detElementID,
int  mode = modeClosest 
)
privatevirtual

extrapolate the fit to numbered sensitive layer, returning intersection point in global coordinates and integer ID of the intersected sensitive detector element via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 782 of file MarlinAidaTTTrack.cc.

References _intersections, std::vector< T >::begin(), MarlinTrk::cellIDString(), std::vector< T >::end(), std::endl(), MarlinTrk::IMarlinTrack::error, intersectionWithDetElement(), and UTIL::BitField64::reset().

Referenced by intersectionWithLayer().

int MarlinTrk::MarlinAidaTTTrack::intersectionWithLayer ( int  layerID,
EVENT::TrackerHit hit,
Vector3D point,
int &  detElementID,
int  mode = modeClosest 
)
privatevirtual

extrapolate the fit at the measurement site associated with the given hit, to numbered sensitive layer, returning intersection point in global coordinates and integer ID of the intersected sensitive detector element via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 818 of file MarlinAidaTTTrack.cc.

References intersectionWithLayer().

int MarlinTrk::MarlinAidaTTTrack::myInit ( )
protected
MarlinAidaTTTrack& MarlinTrk::MarlinAidaTTTrack::operator= ( const MarlinAidaTTTrack )
private
int MarlinTrk::MarlinAidaTTTrack::propagate ( const Vector3D point,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf 
)
privatevirtual

propagate the fit to the point of closest approach to the given point, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 556 of file MarlinAidaTTTrack.cc.

References _fitTrajectory, getTrackState(), dd4hep::rec::Vector3D::r2(), and std::vector< T >::size().

Referenced by extrapolate(), and propagate().

int MarlinTrk::MarlinAidaTTTrack::propagate ( const Vector3D point,
EVENT::TrackerHit hit,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf 
)
privatevirtual

propagate the fit at the measurement site associated with the given hit, to the point of closest approach to the given point, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 613 of file MarlinAidaTTTrack.cc.

References propagate().

int MarlinTrk::MarlinAidaTTTrack::propagateToDetElement ( int  detElementID,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf,
int  mode = modeClosest 
)
privatevirtual

propagate the fit to sensitive detector element, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 703 of file MarlinAidaTTTrack.cc.

References _fitTrajectory, _indexMap, MarlinTrk::cellIDString(), std::map< K, T >::end(), std::endl(), MarlinTrk::IMarlinTrack::error, std::map< K, T >::find(), getTrackState(), and position.

Referenced by extrapolateToDetElement(), and propagateToDetElement().

int MarlinTrk::MarlinAidaTTTrack::propagateToDetElement ( int  detEementID,
EVENT::TrackerHit hit,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf,
int  mode = modeClosest 
)
privatevirtual

propagate the fit at the measurement site associated with the given hit, to sensitive detector element, returning TrackState, chi2 and ndf via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 737 of file MarlinAidaTTTrack.cc.

References propagateToDetElement().

int MarlinTrk::MarlinAidaTTTrack::propagateToLayer ( int  layerID,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf,
int &  detElementID,
int  mode = modeClosest 
)
privatevirtual

propagate the fit to the numbered sensitive layer, returning TrackState, chi2, ndf and integer ID of sensitive detector element via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 620 of file MarlinAidaTTTrack.cc.

References _fitTrajectory, MarlinTrk::cellIDString(), std::endl(), getTrackState(), MarlinTrk::IMarlinTrack::no_intersection, position, UTIL::BitField64::reset(), and std::vector< T >::size().

Referenced by extrapolateToLayer(), and propagateToLayer().

int MarlinTrk::MarlinAidaTTTrack::propagateToLayer ( int  layerID,
EVENT::TrackerHit hit,
IMPL::TrackStateImpl ts,
double &  chi2,
int &  ndf,
int &  detElementID,
int  mode = modeClosest 
)
privatevirtual

propagate the fit at the measurement site associated with the given hit, to numbered sensitive layer, returning TrackState, chi2, ndf and integer ID of sensitive detector element via reference

Implements MarlinTrk::IMarlinTrack.

Definition at line 696 of file MarlinAidaTTTrack.cc.

References propagateToLayer().

void MarlinTrk::MarlinAidaTTTrack::setMass ( double  mass)
privatevirtual

set the mass of the charged particle (GeV) that is used for energy loss and multiple scattering - default value if this method is not called is the pion mass.

Implements MarlinTrk::IMarlinTrack.

Definition at line 65 of file MarlinAidaTTTrack.cc.

References _mass.

int MarlinTrk::MarlinAidaTTTrack::smooth ( )
privatevirtual

this method has no effect for aidaTT/GBL ...

smooth all track states

Implements MarlinTrk::IMarlinTrack.

Definition at line 397 of file MarlinAidaTTTrack.cc.

References std::endl(), and MarlinTrk::IMarlinTrack::success.

int MarlinTrk::MarlinAidaTTTrack::smooth ( EVENT::TrackerHit )
privatevirtual

this method has no effect for aidaTT/GBL ...

smooth track states from the last filtered hit back to the measurement site associated with the given hit

Implements MarlinTrk::IMarlinTrack.

Definition at line 406 of file MarlinAidaTTTrack.cc.

References std::endl(), and MarlinTrk::IMarlinTrack::success.

int MarlinTrk::MarlinAidaTTTrack::testChi2Increment ( EVENT::TrackerHit ,
double &   
)
privatevirtual

this method has no effect for aidaTT/GBL ...

obtain the chi2 increment which would result in adding the hit to the fit. This method will not alter the current fit, and the hit will not be stored in the list of hits or outliers

Implements MarlinTrk::IMarlinTrack.

Definition at line 171 of file MarlinAidaTTTrack.cc.

References std::endl(), and MarlinTrk::IMarlinTrack::success.

double MarlinTrk::MarlinAidaTTTrack::toBaseRange ( double  phi) const
inlineprivate

helper function to restrict the range of the azimuthal angle to ]-pi,pi]

Definition at line 241 of file MarlinAidaTTTrack.h.

References M_PI.

std::string MarlinTrk::MarlinAidaTTTrack::toString ( )
privatevirtual

Dump this track to a string for debugging.

Reimplemented from MarlinTrk::IMarlinTrack.

Definition at line 823 of file MarlinAidaTTTrack.cc.

Member Data Documentation

MarlinAidaTT* MarlinTrk::MarlinAidaTTTrack::_aidaTT =nullptr
protected

Definition at line 260 of file MarlinAidaTTTrack.h.

Referenced by createPreFit(), fit(), and myInit().

aidaTT::trajectory* MarlinTrk::MarlinAidaTTTrack::_fitTrajectory {}
protected
std::map< int, int > MarlinTrk::MarlinAidaTTTrack::_indexMap {}
protected
bool MarlinTrk::MarlinAidaTTTrack::_initialised =false
protected

used to store whether initial track state has been supplied or created

Definition at line 264 of file MarlinAidaTTTrack.h.

Referenced by fit(), initialise(), and myInit().

aidaTT::trackParameters MarlinTrk::MarlinAidaTTTrack::_initialTrackParams {}
protected

Definition at line 272 of file MarlinAidaTTTrack.h.

Referenced by initialise(), and myInit().

const std::vector<std::pair<double, const aidaTT::ISurface*> >* MarlinTrk::MarlinAidaTTTrack::_intersections {}
protected

Definition at line 276 of file MarlinAidaTTTrack.h.

Referenced by fit(), and intersectionWithLayer().

std::vector< EVENT::TrackerHit*> MarlinTrk::MarlinAidaTTTrack::_lcioHits {}
protected
double MarlinTrk::MarlinAidaTTTrack::_mass =0.0
protected

Definition at line 280 of file MarlinAidaTTTrack.h.

Referenced by createPreFit(), getMass(), myInit(), and setMass().

bool MarlinTrk::MarlinAidaTTTrack::_smoothed =false
protected

used to store whether smoothing has been performed

Definition at line 268 of file MarlinAidaTTTrack.h.


The documentation for this class was generated from the following files: