23#include "CLHEP/GenericFunctions/CumulativeChiSquare.hh"
26 ,
const std::string& name
27 ,
const IInterface* parent
30 m_particleCreator(
"Trk::TrackParticleCreatorTool/TrackParticleCreatorTool", this),
37 declareInterface<IInDetAlignTrackSelTool>(
this);
46 "tool to build TrackParticle");
60 <<
" min_pt(CLHEP::GeV)=" <<
m_minPt
65 ATH_MSG_DEBUG(
"InDetAlignTrackSelTool initialize() successful" ) ;
66 return StatusCode::SUCCESS;
72 ATH_MSG_DEBUG(
"InDetAlignTrackSelTool finalize method called" ) ;
73 return StatusCode::SUCCESS;
85 if ( !perigee->covariance()) {
86 ATH_MSG_ERROR(
"No measured perigee parameters assigned to the track" ) ;
105 const Trk::Perigee* perigee = track.perigeeParameters();
107 if (!perigee->covariance()) {
108 ATH_MSG_ERROR(
"No measured perigee parameters assigned to the track" ) ;
124 int nshared=0, nshpix, nshsct;
127 uint8_t iSummaryValue(0);
143 nshared = nshpix + nshsct;
152 int nholes=0, nhpix, nhsct;
155 uint8_t iSummaryValue(0);
171 nholes = nhpix + nhsct;
186 if (fitQual==
nullptr) {
192 Genfun::CumulativeChiSquare probabilityFunction( fitQual->
numberDoF() );
204 int stat=1, nholes, nshared;
205 double mom, pt, chi2prob;
238 <<
" pt (CLHEP::GeV)=" << pt
239 <<
" nshared=" << nshared
240 <<
" nholes=" << nholes
241 <<
" chi2Prob=" << chi2prob
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
double chiSquared() const
returns the of the overall track fit
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee
TrackParticle_v1 TrackParticle
Reference the current persistent version:
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].
@ numberOfSCTHoles
number of SCT holes [unit8_t].