LDMX Software
TruthTrack.cxx
1#include "Tracking/Event/TruthTrack.h"
2
3#include <iostream>
4
5ClassImp(ldmx::TruthTrack);
6
7namespace ldmx {
8std::ostream& operator<<(std::ostream& output, const TruthTrack& trk) {
9 output << "[ TruthTrack ]:\n"
10 << "(" << trk.getD0() << "," << trk.getZ0() << "," << trk.getPhi()
11 << "," << trk.getTheta() << "," << trk.getQoP() << "," << trk.getT()
12 << ")\n"
13 << "perigee : [" << trk.perigee_[0] << "," << trk.perigee_[1] << ","
14 << trk.perigee_[2] << "]\n"
15 << "position: [" << trk.position_[0] << "," << trk.position_[1] << ","
16 << trk.position_[2] << "]\n"
17 << "momentum: [" << trk.momentum_[0] << "," << trk.momentum_[1] << ","
18 << trk.momentum_[2] << "]\n"
19 << "pdgID:" << trk.pdg_id_ << " trackID:" << trk.track_id_;
20
21 return output;
22}
23} // namespace ldmx