11 #include "CLHEP/GenericFunctions/CumulativeChiSquare.hh"
18 const IInterface*
p ) :
21 declareInterface<Trk::ITrackScoringTool>(
this);
26 if (!
track.trackSummary()) {
42 if (!
track.fitQuality()){
43 msg(MSG::WARNING) <<
"No fit quality! Track info=" <<
track.info().dumpInfo() <<
endmsg;
51 int nWeightedClusters = 2 * pixelhits + scthits;
54 <<
"; trthits: " << trthits <<
"; nWeightedClusters: " << nWeightedClusters <<
endmsg;
59 for (
const auto *
i : *
track.measurementsOnTrack()){
61 double error=sqrt(
i->localCovariance()(0,0));
62 if (
error>1) tubehits++;
69 else hitscore = 10 * (pixelhits + scthits) + trthits;
72 if (
track.fitQuality()->numberDoF() > 0) fitscore = 0.0001*
track.fitQuality()->chiSquared()
73 /
track.fitQuality()->numberDoF();