1 #ifndef RecoTracker_CkfPattern_PrintoutHelper_h 2 #define RecoTracker_CkfPattern_PrintoutHelper_h 22 template<
class Cand
idate>
26 LogDebug(
"PrintoutHelperError")<<
"switching on error printout"<<(showErrors=
true);
29 if (!traj.measurements().empty()){
32 buffer<<
"with: "<<traj.measurements().size()<<
" measurements."<< traj.lostHits() <<
" lost, " << traj.foundHits()<<
" found, " 33 << traj.trailingFoundHits() <<
" trailing, " << traj.cccBadHits() <<
" badCC, " 34 <<
"chi2="<<traj.chiSquared() <<
' ' 35 <<
int(traj.nLoops())<<
" loops\n";
39 buffer <<
"Last [Updated] state\n : "<<tsos<<
"\n";
41 buffer <<
"Last [Updated] state\n x: "<<tsos.
globalPosition()<<
"\n p: "<<tsos.globalMomentum()<<
"\n";
45 buffer <<
"Last [fwdPredicted] state\n : "<<tsos<<
"\n";
47 buffer <<
"Last [fwdPredicted] state\n x: "<<tsos.
globalPosition()<<
"\n p: "<<tsos.globalMomentum()<<
"\n";
51 buffer <<
"Last [Predicted] state\n : "<<tsos<<
"\n";
53 buffer <<
"Last [Predicted] state\n x: "<<tsos.
globalPosition()<<
"\n p: "<<tsos.globalMomentum()<<
"\n";
55 buffer <<
" hit is: "<<(last.
recHit()->isValid()?
"valid":
"invalid")<<
"\n";
56 if (last.
recHit()->isValid()) {
57 buffer <<
"on detId: "<<last.
recHit()->geographicalId().rawId()<<
"\n";
58 buffer <<
"gp: "<<last.
recHit()->globalPosition()<<
"\n";
62 buffer<<
" no measurement. \n";}
67 template<
class collection >
70 buffer <<
"\n____________________________\n";
72 for (
auto const & traj : candidates) {
73 buffer<<ic++<<
"] " << (traj.isValid() ?
"valid " :
"invalid ");
76 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