BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
cut.cxx
Go to the documentation of this file.
2#include <cmath>
4 if( m_run>0 ) {
5 if( m_texp<2.7 || m_texp>4.9 ) return false;
6 if( fabs(m_zrhit)>115.0 ) return false;
7 if( m_qright<200.|| m_qright>20000. ) return false;
8
9 // 090308-090413 psip
10 if( m_run>=8107 && m_run<9671 ) {
11 if( ( m_tofid != 141 ) && ( m_qleft<200.|| m_qleft>20000. ) ) return false;
12 if( ( m_tofid != 141 ) && ( m_tleft<17.5 || m_tleft>39.0 ) ) return false;
13 if( m_tright<17.5 || m_tright>39.0 ) return false;
14 if( ( m_tofid != 141 ) && ( fabs(m_tleft-27.4+0.07*m_zrhit ) > 4.0 ) ) return false;
15 if( fabs(m_tright-27.6-0.07*m_zrhit) > 4.0 ) return false;
16 }
17
18 // 090528-090603 continue
19 else if( m_run>=9671 && m_run<9947 ) {
20 if( ( m_tofid != 141 ) && ( m_qleft<200.|| m_qleft>20000. ) ) return false;
21 if( ( m_tofid != 141 ) && ( m_tleft<13.5 || m_tleft>35.0 ) ) return false;
22 if( m_tright<13.5 || m_tright>35.0 ) return false;
23 if( ( m_tofid != 141 ) && ( fabs(m_tleft-23.7+0.07*m_zrhit ) > 4.0 ) ) return false;
24 if( fabs(m_tright-23.7-0.07*m_zrhit) > 4.0 ) return false;
25 }
26
27 // 090612-090727 jpsi
28 else if( m_run>=9947 && m_run<=10878 ) {
29 if( ( m_tofid != 141 ) && ( m_qleft<200.|| m_qleft>20000. ) ) return false;
30 if( ( m_tofid != 141 ) && ( m_tleft<14.0 || m_tleft>35.0 ) ) return false;
31 if( m_tright<14.0 || m_tright>35.0 ) return false;
32 if( ( m_tofid != 141 ) && ( fabs(m_tleft-23.6+0.07*m_zrhit ) > 4.0 ) ) return false;
33 if( fabs(m_tright-23.6-0.07*m_zrhit) > 4.0 ) return false;
34 }
35
36 // 100116-100713 psipp
37 else if( m_run>=11397 && m_run<12002 ) {
38 if( m_qleft<200.|| m_qleft>20000. ) return false;
39 if( m_tleft<13.5 || m_tleft>34.5 ) return false;
40 if( m_tright<13.5 || m_tright>34.5 ) return false;
41 if( fabs(m_tleft-23.5+0.07*m_zrhit ) > 4.0 ) return false;
42 if( fabs(m_tright-23.5-0.07*m_zrhit) > 4.0 ) return false;
43 }
44
45 // 110504-1106 psi(4040)
46 else if( m_run>23463 && m_run<24896 ) {
47 if( m_qleft<200.|| m_qleft>20000. ) return false;
48 if( m_tleft<14.0 || m_tleft>35.0 ) return false;
49 if( m_tright<14.0 || m_tright>35.0 ) return false;
50 if( fabs(m_tleft-23.75+0.07*m_zrhit ) > 4.0 ) return false;
51 if( fabs(m_tright-23.75-0.07*m_zrhit) > 4.0 ) return false;
52 }
53
54 // 111221-120331 psip
55 else if( m_run>24897 && m_run<27101 ) {
56 if((m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
57 if( m_qleft<200.|| m_qleft>20000. ) return false;
58 if( m_tleft<14.5 || m_tleft>35.5 ) return false;
59 if((m_tofid != 137 ) && ( m_tright<14.5 || m_tright>35.5 )) return false;
60 if( fabs(m_tleft-24.35+0.07*m_zrhit ) > 4.0 ) return false;
61 if(( m_tofid != 137 ) && (fabs(m_tright-24.35-0.07*m_zrhit) > 4.0 )) return false;
62 }
63
64 // 120407-120617 jpsi
65 else if( m_run>27102 && m_run<80000 ) {
66 if((m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
67 if( m_qleft<200.|| m_qleft>20000. ) return false;
68 if( m_tleft<14.5 || m_tleft>35.5 ) return false;
69 if((m_tofid != 137 ) && ( m_tright<14.5 || m_tright>35.5 )) return false;
70 if( fabs(m_tleft-25.40+0.07*m_zrhit ) > 4.0 ) return false;
71 if(( m_tofid != 137 ) && (fabs(m_tright-25.40-0.07*m_zrhit) > 4.0 )) return false;
72 }
73
74 }
75 else {
76 if( m_texp<2.7 || m_texp>4.9 ) return false;
77 if( m_tleft<15. || m_tleft>33. ) return false;
78 if( m_tright<15. || m_tright>33. ) return false;
79 if( m_qleft<200. || m_qleft>20000. ) return false;
80 if( m_qright<200.|| m_qright>20000.) return false;
81 if( fabs(m_zrhit)>115.0 ) return false;
82 }
83
84 return true;
85}
86
87
89 if( m_run>0 ) {
90 if( m_texp<4.6 || m_texp>5.4 ) return false;
91 if( m_qleft<50.|| m_qleft>20000.) return false;
92 // if( m_path<130. || m_path>170.) return false;
93 if( m_zrhit<50. || m_zrhit>83.) return false;
94
95 // 090308-090413 psip
96 if( m_run>=8107 && m_run<9671 ) {
97 if( m_tleft<24.0 || m_tleft>32.0 ) return false;
98 if( fabs(m_tleft-21.4-0.1*m_zrhit)>4.0 ) return false;
99 }
100
101 // 090528-090603 continue
102 else if( m_run>=9671 && m_run<9947 ) {
103 if( m_tleft<20.0 || m_tleft>28.0 ) return false;
104 if( fabs(m_tleft-17.3-0.1*m_zrhit)>4.0 ) return false;
105 }
106
107 // 090612-090727 jpsi
108 else if( m_run>=9947 && m_run<=10878 ) {
109 if( m_tleft<20.5 || m_tleft>28.5 ) return false;
110 if( fabs(m_tleft-17.6-0.1*m_zrhit)>4.0 ) return false;
111 }
112
113 // 100116-10713 psipp
114 else if( m_run>=11397 && m_run<12002 ) {
115 if( m_tleft<20.5 || m_tleft>28.5 ) return false;
116 if( fabs(m_tleft-17.8-0.1*m_zrhit)>4.0 ) return false;
117 }
118
119 // 110504-11060 psi(4040)
120 else if( m_run>=23463 && m_run<24896 ) {
121 if( m_tleft<20.5 || m_tleft>28.5 ) return false;
122 if( fabs(m_tleft-18.0-0.1*m_zrhit)>4.0 ) return false;
123 }
124
125 // 111221-120331 psip
126 else if( m_run>24897 && m_run<27101 ) {
127 if( m_tleft<21.0 || m_tleft>30.0 ) return false;
128 if( fabs(m_tleft-18.60-0.1*m_zrhit)>4.0 ) return false;
129 }
130
131 // 120407-120617 jpsi
132 else if( m_run>27102 && m_run<80000 ) {
133 if( m_tleft<22.0 || m_tleft>30.0 ) return false;
134 if( fabs(m_tleft-20.17-0.1*m_zrhit)>4.0 ) return false;
135 }
136
137 }
138 else {
139 if( m_tleft<16.|| m_tleft>22. ) return false;
140 if( m_texp<4.5 || m_texp>5.4 ) return false;
141 if( m_qleft<200.|| m_qleft>20000.) return false;
142 if( m_path<120. || m_path>180.) return false;
143 if( m_zrhit<50. || m_zrhit>83.) return false;
144 }
145 return true;
146}
bool cutBarrel()
Definition: cut.cxx:3
bool cutEndcap()
Definition: cut.cxx:88