File indexing completed on 2025-12-17 09:20:45
0001
0002
0003
0004
0005
0006
0007
0008 #include "SvtxTrack_FastSim.h"
0009
0010 #include "SvtxTrack.h" // for SvtxTrack::ConstClusterIter, SvtxTrack
0011
0012 #include <climits>
0013 #include <map> // for _Rb_tree_const_iterator
0014 #include <ostream> // for operator<<, basic_ostream, basic_ostream<>::_...
0015
0016 SvtxTrack_FastSim::SvtxTrack_FastSim(const SvtxTrack& source)
0017 {
0018 SvtxTrack_FastSim::CopyFrom(source);
0019 }
0020
0021 void SvtxTrack_FastSim::CopyFrom(const SvtxTrack& source)
0022 {
0023
0024 SvtxTrack_v1::CopyFrom(source);
0025
0026
0027 _truth_track_id = source.get_truth_track_id();
0028 _nmeas = source.get_num_measurements();
0029 }
0030
0031 void SvtxTrack_FastSim::identify(std::ostream& os) const
0032 {
0033 SvtxTrack_v1::identify(os);
0034
0035 os << "SvtxTrack_FastSim Object ";
0036 os << "truth_track_id:" << get_truth_track_id();
0037 os << "id: " << get_id() << " ";
0038 os << "charge: " << get_charge() << " ";
0039 os << "chisq: " << get_chisq() << " ndf:" << get_ndf() << " ";
0040 os << std::endl;
0041
0042 os << "(px,py,pz) = ("
0043 << get_px() << ","
0044 << get_py() << ","
0045 << get_pz() << ")" << std::endl;
0046
0047 os << "(x,y,z) = (" << get_x() << "," << get_y() << "," << get_z() << ")" << std::endl;
0048
0049 if (!empty_clusters())
0050 {
0051 os << "clusters: ";
0052 for (SvtxTrack::ConstClusterIter iter = begin_clusters();
0053 iter != end_clusters();
0054 ++iter)
0055 {
0056 unsigned int cluster_id = *iter;
0057 os << cluster_id << " ";
0058 }
0059 os << std::endl;
0060 }
0061
0062 return;
0063 }
0064
0065 int SvtxTrack_FastSim::isValid() const
0066 {
0067 return 1;
0068 }