23 buffer <<
v.size() <<
" total measurements\n";
24 std::vector<TrajectoryMeasurement>::const_iterator it =
v.begin();
25 for (; it !=
v.end(); ++it) {
33 buffer <<
v.size() <<
" total measurements\n";
35 for (; it !=
v.rend(); --it) {
44 <<
"estimate: " << tm.
estimate() <<
"\n";
46 buffer <<
"updated state: \n" 50 buffer <<
"forward predicted state: \n" 54 buffer <<
"predicted state: \n" 58 buffer <<
"no valid state\n";
59 buffer <<
"detId: " << tm.
recHit()->geographicalId().rawId();
60 if (tm.
recHit()->isValid()) {
61 buffer <<
"\n hit global x: " << tm.
recHit()->globalPosition()
62 <<
"\n hit global error: " << tm.
recHit()->globalPositionError().matrix()
63 <<
"\n hit local x:" << tm.
recHit()->localPosition() <<
"\n hit local error" 64 << tm.
recHit()->localPositionError();
76 buffer <<
"number of finalTrajectories: " << unsmoothedResult.size() << std::endl;
77 for (std::vector<Trajectory>::const_iterator it = unsmoothedResult.begin(); it != unsmoothedResult.end(); it++) {
78 if (it->lastMeasurement().updatedState().isValid()) {
79 buffer <<
"candidate's n valid and invalid hit, chi2, pt, eta : " << it->foundHits() <<
" , " << it->lostHits()
80 <<
" , " << it->chiSquared() <<
" , " << it->lastMeasurement().updatedState().globalMomentum().perp()
81 <<
" , " << it->lastMeasurement().updatedState().globalMomentum().eta() << std::endl;
82 }
else if (it->lastMeasurement().predictedState().isValid()) {
83 buffer <<
"candidate's n valid and invalid hit, chi2, pt, eta : " << it->foundHits() <<
" , " << it->lostHits()
84 <<
" , " << it->chiSquared() <<
" , " << it->lastMeasurement().predictedState().globalMomentum().perp()
85 <<
" , " << it->lastMeasurement().predictedState().globalMomentum().eta() << std::endl;
87 buffer <<
"candidate with invalid last measurement state!" << std::endl;
89 buffer <<
"=================================================";
90 buffer <<
"=========== Traj in details =====================\n";
91 for (
const auto& it : unsmoothedResult) {
92 for (
const auto&
hit : it.measurements()) {
93 buffer <<
"measurement : " <<
hit.recHit()->geographicalId().rawId() << std::endl;
95 buffer <<
"================\n";
TrajectoryStateOnSurface const & predictedState() const
TrajectoryStateOnSurface const & forwardPredictedState() const
Access to forward predicted state (from fitter or builder)
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)
GlobalPoint globalPosition() const
TrajectoryStateOnSurface const & backwardPredictedState() const
Access to backward predicted state (from smoother)
GlobalVector globalMomentum() const
TrajectoryStateOnSurface const & updatedState() const
const DetLayer * layer() const
ConstRecHitPointer const & recHit() const