Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxTrackInfo_v1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxTrackInfo_v1.cc
1 
2 #include "SvtxTrackInfo_v1.h"
3 #include "TrackStateInfo_v1.h"
4 
5 #include <trackbase/TrkrDefs.h>
6 
7 #include <cmath>
8 #include <cstddef> // for size_t
9 #include <iostream>
10 #include <map>
11 #include <utility> // for pair
12 
14 {
15  set_chisq(source.get_chisq());
16  set_ndf(source.get_ndf());
17  set_hitbitmap(source.get_hitbitmap());
18  set_crossing(source.get_crossing());
19 
20  set_x(source.get_x());
21  set_y(source.get_y());
22  set_z(source.get_z());
23  set_px(source.get_px());
24  set_py(source.get_py());
25  set_pz(source.get_pz());
26 
27  for (int i = 0; i < 6; i++)
28  {
29  for (int j = i; j < 6; j++)
30  {
31  set_covariance(i, j, source.get_covariance(i, j));
32  }
33  }
34 }
35 
37 {
38  if (this != &source)
39  {
40  CopyFrom(source);
41  }
42  return *this;
43 }