3 {
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
8
9 if( m_run>=8107 && m_run<9671 ) {
10 if( ( m_tofid != 141 ) && ( m_qleft<200.|| m_qleft>20000. ) ) return false;
11 if( m_qright<200.|| m_qright>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
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_qright<200.|| m_qright>20000. ) return false;
22 if( ( m_tofid != 141 ) && ( m_tleft<13.5 || m_tleft>35.0 ) ) return false;
23 if( m_tright<13.5 || m_tright>35.0 ) return false;
24 if( ( m_tofid != 141 ) && ( fabs(m_tleft-23.7+0.07*m_zrhit ) > 4.0 ) ) return false;
25 if( fabs(m_tright-23.7-0.07*m_zrhit) > 4.0 ) return false;
26 }
27
28
29 else if( m_run>=9947 && m_run<=10878 ) {
30 if( ( m_tofid != 141 ) && ( m_qleft<200.|| m_qleft>20000. ) ) return false;
31 if( m_qright<200.|| m_qright>20000. ) return false;
32 if( ( m_tofid != 141 ) && ( m_tleft<14.0 || m_tleft>35.0 ) ) return false;
33 if( m_tright<14.0 || m_tright>35.0 ) return false;
34 if( ( m_tofid != 141 ) && ( fabs(m_tleft-23.6+0.07*m_zrhit ) > 4.0 ) ) return false;
35 if( fabs(m_tright-23.6-0.07*m_zrhit) > 4.0 ) return false;
36 }
37
38
39 else if( m_run>=11397 && m_run<12002 ) {
40 if( m_qleft<200.|| m_qleft>20000. ) return false;
41 if( m_qright<200.|| m_qright>20000. ) return false;
42 if( m_tleft<13.5 || m_tleft>34.5 ) return false;
43 if( m_tright<13.5 || m_tright>34.5 ) return false;
44 if( fabs(m_tleft-23.5+0.07*m_zrhit ) > 4.0 ) return false;
45 if( fabs(m_tright-23.5-0.07*m_zrhit) > 4.0 ) return false;
46 }
47
48
49 else if( m_run>=23463 && m_run<=24896 ) {
50 if( m_qleft<200.|| m_qleft>20000. ) return false;
51 if( m_qright<200.|| m_qright>20000. ) return false;
52 if( m_tleft<14.0 || m_tleft>35.0 ) return false;
53 if( m_tright<14.0 || m_tright>35.0 ) return false;
54 if( fabs(m_tleft-23.75+0.07*m_zrhit ) > 4.0 ) return false;
55 if( fabs(m_tright-23.75-0.07*m_zrhit) > 4.0 ) return false;
56 }
57
58
59 else if( m_run>=24897 && m_run<=27101 ) {
60 if( m_qleft<200.|| m_qleft>20000. ) return false;
61 if((m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
62 if( m_tleft<14.5 || m_tleft>35.5 ) return false;
63 if((m_tofid != 137 ) && ( m_tright<14.5 || m_tright>35.5 )) return false;
64 if( fabs(m_tleft-24.35+0.07*m_zrhit ) > 4.0 ) return false;
65 if(( m_tofid != 137 ) && (fabs(m_tright-24.35-0.07*m_zrhit) > 4.0 )) return false;
66 }
67
68
69 else if( m_run>=27102 && m_run<=29675 ) {
70 if( m_qleft<200.|| m_qleft>20000. ) return false;
71 if((m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
72 if( m_tleft<14.5 || m_tleft>35.5 ) return false;
73 if((m_tofid != 137 ) && ( m_tright<14.5 || m_tright>35.5 )) return false;
74 if( fabs(m_tleft-25.40+0.07*m_zrhit ) > 4.0 ) return false;
75 if(( m_tofid != 137 ) && (fabs(m_tright-25.40-0.07*m_zrhit) > 4.0 )) return false;
76 }
77
78
79 else if( m_run>=29676 && m_run<33996 ) {
80 if( m_qleft<200.|| m_qleft>20000. ) return false;
81 if((m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
82 if( m_tleft<11 || m_tleft>32.5 ) return false;
83 if((m_tofid != 137 ) && ( m_tright<11 || m_tright>32.5 )) return false;
84 if( fabs(m_tleft-21.00+0.07*m_zrhit ) > 4.0 ) return false;
85 if(( m_tofid != 137 ) && (fabs(m_tright-21.01-0.07*m_zrhit) > 4.0 )) return false;
86 }
87
88
89 else if( m_run>=33997 && m_run<39355 ) {
90 if( m_qleft<200.|| m_qleft>20000. ) return false;
91 if((m_tofid != 8 && m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
92 if( m_tleft<11 || m_tleft>32.5 ) return false;
93 if((m_tofid !=8 && m_tofid != 137 ) && ( m_tright<11 || m_tright>32.5 )) return false;
94 if( fabs(m_tleft-21.00+0.07*m_zrhit ) > 4.0 ) return false;
95 if((m_tofid !=8 && m_tofid != 137 ) && (fabs(m_tright-21.00-0.07*m_zrhit) > 4.0 )) return false;
96 }
97
98
99 else if( m_run>=39355 && m_run<40208 ) {
100 if( m_qleft<200.|| m_qleft>20000. ) return false;
101 if( m_qright<200.|| m_qright>20000.) return false;
102 if( m_tleft<11 || m_tleft>32.5 ) return false;
103 if( m_tright<11 || m_tright>32.5 ) return false;
104 if( fabs(m_tleft-21.00+0.07*m_zrhit ) > 3.0 ) return false;
105 if( fabs(m_tright-21.00-0.07*m_zrhit) > 3.0 ) return false;
106 }
107
108
109 else if( m_run>=40208 && m_run<43646 ) {
110 if( m_qleft<200.|| m_qleft>20000. ) return false;
111 if( m_qright<200.|| m_qright>20000.) return false;
112 if( m_tleft<11.5 || m_tleft>33.0 ) return false;
113 if( m_tright<11.5 || m_tright>33.0 ) return false;
114 if( fabs(m_tleft-21.50+0.07*m_zrhit ) > 3.0 ) return false;
115 if( fabs(m_tright-21.50-0.07*m_zrhit) > 3.0 ) return false;
116 }
117
118
119 else if( m_run>=43646 && m_run<47432 ) {
120 if( m_qleft<200.|| m_qleft>20000. ) return false;
121 if( m_qright<200.|| m_qright>20000.) return false;
122 if( m_tleft<9.0 || m_tleft>30.0 ) return false;
123 if( m_tright<9.0 || m_tright>30.0 ) return false;
124 if( fabs(m_tleft-18.90+0.07*m_zrhit ) > 3.5 ) return false;
125 if( fabs(m_tright-18.90-0.07*m_zrhit) > 3.5 ) return false;
126 }
127
128
129 else if( m_run>=47432 && m_run<52940 ) {
130 if( m_qleft<200.|| m_qleft>20000. ) return false;
131 if( m_qright<200.|| m_qright>20000.) return false;
132 if( m_tleft<8.5 || m_tleft>29.5 ) return false;
133 if( m_tright<8.5 || m_tright>29.5 ) return false;
134 if( fabs(m_tleft-18.50+0.07*m_zrhit ) > 3.5 ) return false;
135 if( fabs(m_tright-18.50-0.07*m_zrhit) > 3.5 ) return false;
136 }
137
138 else if( m_run>=52940 && m_run<53500 ) {
139 if( m_qleft<200.|| m_qleft>20000. ) return false;
140 if( m_qright<200.|| m_qright>20000.) return false;
141 if( m_tleft<8.5 || m_tleft>29.5 ) return false;
142 if( m_tright<8.5 || m_tright>29.5 ) return false;
143 if( fabs(m_tleft-18.50+0.07*m_zrhit ) > 3.5 ) return false;
144 if( fabs(m_tright-18.50-0.07*m_zrhit) > 3.5 ) return false;
145 }
146
147 else if( m_run>=53500 && m_run<53586 ) {
148 if( m_qleft<200.|| m_qleft>20000. ) return false;
149 if( m_qright<200.|| m_qright>20000.) return false;
150 if( ( m_tofid>=9 && m_tofid<=12 ) || ( m_tofid>=97 && m_tofid<=100 ) ) {
151 if( m_tleft<-12.0 || m_tleft>9.0 ) return false;
152 if( m_tright<-12.0 || m_tright>9.0 ) return false;
153 if( fabs(m_tleft+2.7+0.07*m_zrhit ) > 3.5 ) return false;
154 if( fabs(m_tright+2.7-0.07*m_zrhit) > 3.5 ) return false;
155 }
156 else {
157 if( m_tleft<9.5 || m_tleft>31.0 ) return false;
158 if( m_tright<9.5 || m_tright>31.0 ) return false;
159 if( fabs(m_tleft-18.50+0.07*m_zrhit ) > 3.5 ) return false;
160 if( fabs(m_tright-18.50-0.07*m_zrhit) > 3.5 ) return false;
161 }
162 }
163
164 else if( m_run>=53586 && m_run<54780 ) {
165 if( m_qleft<200.|| m_qleft>20000. ) return false;
166 if( m_qright<200.|| m_qright>20000.) return false;
167 if( m_tleft<8.5 || m_tleft>31.0 ) return false;
168 if( m_tright<8.5 || m_tright>31.0 ) return false;
169 if( (m_tleft+0.07*m_zrhit)<15.0 || (m_tleft+0.07*m_zrhit)>24.0 ) return false;
170 if( (m_tright-0.07*m_zrhit)<15.0 || (m_tright-0.07*m_zrhit)>24.0 ) return false;
171 }
172
173 else if( m_run>=54780 && m_run<55115 ) {
174 if( m_qleft<200.|| m_qleft>20000. ) return false;
175 if( m_qright<200.|| m_qright>20000.) return false;
176 if( m_tleft<9.4 || m_tleft>32.0 ) return false;
177 if( m_tright<9.4 || m_tright>32.0 ) return false;
178 if( (m_tleft+0.07*m_zrhit)<16.0 || (m_tleft+0.07*m_zrhit)>25.0 ) return false;
179 if( (m_tright-0.07*m_zrhit)<16.0 || (m_tright-0.07*m_zrhit)>25.0 ) return false;
180 }
181
182 else if( m_run>=55115 && m_run<55861 ) {
183 if( m_qleft<200.|| m_qleft>20000. ) return false;
184 if( m_qright<200.|| m_qright>20000. ) return false;
185 if( m_tleft<9.0 || m_tleft>30.5 ) return false;
186 if( m_tright<9.0 || m_tright>30.5 ) return false;
187 if( fabs(m_tleft+0.07*m_zrhit-19.0 ) > 3.5 ) return false;
188 if( fabs(m_tright-0.07*m_zrhit-19.0) > 3.5 ) return false;
189 }
190
191 else if( m_run>=55861 && m_run<56769 ) {
192 if( m_qleft<200.|| m_qleft>20000. ) return false;
193 if( m_qright<200.|| m_qright>20000. ) return false;
194 if( m_tleft<10.0 || m_tleft>31.0 ) return false;
195 if( m_tright<10.0 || m_tright>31.0 ) return false;
196 if( fabs(m_tleft+0.07*m_zrhit-20.0 ) > 3.5 ) return false;
197 if( fabs(m_tright-0.07*m_zrhit-20.0) > 3.5 ) return false;
198 }
199
200 else if( m_run>=56769 && m_run<1000000 ) {
201 if( m_qleft<200.|| m_qleft>20000. ) return false;
202 if( m_qright<200.|| m_qright>20000. ) return false;
203 if( m_tleft<10.5 || m_tleft>31.5 ) return false;
204 if( m_tright<10.5 || m_tright>31.5 ) return false;
205 if( fabs(m_tleft+0.07*m_zrhit-20.0 ) > 3.5 ) return false;
206 if( fabs(m_tright-0.07*m_zrhit-20.0) > 3.5 ) return false;
207 }
208
209 }
210 else {
211 if( m_texp<2.7 || m_texp>4.9 ) return false;
212 if( m_tleft<15. || m_tleft>33.5 ) return false;
213 if( m_tright<15. || m_tright>33.5 ) return false;
214 if( m_qleft<200. || m_qleft>20000. ) return false;
215 if( m_qright<200.|| m_qright>20000.) return false;
216 if( fabs(m_zrhit)>115.0 ) return false;
217 }
218
219 return true;
220}