1 #ifndef RecoTracker_CkfPattern_PrintoutHelper_h
2 #define RecoTracker_CkfPattern_PrintoutHelper_h
14 template <
class collection>
16 template <
class Cand
idate>
24 template <
class Cand
idate>
27 LogDebug(
"PrintoutHelperError") <<
"switching on error printout" << (showErrors =
true);
30 if (!traj.measurements().empty()) {
33 buffer <<
"with: " << traj.measurements().size() <<
" measurements." << traj.lostHits() <<
" lost, "
34 << traj.foundHits() <<
" found, " << traj.trailingFoundHits() <<
" trailing, " << traj.cccBadHits()
36 <<
"chi2=" << traj.chiSquared() <<
' ' << int(traj.nLoops()) <<
" loops\n";
40 buffer <<
"Last [Updated] state\n : " << tsos <<
"\n";
42 buffer <<
"Last [Updated] state\n x: " << tsos.
globalPosition() <<
"\n p: " << tsos.globalMomentum() <<
"\n";
46 buffer <<
"Last [fwdPredicted] state\n : " << tsos <<
"\n";
48 buffer <<
"Last [fwdPredicted] state\n x: " << tsos.
globalPosition() <<
"\n p: " << tsos.globalMomentum()
53 buffer <<
"Last [Predicted] state\n : " << tsos <<
"\n";
55 buffer <<
"Last [Predicted] state\n x: " << tsos.
globalPosition() <<
"\n p: " << tsos.globalMomentum() <<
"\n";
57 buffer <<
" hit is: " << (last.
recHit()->isValid() ?
"valid" :
"invalid") <<
"\n";
58 if (last.
recHit()->isValid()) {
59 buffer <<
"on detId: " << last.
recHit()->geographicalId().rawId() <<
"\n";
60 buffer <<
"gp: " << last.
recHit()->globalPosition() <<
"\n";
63 buffer <<
" no measurement. \n";
68 template <
class collection>
71 buffer <<
"\n____________________________\n";
73 for (
auto const& traj : candidates) {
74 buffer << ic++ <<
"] " << (traj.isValid() ?
"valid " :
"invalid ");
77 buffer <<
"\n____________________________\n";
static std::string dumpCandidates(collection &candidates)
TrajectoryStateOnSurface const & predictedState() const
ConstRecHitPointer const & recHit() const
GlobalPoint globalPosition() const
static std::string dumpMeasurement(const TrajectoryMeasurement &tm)
static std::string dumpMeasurements(const std::vector< TrajectoryMeasurement > &v)
static std::string regressionTest(const TrackerGeometry &tracker, std::vector< Trajectory > &unsmoothedResult)
static std::string dumpCandidate(const Candidate &candidate, bool showErrors=false)
TrajectoryStateOnSurface const & forwardPredictedState() const
Access to forward predicted state (from fitter or builder)
TrajectoryStateOnSurface const & updatedState() const