File indexing completed on 2025-08-06 08:18:15
0001 #include "SvtxTrackInfo_v1.h"
0002 #include "TrackStateInfo_v1.h"
0003
0004 #include <trackbase/TrkrDefs.h>
0005
0006 #include <cmath>
0007 #include <cstddef> // for size_t
0008 #include <iostream>
0009 #include <map>
0010 #include <utility> // for pair
0011
0012 void SvtxTrackInfo_v1::CopyFrom(const SvtxTrackInfo& source)
0013 {
0014 set_track_id(source.get_track_id());
0015 set_chisq(source.get_chisq());
0016 set_ndf(source.get_ndf());
0017 set_hitbitmap(source.get_hitbitmap());
0018 set_crossing(source.get_crossing());
0019
0020 set_x(source.get_x());
0021 set_y(source.get_y());
0022 set_z(source.get_z());
0023 set_phi(source.get_phi());
0024 set_theta(source.get_theta());
0025 set_qOp(source.get_qOp());
0026
0027 for (int i = 0; i < 5; i++)
0028 {
0029 for (int j = i; j < 5; j++)
0030 {
0031 set_covariance(i, j, source.get_covariance(i, j));
0032 }
0033 }
0034 }
0035
0036 SvtxTrackInfo_v1& SvtxTrackInfo_v1::operator=(const SvtxTrackInfo_v1& source)
0037 {
0038 if (this != &source)
0039 {
0040 CopyFrom(source);
0041 }
0042 return *this;
0043 }