BOSS 7.1.1
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
12
14 m_dedx_hit=0;
15 m_dedx_esat =0;
16 m_dedx_norun =0;
17 m_dedx_momentum =0;
18 for( int i=0; i<5; i++) {
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
28: DstMdcDedx(recdedx)
29{
30 m_dedx_hit=recdedx.m_dedx_hit;
31 m_dedx_esat =recdedx.m_dedx_esat;
32 m_dedx_norun =recdedx.m_dedx_norun;
33 m_dedx_momentum =recdedx.m_dedx_momentum;
34 for( int i=0; i<5; i++) {
35 m_dedx_exp[i] = recdedx.m_dedx_exp[i];
36 m_sigma_dedx[i] = recdedx.m_sigma_dedx[i];
37 m_pid_prob[i] = recdedx.m_pid_prob[i];
38 }
39 m_mdcTrack = recdedx.m_mdcTrack;
40 m_mdcKalTrack = recdedx.m_mdcKalTrack;
41 m_vecdedxhit = recdedx.m_vecdedxhit;
42}
43
45: DstMdcDedx(dstdedx)
46{
47 m_dedx_hit=0;
48 m_dedx_esat =0;
49 m_dedx_norun =0;
50 m_dedx_momentum =0;
51 for( int i=0; i<5; i++) {
52 m_dedx_exp[i] = 0.0;
53 m_sigma_dedx[i] = 0.0;
54 m_pid_prob[i] = 0.0;
55 }
56 m_mdcTrack = 0;
57 m_mdcKalTrack = 0;
58}
59
61{
62 if( &recdedx != this ){
63 DstMdcDedx::operator=(recdedx);
64 m_dedx_hit=recdedx.m_dedx_hit;
65 m_dedx_esat =recdedx.m_dedx_esat;
66 m_dedx_norun =recdedx.m_dedx_norun;
67 m_dedx_momentum =recdedx.m_dedx_momentum;
68 for( int i=0; i<5; i++) {
69 m_dedx_exp[i] = recdedx.m_dedx_exp[i];
70 m_sigma_dedx[i] = recdedx.m_sigma_dedx[i];
71 m_pid_prob[i] = recdedx.m_pid_prob[i];
72 }
73 m_mdcTrack = recdedx.m_mdcTrack;
74 m_mdcKalTrack = recdedx.m_mdcKalTrack;
75 m_vecdedxhit = recdedx.m_vecdedxhit;
76 }
77 return *this;
78}
79
81{
82 if( &dstdedx != this ){
83 DstMdcDedx::operator=(dstdedx);
84 m_dedx_hit=0;
85 m_dedx_esat =0;
86 m_dedx_norun =0;
87 m_dedx_momentum =0;
88 for( int i=0; i<5; i++) {
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
99
100
RecMdcDedx & operator=(const RecMdcDedx &)