fddataquality.h File Reference

Go to the source code of this file.

Functions

int passfail (double x)

Function Documentation

int passfail ( double  x  ) 

Definition at line 3 of file fddataquality.cxx.

Referenced by MadPIDAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), NuExtraction::ExtractVertexTimeFit(), AtNuEventSelectionAB::GoodAtmosShower(), MadAbID::PassCuts(), AtNuEventViewer::PassFail(), AtNuEventSelector::PassFail(), AtNuEventSelector::RunEventSelection(), and NtpTimingFit::RunFit().

00004 {
00005 
00006   int numbad=46;
00007 
00008   double badruns[46][2];
00009 
00010   // list of bad run times
00011 
00012   // HV  - add 1 minute either side
00013 
00014   badruns[0][0]=1.113e9+6848016-60;
00015   badruns[0][1]=1.113e9+6848256+60;
00016 
00017   badruns[1][0]=1.12e9+1881712-60;
00018   badruns[1][1]=1.12e9+1885450+60;
00019 
00020   badruns[2][0]=1.12e9+2488763-60;
00021   badruns[2][1]=1.12e9+2489423+60;
00022 
00023   badruns[3][0]=1.12e9+3094300-60;
00024   badruns[3][1]=1.12e9+3094527+60;
00025 
00026   badruns[4][0]=1.12e9+3094793-60;
00027   badruns[4][1]=1.12e9+3095028+60;
00028 
00029   badruns[5][0]=1.12e9+8005695-60;
00030   badruns[5][1]=1.12e9+8005741+60;
00031 
00032   badruns[6][0]=1.12e9+8023511-60;
00033   badruns[6][1]=1.12e9+8024167+60;
00034 
00035   badruns[7][0]=1.129e9+650479-60;
00036   badruns[7][1]=1.129e9+650800+60;
00037 
00038   badruns[8][0]=1.129e9+2898151-60;
00039   badruns[8][1]=1.129e9+2898829+60;
00040 
00041   badruns[9][0]=1.129e9+4088448-60;
00042   badruns[9][1]=1.129e9+4090381+60;
00043 
00044   // HV MF4 trips - August   - add 1 minute either side
00045 
00046   badruns[10][0]=1.12e9+3227529-60;
00047   badruns[10][1]=1.12e9+3227532+60;
00048 
00049   badruns[11][0]=1.12e9+3227707-60;
00050   badruns[11][1]=1.12e9+3227710+60;
00051 
00052   badruns[12][0]=1.12e9+3908671-60;
00053   badruns[12][1]=1.12e9+3908674+60;
00054 
00055   badruns[13][0]=1.12e9+4106935-60;
00056   badruns[13][1]=1.12e9+4106938+60;
00057 
00058   badruns[14][0]=1.12e9+4332961-60;
00059   badruns[14][1]=1.12e9+4332964+60;
00060 
00061   badruns[15][0]=1.12e9+4351874-60;
00062   badruns[15][1]=1.12e9+4351877+60;
00063 
00064   badruns[16][0]=1.12e9+4512891-60;
00065   badruns[16][1]=1.12e9+4512894+60;
00066 
00067   badruns[17][0]=1.12e9+4628309-60;
00068   badruns[17][1]=1.12e9+4628318+60;
00069 
00070   badruns[18][0]=1.12e9+4628335-60;
00071   badruns[18][1]=1.12e9+4628338+60;
00072 
00073   badruns[19][0]=1.12e9+4652448-60;
00074   badruns[19][1]=1.12e9+4652451+60;
00075 
00076   badruns[20][0]=1.12e9+4784535-60;
00077   badruns[20][1]=1.12e9+4784538+60;
00078 
00079   badruns[21][0]=1.12e9+4800466-60;
00080   badruns[21][1]=1.12e9+4800469+60;
00081 
00082   badruns[22][0]=1.12e9+4879134-60;
00083   badruns[22][1]=1.12e9+4879137+60;
00084 
00085   badruns[23][0]=1.12e9+4964435-60;
00086   badruns[23][1]=1.12e9+4964438+60;
00087 
00088   badruns[24][0]=1.12e9+4973725-60;
00089   badruns[24][1]=1.12e9+4973728+60;
00090 
00091   badruns[25][0]=1.12e9+4998901-60;
00092   badruns[25][1]=1.12e9+4998904+60;
00093 
00094   badruns[26][0]=1.12e9+5309318-60;
00095   badruns[26][1]=1.12e9+5309321+60;
00096 
00097   // HV MF4 trips - September   - add 1 minute either side
00098 
00099   badruns[27][0]=1.12e9+5574435-60;
00100   badruns[27][1]=1.12e9+5574438+60;
00101 
00102   badruns[28][0]=1.12e9+5588352-60;
00103   badruns[28][1]=1.12e9+5588355+60;
00104 
00105   badruns[29][0]=1.12e9+5619033-60;
00106   badruns[29][1]=1.12e9+5619034+60;
00107 
00108   badruns[30][0]=1.12e9+5727037-60;
00109   badruns[30][1]=1.12e9+5727038+60;
00110 
00111   badruns[31][0]=1.12e9+7632407-60;
00112   badruns[31][1]=1.12e9+7632408+60;
00113 
00114   badruns[32][0]=1.12e9+7633152-60;
00115   badruns[32][1]=1.12e9+7633153+60;
00116 
00117   badruns[33][0]=1.12e9+7753031-60;
00118   badruns[33][1]=1.12e9+7753032+60;
00119 
00120 
00121 
00122   //  GPS uncertainty>1us  - add 6 mins either side
00123 
00124  badruns[34][0]=1.11e9+7969754-360;
00125  badruns[34][1]=1.11e9+7970369+360;
00126 
00127  badruns[35][0]=1.11e9+8006160-360;
00128  badruns[35][1]=1.11e9+8073974+360;
00129 
00130  badruns[36][0]=1.12e9+1884182-360;
00131  badruns[36][1]=1.12e9+1915084+360;
00132 
00133  badruns[37][0]=1.12e9+11591980-360;
00134  badruns[37][1]=1.12e9+11591988+360;
00135 
00136 
00137  // magnet trips  - add 6 mins either side
00138 
00139  badruns[38][0]=1.1167396010e+09-360;
00140  badruns[38][1]=1.1167448520e+09+360; 
00141 
00142  badruns[39][0]=1.1180062160e+09-360;
00143  badruns[39][1]=1.1180095070e+09+360;
00144 
00145  badruns[40][0]=1.1181531790e+09-360;
00146  badruns[40][1]=1.1181550850e+09+360;
00147 
00148  badruns[41][0]=1.1208312940e+09-360;
00149  badruns[41][1]=1.1208537850e+09+360;
00150 
00151  badruns[42][0]=1.1289667590e+09-360;
00152  badruns[42][1]=1.1291356890e+09+360;
00153 
00154  // additional entries for Dec'05->Feb'06
00155 
00156  // HV trip - add 1 min either side
00157  badruns[43][0]=1.140025794e+09-60;
00158  badruns[43][1]=1.140026352e+09+60;
00159 
00160  // Large GPS timing errors - add 6 mins either side
00161  badruns[44][0]=1.135704376e+09-360;
00162  badruns[44][1]=1.135707004e+09+360;
00163 
00164  badruns[45][0]=1.139874217e+09-360;
00165  badruns[45][1]=1.139878274e+09+360;
00166 
00167 
00168  
00169   for (int i=0;i<numbad;i++) {
00170     
00171     if (x>badruns[i][0] && x<badruns[i][1]) {
00172       //    cout << "failed check " << i << endl;
00173       return 0;
00174     }
00175   }
00176     
00177   return 1;
00178 
00179 }


Generated on 2 Nov 2017 for loon by  doxygen 1.6.1