1#include "tofcalgsec/TofDataSet.h"
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;
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;
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;
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;
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;
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;
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;
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;
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;
90 if( m_texp<4.6 || m_texp>5.4 )
return false;
91 if( m_qleft<50.|| m_qleft>20000.)
return false;
93 if( m_zrhit<50. || m_zrhit>83.)
return false;
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;
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;
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;
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;
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;
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;
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;
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;