CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
RecCgemDedx.cxx
Go to the documentation of this file.
1/*
2 * @class : RecCgemDedx
3 *
4 * this class models "dE/dx" used in Cgem 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}
24
26 : DstCgemDedx(recdedx)
27 {
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 m_dedx_exp[i] = recdedx.m_dedx_exp[i];
34 m_sigma_dedx[i] = recdedx.m_sigma_dedx[i];
35 m_pid_prob[i] = recdedx.m_pid_prob[i];
36 }
37
38 }
39
41: DstCgemDedx(dstdedx)
42{
43 m_dedx_hit=0;
44 m_dedx_esat =0;
45 m_dedx_norun =0;
46 m_dedx_momentum =0;
47 for( int i=0; i<5; i++) {
48 m_dedx_exp[i] = 0.0;
49 m_sigma_dedx[i] = 0.0;
50 m_pid_prob[i] = 0.0;
51 }
52
53}
54
56{
57 if( &recdedx != this ){
58 DstCgemDedx::operator=(recdedx);
59 m_dedx_hit=recdedx.m_dedx_hit;
60 m_dedx_esat =recdedx.m_dedx_esat;
61 m_dedx_norun =recdedx.m_dedx_norun;
62 m_dedx_momentum =recdedx.m_dedx_momentum;
63 for( int i=0; i<5; i++) {
64 m_dedx_exp[i] = recdedx.m_dedx_exp[i];
65 m_sigma_dedx[i] = recdedx.m_sigma_dedx[i];
66 m_pid_prob[i] = recdedx.m_pid_prob[i];
67 }
68 }
69 return *this;
70}
71
73 {
74 if( &dstdedx != this ){
75 DstCgemDedx::operator=(dstdedx);
76 m_dedx_hit=0;
77 m_dedx_esat =0;
78 m_dedx_norun =0;
79 m_dedx_momentum =0;
80 for( int i=0; i<5; i++) {
81 m_dedx_exp[i] = 0;
82 m_sigma_dedx[i] = 0;
83 m_pid_prob[i] = 0;
84 }
85 }
86 return *this;
87 }
88
89
90
RecCgemDedx & operator=(const RecCgemDedx &)