File indexing completed on 2025-10-17 08:19:38
0001 #include "TruthVertex_v1.h"
0002
0003 void TruthVertex_v1::identify(std::ostream& os) const
0004 {
0005
0006 os << "---TruthVertex_v1--------------------------------" << std::endl;
0007 os << "vertexid: " << get_id() << std::endl;
0008 os << " t = " << get_t() << " +/- " << get_t_err() << std::endl;
0009 os << " z = " << get_z() << " +/- " << get_z_err() << std::endl;
0010 os << " x = " << get_x() << " +/- " << get_x_err() << std::endl;
0011 os << " y = " << get_y() << " +/- " << get_y_err() << std::endl;
0012 os << "-----------------------------------------------" << std::endl;
0013
0014 }
0015
0016 int TruthVertex_v1::isValid() const
0017 {
0018 return std::isfinite(_z) && std::isfinite(_t);
0019 }