Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:18:15

0001 #include "SvtxTrackInfo_v2.h"
0002 #include "TrackStateInfo_v1.h"
0003 
0004 /**
0005  * SvtxTrackInfo_v2 is a class developed to project the track information from
0006  * the outermost TPC surface to the calorimeters
0007  **/
0008 
0009 void SvtxTrackInfo_v2::CopyFrom(const SvtxTrackInfo& source)
0010 {
0011   set_track_id(source.get_track_id());
0012   set_subsurfkey(source.get_subsurfkey());
0013 
0014   set_chisq(source.get_chisq());
0015   set_ndf(source.get_ndf());
0016   set_hitbitmap(source.get_hitbitmap());
0017   set_crossing(source.get_crossing());
0018 
0019   set_x(source.get_x());
0020   set_y(source.get_y());
0021   set_z(source.get_z());
0022   set_phi(source.get_phi());
0023   set_theta(source.get_theta());
0024   set_qOp(source.get_qOp());
0025 
0026   set_x_outer_tpc(source.get_x_outer_tpc());
0027   set_y_outer_tpc(source.get_y_outer_tpc());
0028   set_z_outer_tpc(source.get_z_outer_tpc());
0029   set_phi_outer_tpc(source.get_phi_outer_tpc());
0030   set_theta_outer_tpc(source.get_theta_outer_tpc());
0031   set_qOp_outer_tpc(source.get_qOp_outer_tpc());
0032 
0033   for (int i = 0; i < 5; i++)
0034   {
0035     for (int j = i; j < 5; j++)
0036     {
0037       set_covariance(i, j, source.get_covariance(i, j));
0038       set_covariance_outer_tpc(i, j, source.get_covariance_outer_tpc(i, j));
0039     }
0040   }
0041 }
0042 
0043 SvtxTrackInfo_v2& SvtxTrackInfo_v2::operator=(const SvtxTrackInfo_v2& source)
0044 {
0045   if (this != &source)
0046   {
0047     CopyFrom(source);
0048   }
0049   return *this;
0050 }