BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RecMdcDedx.cxx
Go to the documentation of this file.
1/*
2 * @class : RecMdcDedx
3 *
4 * this class models "dE/dx" used in Mdc Reconstruction
5 *
6 * @author: xcao
7 *
8 * ********************************************************/
9
10#include "MdcRecEvent/RecMdcDedx.h"
11
13 m_dedx_hit = 0;
14 m_dedx_esat = 0;
15 m_dedx_norun = 0;
16 m_dedx_momentum = 0;
17 for ( int i = 0; i < 5; i++ )
18 {
19 m_dedx_exp[i] = 0.0;
20 m_sigma_dedx[i] = 0.0;
21 m_pid_prob[i] = 0.0;
22 }
23 m_mdcTrack = 0;
24 m_mdcKalTrack = 0;
25}
26
27RecMdcDedx::RecMdcDedx( const RecMdcDedx& recdedx ) : DstMdcDedx( recdedx ) {
28 m_dedx_hit = recdedx.m_dedx_hit;
29 m_dedx_esat = recdedx.m_dedx_esat;
30 m_dedx_norun = recdedx.m_dedx_norun;
31 m_dedx_momentum = recdedx.m_dedx_momentum;
32 for ( int i = 0; i < 5; i++ )
33 {
34 m_dedx_exp[i] = recdedx.m_dedx_exp[i];
35 m_sigma_dedx[i] = recdedx.m_sigma_dedx[i];
36 m_pid_prob[i] = recdedx.m_pid_prob[i];
37 }
38 m_mdcTrack = recdedx.m_mdcTrack;
39 m_mdcKalTrack = recdedx.m_mdcKalTrack;
40 m_vecdedxhit = recdedx.m_vecdedxhit;
41}
42
43RecMdcDedx::RecMdcDedx( const DstMdcDedx& dstdedx ) : DstMdcDedx( dstdedx ) {
44 m_dedx_hit = 0;
45 m_dedx_esat = 0;
46 m_dedx_norun = 0;
47 m_dedx_momentum = 0;
48 for ( int i = 0; i < 5; i++ )
49 {
50 m_dedx_exp[i] = 0.0;
51 m_sigma_dedx[i] = 0.0;
52 m_pid_prob[i] = 0.0;
53 }
54 m_mdcTrack = 0;
55 m_mdcKalTrack = 0;
56}
57
59 if ( &recdedx != this )
60 {
61 DstMdcDedx::operator=( recdedx );
62 m_dedx_hit = recdedx.m_dedx_hit;
63 m_dedx_esat = recdedx.m_dedx_esat;
64 m_dedx_norun = recdedx.m_dedx_norun;
65 m_dedx_momentum = recdedx.m_dedx_momentum;
66 for ( int i = 0; i < 5; i++ )
67 {
68 m_dedx_exp[i] = recdedx.m_dedx_exp[i];
69 m_sigma_dedx[i] = recdedx.m_sigma_dedx[i];
70 m_pid_prob[i] = recdedx.m_pid_prob[i];
71 }
72 m_mdcTrack = recdedx.m_mdcTrack;
73 m_mdcKalTrack = recdedx.m_mdcKalTrack;
74 m_vecdedxhit = recdedx.m_vecdedxhit;
75 }
76 return *this;
77}
78
80 if ( &dstdedx != this )
81 {
82 DstMdcDedx::operator=( dstdedx );
83 m_dedx_hit = 0;
84 m_dedx_esat = 0;
85 m_dedx_norun = 0;
86 m_dedx_momentum = 0;
87 for ( int i = 0; i < 5; i++ )
88 {
89 m_dedx_exp[i] = 0;
90 m_sigma_dedx[i] = 0;
91 m_pid_prob[i] = 0;
92 }
93 m_mdcTrack = 0;
94 m_mdcKalTrack = 0;
95 }
96 return *this;
97}
98
RecMdcDedx & operator=(const RecMdcDedx &)