1 | <?php
|
---|
2 |
|
---|
3 | $needs = array
|
---|
4 | (
|
---|
5 | "fCCFilled" => "SequenceBuildStatus.fDate",
|
---|
6 | "fExclusionsDone" => "fCCFilled",
|
---|
7 | "fSequenceEntriesBuilt" => "fExclusionsDone",
|
---|
8 | "fCCFileAvail" => "RunProcessStatus.fRunNumber",
|
---|
9 | "fCaCoFileAvail" => "RunProcessStatus.fRunNumber",
|
---|
10 | "fCaCoFileFound" => "RunProcessStatus.fRunNumber",
|
---|
11 | "fRawFileAvail" => "RunProcessStatus.fRunNumber",
|
---|
12 | "fDataCheckDone" => "fRawFileAvail",
|
---|
13 | "fTimingCorrection" => "fRawFileAvail",
|
---|
14 | "fSequenceFileWritten" => "SequenceProcessStatus.fSequenceFirst",
|
---|
15 | "fAllFilesAvail" => "fSequenceFileWritten",
|
---|
16 | "fCallisto" => "fAllFilesAvail",
|
---|
17 | "fStar" => "fCallisto",
|
---|
18 | "fFillCallisto" => "fCallisto",
|
---|
19 | "fFillStar" => "fStar",
|
---|
20 | "fDataSetInserted" => "DataSetProcessStatus.fDataSetNumber",
|
---|
21 | "fDataSetFileWritten" => "fDataSetInserted",
|
---|
22 | "fStarFilesAvail" => "fDataSetFileWritten",
|
---|
23 | "fGanymed" => "fStarFilesAvail",
|
---|
24 | "fFillGanymed" => "fGanymed",
|
---|
25 | );
|
---|
26 |
|
---|
27 |
|
---|
28 | $timelimits = array();
|
---|
29 |
|
---|
30 |
|
---|
31 | $limitsmean = array
|
---|
32 | (
|
---|
33 | "fPedRmsInLimit" => "fMeanPedRmsInner",
|
---|
34 | // "fArrTRmsLimit" => "fArrTimeRmsInner",
|
---|
35 | "fMuonRateLimit" => "fMuonRate",
|
---|
36 | "fMuonCalLimit" => "fRatio",
|
---|
37 | "fPSFLimit" => "fPSF",
|
---|
38 | "fInhomLimit" => "fInhomogeneity",
|
---|
39 | "fNumIslLimit" => "fMeanNumberIslands",
|
---|
40 | "fImgRateLimit" => "fDataRate",
|
---|
41 | "fSkyBrightLimit" => "fBrightnessMed",
|
---|
42 | );
|
---|
43 |
|
---|
44 | $limitsmin = array
|
---|
45 | (
|
---|
46 | "fZdMinLimit" => "fZenithDistanceMin",
|
---|
47 | "fNumStarsLimit" => "fNumStarsMed",
|
---|
48 | "fNumStarsCorLimit" => "fNumStarsCorMed",
|
---|
49 | "fMuonNumLimit" => "fMuonNumber",
|
---|
50 | // "fArrTimeLimit" => "fArrTimeInner",
|
---|
51 | "fPulsePosLimit" => "fMeanPulsePosInner",
|
---|
52 | "fRunTimeLimit" => "fRunTime/60",
|
---|
53 | "fRelTimeMinLimit" => "fEffOnTime/fRunTime",
|
---|
54 | );
|
---|
55 |
|
---|
56 | $limitsmax = array
|
---|
57 | (
|
---|
58 | "fZdMaxLimit" => "fZenithDistanceMax",
|
---|
59 | "fUnsInLimit" => "fUnsuitableInner",
|
---|
60 | "fIsoInLimit" => "fIsolatedInner",
|
---|
61 | "fIMCLimit" => "fIsolatedMaxCluster",
|
---|
62 | "fMaxHumLimit" => "fMaxHumidity",
|
---|
63 | "fRelTimeMaxLimit" => "fEffOnTime/fRunTime",
|
---|
64 | );
|
---|
65 |
|
---|
66 | $checkwhere = array
|
---|
67 | (
|
---|
68 | "fRunTypeName" => CheckWhere("fRunTypeKEY", $_GET),
|
---|
69 | "fProjectName" => CheckWhere("fProjectKEY", $_GET),
|
---|
70 | "fSourceName" => CheckWhere("fSourceKEY", $_GET),
|
---|
71 | "fMagicNumberName" => CheckWhere("fMagicNumberKEY", $_GET),
|
---|
72 | "fL1TriggerTableName" => CheckWhere("fL1TriggerTableKEY", $_GET),
|
---|
73 | "fL2TriggerTableName" => CheckWhere("fL2TriggerTableKEY", $_GET),
|
---|
74 | "fL3TriggerTableName" => CheckWhere("fL3TriggerTableKEY", $_GET),
|
---|
75 | "fHvSettingsName" => CheckWhere("fHvSettingsKEY", $_GET),
|
---|
76 | "fCalibrationScriptName" => CheckWhere("fCalibrationScriptKEY", $_GET),
|
---|
77 | "fExcludedFDAName" => CheckWhere("fExcludedFDAKEY", $_GET),
|
---|
78 | "fManuallyChangedName" => CheckWhere("fManuallyChangedKEY", $_GET),
|
---|
79 | "fObservationModeName" => CheckWhere("fObservationModeKEY", $_GET),
|
---|
80 | "fSumTriggerFlagName" => CheckWhere("fSumTriggerFlagKEY", $_GET),
|
---|
81 | "fDiscriminatorThresholdTableName" => CheckWhere("fDiscriminatorThresholdTableKEY", $_GET),
|
---|
82 | "fTriggerDelayTableName" => CheckWhere("fTriggerDelayTableKEY", $_GET),
|
---|
83 | "fTestFlagName" => CheckWhere("fTestFlagKEY", $_GET),
|
---|
84 | "fLightConditionsName" => CheckWhere("fLightConditionsKEY", $_GET),
|
---|
85 | "fParticleTypeName" => CheckWhere("fParticleTypeKEY", $_GET),
|
---|
86 | "fFitsFileName" => CheckWhere("fFitsFileKEY", $_GET),
|
---|
87 | "fObjectName" => CheckWhere("fObjectKEY", $_GET),
|
---|
88 | "fStatusName" => CheckWhere("fStatusKEY", $_GET),
|
---|
89 | "fTelescopeName" => CheckWhere("fTelescopeKEY", $_GET),
|
---|
90 | "fBandName" => CheckWhere("fBandKEY", $_GET),
|
---|
91 | "fUserName" => CheckWhere("fUserKEY", $_GET),
|
---|
92 | "fCycleName" => CheckWhere("fCycleKEY", $_GET),
|
---|
93 | "fPIName" => CheckWhere("fPIKEY", $_GET),
|
---|
94 | "fWorkingGroupName" => CheckWhere("fWorkingGroupKEY", $_GET),
|
---|
95 | "fProposalName" => CheckWhere("fProposalKEY", $_GET),
|
---|
96 | );
|
---|
97 |
|
---|
98 | $checkgroup = array
|
---|
99 | (
|
---|
100 | "fRunTypeName" => CheckGroup("fRunTypeKEY", $_GET),
|
---|
101 | "fProjectName" => CheckGroup("fProjectKEY", $_GET),
|
---|
102 | "fSourceName" => CheckGroup("fSourceKEY", $_GET),
|
---|
103 | "fMagicNumberName" => CheckGroup("fMagicNumberKEY", $_GET),
|
---|
104 | "fL1TriggerTableName" => CheckGroup("fL1TriggerTableKEY", $_GET),
|
---|
105 | "fL2TriggerTableName" => CheckGroup("fL2TriggerTableKEY", $_GET),
|
---|
106 | "fL3TriggerTableName" => CheckGroup("fL3TriggerTableKEY", $_GET),
|
---|
107 | "fHvSettingsName" => CheckGroup("fHvSettingsKEY", $_GET),
|
---|
108 | "fCalibrationScriptName" => CheckGroup("fCalibrationScriptKEY", $_GET),
|
---|
109 | "fExcludedFDAName" => CheckGroup("fExcludedFDAKEY", $_GET),
|
---|
110 | "fManuallyChangedName" => CheckGroup("fManuallyChangedKEY", $_GET),
|
---|
111 | "fObservationModeName" => CheckGroup("fObservationModeKEY", $_GET),
|
---|
112 | "fSumTriggerFlagName" => CheckGroup("fSumTriggerFlagKEY", $_GET),
|
---|
113 | "fDiscriminatorThresholdTableName" => CheckGroup("fDiscriminatorThresholdTableKEY", $_GET),
|
---|
114 | "fTriggerDelayTableName" => CheckGroup("fTriggerDelayTableKEY", $_GET),
|
---|
115 | "fTestFlagName" => CheckGroup("fTestFlagKEY", $_GET),
|
---|
116 | "fLightConditionsName" => CheckGroup("fLightConditionsKEY", $_GET),
|
---|
117 | "fParticleTypeName" => CheckGroup("fParticleTypeKEY", $_GET),
|
---|
118 | "fFitsFileName" => CheckGroup("fFitsFileKEY", $_GET),
|
---|
119 | "fObjectName" => CheckGroup("fObjectKEY", $_GET),
|
---|
120 | "fStatusName" => CheckGroup("fStatusKEY", $_GET),
|
---|
121 | "fBandName" => CheckGroup("fBandKEY", $_GET),
|
---|
122 | "fUserName" => CheckGroup("fUserKEY", $_GET),
|
---|
123 | "fTelescopeName" => CheckGroup("fTelescopeKEY", $_GET),
|
---|
124 | "fCycleName" => CheckWhere("fCycleKEY", $_GET),
|
---|
125 | "fPIName" => CheckWhere("fPIKEY", $_GET),
|
---|
126 | "fWorkingGroupName" => CheckWhere("fWorkingGroupKEY", $_GET),
|
---|
127 | "fProposalName" => CheckWhere("fProposalKEY", $_GET),
|
---|
128 | );
|
---|
129 |
|
---|
130 |
|
---|
131 | $checkstatusgroup = array
|
---|
132 | (
|
---|
133 | "fCCFilled" => CheckStatusGroup("fCCFilledStatus", $_GET),
|
---|
134 | "fExclusionsDone" => CheckStatusGroup("fExclusionsDoneStatus", $_GET),
|
---|
135 | "fSequenceEntriesBuilt" => CheckStatusGroup("fSequenceEntriesBuiltStatus",$_GET),
|
---|
136 | "fCCFileAvail" => CheckStatusGroup("fCCFileAvailStatus", $_GET),
|
---|
137 | "fCaCoFileAvail" => CheckStatusGroup("fCaCoFileAvailStatus", $_GET),
|
---|
138 | "fCaCoFileFound" => CheckStatusGroup("fCaCoFileFoundStatus", $_GET),
|
---|
139 | "fRawFileAvail" => CheckStatusGroup("fRawFileAvailStatus", $_GET),
|
---|
140 | "fTimingCorrection" => CheckStatusGroup("fTimingCorrectionStatus", $_GET),
|
---|
141 | "fDataCheckDone" => CheckStatusGroup("fDataCheckDoneStatus", $_GET),
|
---|
142 | // "fFillDotRaw" => CheckStatusGroup("fFillDotRawStatus", $_GET),
|
---|
143 | "fSequenceFileWritten" => CheckStatusGroup("fSequenceFileWrittenStatus", $_GET),
|
---|
144 | "fAllFilesAvail" => CheckStatusGroup("fAllFilesAvailStatus", $_GET),
|
---|
145 | "fCallisto" => CheckStatusGroup("fCallistoStatus", $_GET),
|
---|
146 | "fFillCallisto" => CheckStatusGroup("fFillCallistoStatus", $_GET),
|
---|
147 | "fStar" => CheckStatusGroup("fStarStatus", $_GET),
|
---|
148 | "fFillStar" => CheckStatusGroup("fFillStarStatus", $_GET),
|
---|
149 | "fDataSetInserted" => CheckStatusGroup("fDataSetInsertedStatus", $_GET),
|
---|
150 | "fDataSetFileWritten" => CheckStatusGroup("fDataSetFileWrittenStatus", $_GET),
|
---|
151 | "fStarFilesAvail" => CheckStatusGroup("fStarFilesAvailStatus", $_GET),
|
---|
152 | "fGanymed" => CheckStatusGroup("fGanymedStatus", $_GET),
|
---|
153 | "fFillGanymed" => CheckStatusGroup("fFillGanymedStatus", $_GET),
|
---|
154 | );
|
---|
155 |
|
---|
156 |
|
---|
157 | $checkenumgroup = array
|
---|
158 | (
|
---|
159 | "fHasSignal" => CheckEnumGroup("fHasSignalEnum", $_GET),
|
---|
160 | "fHasPedestal" => CheckEnumGroup("fHasPedestalEnum", $_GET),
|
---|
161 | "fHasSignalInterlaced" => CheckEnumGroup("fHasSignalInterlacedEnum", $_GET),
|
---|
162 | "fHasPedestalInterlaced" => CheckEnumGroup("fHasPedestalInterlacedEnum", $_GET),
|
---|
163 | );
|
---|
164 |
|
---|
165 |
|
---|
166 |
|
---|
167 | $alias = array
|
---|
168 | (
|
---|
169 | "fRawFileKEY" => "Idx",
|
---|
170 | "fMagicNumberName" => "Magic#",
|
---|
171 | "fFormatVersion" => "F-Ver",
|
---|
172 | "fLastUpdate" => "LastUpd",
|
---|
173 | // "fRunNumber" => "Run#",
|
---|
174 | "Run#" => "Run#",
|
---|
175 | "Tel:Run:File" => "Tel:Run:File",
|
---|
176 | "fRunTypeName" => "RunType",
|
---|
177 | "fMeanTriggerRate" => "Rate<br>[Hz]",
|
---|
178 | "fDaqTriggerRate" => "Daq<br>TRate<br>[Hz]",
|
---|
179 | "fDaqStoreRate" => "Daq<br>SRate<br>[Hz]",
|
---|
180 | "fL2RatePresc" => "L2<br>pRate<br>[Hz]",
|
---|
181 | "fL3TriggerRate" => "L3<br>TRate<br>[Hz]",
|
---|
182 | "fL2RateUnpresc" => "L2<br>upRate<br>[Hz]",
|
---|
183 | "fManuallyChangedName" => "Manually<br>Changed",
|
---|
184 | "fObservationModeName" => "Obs.<br>Mode",
|
---|
185 | "fSumTriggerFlagName" => "SumTrigger<br>Flag",
|
---|
186 | "fLastUpdate" => "LastUpd",
|
---|
187 | "fSequenceFirst" => "Sequ",
|
---|
188 | "fProjectName" => "Project",
|
---|
189 | "fSourceName" => "Source",
|
---|
190 | "fNumEvents" => "#Evts",
|
---|
191 | "fRunTime/60" => "Up<br>Time<br>[min]",
|
---|
192 | "fRunStart" => "Start",
|
---|
193 | "fRunStop" => "Stop",
|
---|
194 | // "fRunStart" => "StartTime",
|
---|
195 | "fSequenceLast" => "Last<br>Run",
|
---|
196 | "fL1TriggerTableName" => "L1Trig<br>Table",
|
---|
197 | "fL2TriggerTableName" => "L2Trig<br>Table",
|
---|
198 | "fL3TriggerTableName" => "L3Trig<br>Table",
|
---|
199 | "fHvSettingsName" => "HV Settings",
|
---|
200 | "fCalibrationScriptName" => "Cal Script",
|
---|
201 | "fTestFlagName" => "Testflag",
|
---|
202 | "fLightConditionsName" => "Lightcond",
|
---|
203 | "fTriggerDelayTableName" => "TrigDelay",
|
---|
204 | "fDiscriminatorThresholdTableName" => "DT",
|
---|
205 | "fExcludedFDAName" => "Exclusion",
|
---|
206 | "fCycleName" => "Cycle",
|
---|
207 | "fPIName" => "PI name",
|
---|
208 | "fWorkingGroupName" => "Working<br>Group",
|
---|
209 | "fProposalName" => "Proposal",
|
---|
210 | "fWheelPos1" => "Wheel<br>Pos 1",
|
---|
211 | "fWheelPos2" => "Wheel<br>Pos 2",
|
---|
212 | "fZenithDistance" => "Zd",
|
---|
213 | "fAzimuth" => "Az",
|
---|
214 | "fZenithDistanceMin" => "Zd<br>Min",
|
---|
215 | "fZenithDistanceMax" => "Zd<br>Max",
|
---|
216 | "fAzimuthMin" => "Az<br>Min",
|
---|
217 | "fAzimuthMax" => "Az<br>Max",
|
---|
218 | "fTest" => "Test",
|
---|
219 | "fSourceKEY" => "KEY",
|
---|
220 | "fDate" => "Date",
|
---|
221 | "fCCFilled" => "CCFilled",
|
---|
222 | "fExclusionsDone" => "Exclusions",
|
---|
223 | "fSequenceEntriesBuilt" => "Sequences",
|
---|
224 | "fCCFileAvail" => "CCFile",
|
---|
225 | "fCaCoFileAvail" => "CaCoFile",
|
---|
226 | "fCaCoFileFound" => "CaCoRun",
|
---|
227 | "fRawFileAvail" => "RawFile",
|
---|
228 | "fTimingCorrection" => "TimingCorr",
|
---|
229 | "fDataCheckDone" => "Datacheck",
|
---|
230 | // "fFillDotRaw" => "Filldotraw",
|
---|
231 | "fSequenceFileWritten" => "SequFile",
|
---|
232 | "fAllFilesAvail" => "FilesAvail",
|
---|
233 | "fCallisto" => "Callisto",
|
---|
234 | "fStar" => "Star",
|
---|
235 | "fFillCallisto" => "FillCal",
|
---|
236 | "fFillStar" => "FillStar",
|
---|
237 | "fDataSetInserted" => "DataSet",
|
---|
238 | "fDataSetFileWritten" => "DataSetFile",
|
---|
239 | "fStarFilesAvail" => "FilesAvail",
|
---|
240 | "fGanymed" => "Ganymed",
|
---|
241 | "fFillGanymed" => "FillGanymed",
|
---|
242 | "fUnsuitableOuter" => "Un<br>suit.<br>Out",
|
---|
243 | "fUnreliableOuter" => "Un<br>rel.<br>Out",
|
---|
244 | "fUnreliableInner" => "Un<br>rel.<br>In",
|
---|
245 | "fUnsuitableInner" => "Un<br>suit.<br>In",
|
---|
246 | "fUnsuitable50" => "Un<br>suit.<br>50",
|
---|
247 | "fUnsuitable01" => "Un<br>suit.<br>01",
|
---|
248 | "fUnsuitableMax" => "Un<br>suit.<br>Max",
|
---|
249 | "fDeadMax" => "Dead<br>Max",
|
---|
250 | "fRateTrigEvts" => "Rate Trig.<br>Evts [Hz]",
|
---|
251 | "fRateSumEvts" => "Rate Sum<br>Evts [Hz]",
|
---|
252 | "fRatePedEvts" => "Rate Ped<br>Evts [Hz]",
|
---|
253 | "fRatePedTrigEvts" => "Rate Ped.Trig.<br>Evts [Hz]",
|
---|
254 | "fRateCalEvts" => "Rate Cal.<br>Evts [Hz]",
|
---|
255 | "fRateNullEvts" => "Rate Null<br>Evts [Hz]",
|
---|
256 | "fRateUnknownEvts" => "Rate Unknown<br>Evts [Hz]",
|
---|
257 | "fRatioCalEvents" => "Ratio Cal.<br>Events",
|
---|
258 | "fPulsePosCalib" => "Pulse Pos.<br>Calib",
|
---|
259 | "fIsolatedOuter" => "Isol.<br>Out",
|
---|
260 | "fIsolatedInner" => "Isol.<br>In",
|
---|
261 | "fMeanPedRmsOuter" => "Ped<br>Rms<br>Out",
|
---|
262 | "fMeanPedRmsInner" => "Ped<br>Rms<br>In",
|
---|
263 | "fArrTimeMeanInner" => "Arr<br>Time<br>In",
|
---|
264 | "fArrTimeMeanOuter" => "Arr<br>Time<br>Out",
|
---|
265 | "fArrTimeRmsInner" => "Rms<br>ArrT<br>In",
|
---|
266 | "fArrTimeRmsOuter" => "Rms<br>ArrT<br>Out",
|
---|
267 | "fMeanSignalInner" => "Sign<br>In",
|
---|
268 | "fMeanSignalOuter" => "Sign<br>Out",
|
---|
269 | "fMeanPulsePosInner" => "Pulse<br>PosIn",
|
---|
270 | "fPulsePosMean" => "Puls<br>Pos",
|
---|
271 | "fConvFactorInner" => "Conv<br>In",
|
---|
272 | "fConvFactorOuter" => "Conv<br>Out",
|
---|
273 | // "fConvFactorInner" => "Conv Inner<BR>[ph/FADC]",
|
---|
274 | // "fConvFactorOuter" => "Conv Outer<BR>[ph/FADC]",
|
---|
275 | "fIsolatedMaxCluster" => "Isol.<br>Max<br>Cl",
|
---|
276 | "fMeanNumberIslands" => "Mean<br>Num<br>Isl",
|
---|
277 | "fPSF" => "PSF<br>[mm]",
|
---|
278 | "fRatio" => "Ratio<br>[%]",
|
---|
279 | "fMuonNumber" => "#<br>Muons",
|
---|
280 | "fEffOnTime" => "EffOn<br>Time<br>[s]",
|
---|
281 | "fEffOnTime/fRunTime" => "RelOn<br>Time",
|
---|
282 | "fEffOnTime/3600" => "EffOn<br>Time<br>[h]",
|
---|
283 | "fMuonRate" => "Muon<br>Rate<br>[Hz]",
|
---|
284 | "fInhomogeneity" => "Inhom",
|
---|
285 | "fDataRate" => "Img.<br>Rate<br>[Hz]",
|
---|
286 | "fSparkRate" => "Spark<br>Rate<br>[Hz]",
|
---|
287 | "fMaxHumidity" => "Max<br>Hum<br>[%]",
|
---|
288 | "fBrightnessMed" => "Sky<br>Brightn.<br>Med",
|
---|
289 | "fBrightnessRMS" => "Sky<br>Brightn.<br>RMS",
|
---|
290 | "fNumStarsMed" => "#<br>id.<br>stars",
|
---|
291 | "fNumStarsRMS" => "RMS<br>id.<br>stars",
|
---|
292 | "fNumStarsCorMed" => "#<br>cor.<br>stars",
|
---|
293 | "fNumStarsCorRMS" => "RMS<br>cor.<br>stars",
|
---|
294 | "fAvgWindSpeed" => "Avg. wind<br>speed [m/s]",
|
---|
295 | "fAvgTemperature" => "Avg. temp.<br>[deg]",
|
---|
296 | "fAvgHumidity" => "Avg. hum.<br>[%]",
|
---|
297 | "fAvgTempSky" => "Avg. sky<br>temp [deg]",
|
---|
298 | "fAvgCloudiness" => "Avg. cloud.<br>[%]",
|
---|
299 | "fRmsCloudiness" => "RMS cloud.<br>[%]",
|
---|
300 | "fEvents" => "DataEvents",
|
---|
301 | "fPositionSignal" => "ArrTime",
|
---|
302 | "fPositionFWHM" => "ArrTimeFWHM",
|
---|
303 | "fHeightSignal" => "Signal",
|
---|
304 | "fHeightFWHM" => "SignalFWHM",
|
---|
305 | "fHasSignal" => "HasSignal",
|
---|
306 | "fHasPedestal" => "HasPedestal",
|
---|
307 | "fPositionAsym" => "ArrTimeAsym",
|
---|
308 | "fHeightAsym" => "SignalAsym",
|
---|
309 | "fEventsInterlaced" => "CalEvents",
|
---|
310 | "fPositionSignalInterlaced" => "ArrTimeCal",
|
---|
311 | "fPositionFWHMInterlaced" => "ArrTimeFWHMCal",
|
---|
312 | "fHeightSignalInterlaced" => "SignalCal",
|
---|
313 | "fHeightFWHMInterlaced" => "SignalFWHMCal",
|
---|
314 | "fHasSignalInterlaced" => "HasSignalCal",
|
---|
315 | "fHasPedestalInterlaced" => "HasPedestalCal",
|
---|
316 | "fPositionAsymInterlaced" => "ArrTimeAsymCal",
|
---|
317 | "fHeightAsymInterlaced" => "SignalAsymCal",
|
---|
318 | "fExcessEvents" => "Exc<br>Evts",
|
---|
319 | "fBackgroundEvents" => "Bg<br>Evts",
|
---|
320 | "fSignalEvents" => "Sign<br>Evts",
|
---|
321 | "fSignificance" => "Sign",
|
---|
322 | "fScaleFactor" => "Scale",
|
---|
323 | "fDataSetNumber" => "Data<br>Set#",
|
---|
324 | "fComment" => "Comment",
|
---|
325 | "fUserName" => "User",
|
---|
326 | "fRunTime" => "Up<br>Time<br>[min]",
|
---|
327 | "fDataSetName" => "Name",
|
---|
328 | "fExcessEvents*60/fEffOnTime" => "Exc<br>Rate",
|
---|
329 | "fBackgroundEvents*60/fEffOnTime" => "Bg<br>Rate",
|
---|
330 | "fSignalEvents*60/fEffOnTime" => "Sign<br>Rate",
|
---|
331 | "Round(fSignificance/Sqrt(fEffOnTime/3600),2)" => "Signf<br>Rate",
|
---|
332 | "SUM(fRunTime)/3600" => "Time [h]",
|
---|
333 | "SUM(fNumEvents)" => "Evts",
|
---|
334 | "Min(fZenithDistanceMin)" => "ZDMin",
|
---|
335 | "Max(fZenithDistanceMax)" => "ZDMax",
|
---|
336 | "Min(fZenithDistance)" => "ZdMin",
|
---|
337 | "Max(fZenithDistance)" => "ZdMax",
|
---|
338 | // "fArrTimeLimit" => "ArrTRms",
|
---|
339 | // "fArrTimeLimit" => "ArrTime",
|
---|
340 | "fPulsePosLimit" => "PulsePos",
|
---|
341 | "fRunTimeLimit" => "UpTime",
|
---|
342 | "fPedRmsInLimit" => "PedRms",
|
---|
343 | "fMuonRateLimit" => "MuonRate",
|
---|
344 | "fMuonNumLimit" => "# Muons",
|
---|
345 | "fMuonCalLimit" => "MuonCal",
|
---|
346 | "fPSFLimit" => "PSF",
|
---|
347 | "fInhomLimit" => "Inhom.",
|
---|
348 | "fNumIslLimit" => "# Islands",
|
---|
349 | "fImgRateLimit" => "ImgRate",
|
---|
350 | "fSkyBrightLimit" => "SkyBrightness",
|
---|
351 | "fNumStarsLimit" => "# id. Stars",
|
---|
352 | "fNumStarsCorLimit" => "# cor. Stars",
|
---|
353 | "fUnsInLimit" => "Unsuit.In",
|
---|
354 | "fIsoInLimit" => "Isol.In",
|
---|
355 | "fIMCLimit" => "IMC",
|
---|
356 | "fMaxHumLimit" => "Humidity",
|
---|
357 | "fZdMinLimit" => "ZdMin",
|
---|
358 | "fZdMaxLimit" => "ZdMax",
|
---|
359 | "fRelTimeMaxLimit" => "Rel.Ontime",
|
---|
360 | "fRelTimeMinLimit" => "Rel.Ontime",
|
---|
361 | "fEMin" => "Emin",
|
---|
362 | "fEMax" => "Emax",
|
---|
363 | "fParticleTypeName" => "Particle",
|
---|
364 | "fStartTime" => "Process",
|
---|
365 | "fFailedTime" => "Failed",
|
---|
366 | "fReturnCode" => "Ret<br>Code",
|
---|
367 | "fProgramId" => "Prgr<br>Id",
|
---|
368 | "fTimestamp" => "Time",
|
---|
369 | "fExposure" => "Exposure",
|
---|
370 | "fFitsFileName" => "FitsFile",
|
---|
371 | "fObjectName" => "Object",
|
---|
372 | "fSkyLevel" => "SkyLevel",
|
---|
373 | "fFWHM" => "FWHM",
|
---|
374 | "fApertureRadius" => "Ap.Rad.",
|
---|
375 | "fInstrumentalMag" => "Instr.Mag.",
|
---|
376 | "fInstrumentalMagErr" => "Instr.Mag.Err.",
|
---|
377 | "fStatusName" => "StatusCode",
|
---|
378 | "fTelescopeName" => "Telescope",
|
---|
379 | "fBandName" => "Band",
|
---|
380 | // "COUNT(*)" => "# Runs",
|
---|
381 | // "COUNT(*)" => "Sequence",
|
---|
382 | );
|
---|
383 |
|
---|
384 |
|
---|
385 | $rightalign = array
|
---|
386 | (
|
---|
387 | $alias["fRawFileKEY"] => "1",
|
---|
388 | $alias["fFormatVersion"] => "1",
|
---|
389 | // $alias["fRunNumber"] => "1",
|
---|
390 | $alias["fZenithDistance"] => "1",
|
---|
391 | $alias["fAzimuth"] => "1",
|
---|
392 | $alias["fMeanTriggerRate"] => "1",
|
---|
393 | $alias["fDaqTriggerRate"] => "1",
|
---|
394 | $alias["fDaqStoreRate"] => "1",
|
---|
395 | $alias["fL2RatePresc"] => "1",
|
---|
396 | $alias["fL3TriggerRate"] => "1",
|
---|
397 | $alias["fL2RateUnpresc"] => "1",
|
---|
398 | $alias["fSequenceFirst"] => "1",
|
---|
399 | $alias["fNumEvents"] => "1",
|
---|
400 | $alias["fRunTime/60"] => "1",
|
---|
401 | $alias["fSequenceLast"] => "1",
|
---|
402 | $alias["fZenithDistanceMin"] => "1",
|
---|
403 | $alias["fZenithDistanceMax"] => "1",
|
---|
404 | $alias["fWheelPos1"] => "1",
|
---|
405 | $alias["fWheelPos2"] => "1",
|
---|
406 | $alias["fAzimuthMin"] => "1",
|
---|
407 | $alias["fAzimuthMax"] => "1",
|
---|
408 | $alias["fUnsuitableOuter"] => "1",
|
---|
409 | $alias["fUnreliableOuter"] => "1",
|
---|
410 | $alias["fUnsuitableInner"] => "1",
|
---|
411 | $alias["fUnreliableInner"] => "1",
|
---|
412 | $alias["fUnsuitable50"] => "1",
|
---|
413 | $alias["fUnsuitable01"] => "1",
|
---|
414 | $alias["fUnsuitableMax"] => "1",
|
---|
415 | $alias["fDeadMax"] => "1",
|
---|
416 | $alias["fRateTrigEvts"] => "1",
|
---|
417 | $alias["fRateSumEvts"] => "1",
|
---|
418 | $alias["fRatePedEvts"] => "1",
|
---|
419 | $alias["fRatePedTrigEvts"] => "1",
|
---|
420 | $alias["fRateCalEvts"] => "1",
|
---|
421 | $alias["fRateNullEvts"] => "1",
|
---|
422 | $alias["fRateUnknownEvts"] => "1",
|
---|
423 | $alias["fRatioCalEvents"] => "1",
|
---|
424 | $alias["fPulsePosCalib"] => "1",
|
---|
425 | $alias["fIsolatedOuter"] => "1",
|
---|
426 | $alias["fIsolatedInner"] => "1",
|
---|
427 | $alias["fMeanPedRmsOuter"] => "1",
|
---|
428 | $alias["fMeanPedRmsInner"] => "1",
|
---|
429 | $alias["fArrTimeMeanInner"] => "1",
|
---|
430 | $alias["fArrTimeMeanOuter"] => "1",
|
---|
431 | $alias["fArrTimeRmsInner"] => "1",
|
---|
432 | $alias["fArrTimeRmsOuter"] => "1",
|
---|
433 | $alias["fMeanSignalInner"] => "1",
|
---|
434 | $alias["fMeanSignalOuter"] => "1",
|
---|
435 | $alias["fPulsePosMean"] => "1",
|
---|
436 | $alias["fConvFactorInner"] => "1",
|
---|
437 | $alias["fConvFactorOuter"] => "1",
|
---|
438 | $alias["fIsolatedMaxCluster"] => "1",
|
---|
439 | $alias["fMeanNumberIslands"] => "1",
|
---|
440 | $alias["fPSF"] => "1",
|
---|
441 | $alias["fRatio"] => "1",
|
---|
442 | $alias["fMuonNumber"] => "1",
|
---|
443 | $alias["fEffOnTime"] => "1",
|
---|
444 | $alias["fEffOnTime/fRunTime"] => "1",
|
---|
445 | $alias["fEffOnTime/3600"] => "1",
|
---|
446 | $alias["fMuonRate"] => "1",
|
---|
447 | $alias["fInhomogeneity"] => "1",
|
---|
448 | $alias["fDataRate"] => "1",
|
---|
449 | $alias["fSparkRate"] => "1",
|
---|
450 | $alias["fMaxHumidity"] => "1",
|
---|
451 | $alias["fBrightnessMed"] => "1",
|
---|
452 | $alias["fBrightnessRMS"] => "1",
|
---|
453 | $alias["fNumStarsMed"] => "1",
|
---|
454 | $alias["fNumStarsRMS"] => "1",
|
---|
455 | $alias["fNumStarsCorMed"] => "1",
|
---|
456 | $alias["fNumStarsCorRMS"] => "1",
|
---|
457 | $alias["fAvgWindSpeed"] => "1",
|
---|
458 | $alias["fAvgTemperature"] => "1",
|
---|
459 | $alias["fAvgHumidity"] => "1",
|
---|
460 | $alias["fAvgTempSky"] => "1",
|
---|
461 | $alias["fAvgCloudiness"] => "1",
|
---|
462 | $alias["fRmsCloudiness"] => "1",
|
---|
463 | $alias["fDate"] => "1",
|
---|
464 | $alias["fCaCoFileFound"] => "1",
|
---|
465 | $alias["fTest"] => "1",
|
---|
466 | $alias["fSourceKEY"] => "1",
|
---|
467 | $alias["fEvents"] => "1",
|
---|
468 | $alias["fPositionSignal"] => "1",
|
---|
469 | $alias["fPositionFWHM"] => "1",
|
---|
470 | $alias["fHeightSignal"] => "1",
|
---|
471 | $alias["fHeightFWHM"] => "1",
|
---|
472 | $alias["fHasSignal"] => "1",
|
---|
473 | $alias["fHasPedestal"] => "1",
|
---|
474 | $alias["fPositionAsym"] => "1",
|
---|
475 | $alias["fHeightAsym"] => "1",
|
---|
476 | $alias["fEventsInterlaced"] => "1",
|
---|
477 | $alias["fPositionSignalInterlaced"] => "1",
|
---|
478 | $alias["fPositionFWHMInterlaced"] => "1",
|
---|
479 | $alias["fHeightSignalInterlaced"] => "1",
|
---|
480 | $alias["fHeightFWHMInterlaced"] => "1",
|
---|
481 | $alias["fHasSignalInterlaced"] => "1",
|
---|
482 | $alias["fHasPedestalInterlaced"] => "1",
|
---|
483 | $alias["fPositionAsymInterlaced"] => "1",
|
---|
484 | $alias["fHeightAsymInterlaced"] => "1",
|
---|
485 | $alias["fReturnCode"] => "1",
|
---|
486 | $alias["fProgramId"] => "1",
|
---|
487 | "Time" => "1",
|
---|
488 | // "Time [h]" => "1",
|
---|
489 | "ZDMin" => "1",
|
---|
490 | "ZDMax" => "1",
|
---|
491 | // "Evts#" => "1",
|
---|
492 | // "Runs#" => "1"
|
---|
493 | "Runs" => "1",
|
---|
494 | "Evts" => "1",
|
---|
495 | );
|
---|
496 |
|
---|
497 | function GetCheck($fromtable, $val)
|
---|
498 | {
|
---|
499 | $checks = array
|
---|
500 | (
|
---|
501 | "fRunTypeName" => $fromtable . ".fRunTypeKEY",
|
---|
502 | "fProjectName" => $fromtable . ".fProjectKEY",
|
---|
503 | "fSourceName" => $fromtable . ".fSourceKEY",
|
---|
504 | "fMagicNumberName" => $fromtable . ".fMagicNumberKEY",
|
---|
505 | "fL1TriggerTableName" => $fromtable . ".fL1TriggerTableKEY",
|
---|
506 | "fL2TriggerTableName" => $fromtable . ".fL2TriggerTableKEY",
|
---|
507 | "fL3TriggerTableName" => $fromtable . ".fL3TriggerTableKEY",
|
---|
508 | "fHvSettingsName" => $fromtable . ".fHvSettingsKEY",
|
---|
509 | "fCalibrationScriptName" => $fromtable . ".fCalibrationScriptKEY",
|
---|
510 | "fExcludedFDAName" => $fromtable . ".fExcludedFDAKEY",
|
---|
511 | "fManuallyChangedName" => $fromtable . ".fManuallyChangedKEY",
|
---|
512 | "fObservationModeName" => $fromtable . ".fObservationModeKEY",
|
---|
513 | "fSumTriggerFlagName" => $fromtable . ".fSumTriggerFlagKEY",
|
---|
514 | "fDiscriminatorThresholdTableName" => $fromtable . ".fDiscriminatorThresholdTableKEY",
|
---|
515 | "fTriggerDelayTableName" => $fromtable . ".fTriggerDelayTableKEY",
|
---|
516 | "fTestFlagName" => $fromtable . ".fTestFlagKEY",
|
---|
517 | "fLightConditionsName" => $fromtable . ".fLightConditionsKEY",
|
---|
518 | "fParticleTypeName" => $fromtable . ".fParticleTypeKEY",
|
---|
519 | "fFitsFileName" => $fromtable . ".fFitsFileKEY",
|
---|
520 | "fObjectName" => $fromtable . ".fObjectKEY",
|
---|
521 | "fStatusName" => $fromtable . ".fStatusKEY",
|
---|
522 | "fBandName" => $fromtable . ".fBandKEY",
|
---|
523 | "fUserName" => $fromtable . ".fUserKEY",
|
---|
524 | "fTelescopeName" => $fromtable . ".fTelescopeKEY",
|
---|
525 | "fCycleName" => $fromtable . ".fCycleKEY",
|
---|
526 | "fPIName" => $fromtable . ".fPIKEY",
|
---|
527 | "fWorkingGroupName" => $fromtable . ".fWorkingGroupKEY",
|
---|
528 | "fProposalName" => $fromtable . ".fProposalKEY",
|
---|
529 | );
|
---|
530 |
|
---|
531 | $check="";
|
---|
532 | if (!empty($checks[$val]))
|
---|
533 | $check=$checks[$val];
|
---|
534 | return $check;
|
---|
535 | }
|
---|
536 |
|
---|
537 |
|
---|
538 | function GetTable($fromtable, $val)
|
---|
539 | {
|
---|
540 | $tables = array
|
---|
541 | (
|
---|
542 | "fSequenceFirst" => $fromtable . ".fSequenceFirst",
|
---|
543 | "fSequenceLast" => $fromtable . ".fSequenceLast",
|
---|
544 | "fNumEvents" => $fromtable . ".fNumEvents",
|
---|
545 | "fRunStart" => $fromtable . ".fRunStart",
|
---|
546 | "fLastUpdate" => $fromtable . ".fLastUpdate",
|
---|
547 | "fRunTime" => $fromtable . ".fRunTime",
|
---|
548 | "fRunTime/60" => $fromtable . ".fRunTime/60",
|
---|
549 | "fAzimuthMin" => $fromtable . ".fAzimuthMin",
|
---|
550 | "fAzimuthMax" => $fromtable . ".fAzimuthMax",
|
---|
551 | "fZenithDistanceMin" => $fromtable . ".fZenithDistanceMin",
|
---|
552 | "fZenithDistanceMax" => $fromtable . ".fZenithDistanceMax",
|
---|
553 | "fRunNumber" => "RunData.fRunNumber",
|
---|
554 | "fRunStop" => "RunData.fRunStop",
|
---|
555 | "fAzimuth" => "RunData.fAzimuth",
|
---|
556 | "fZenithDistance" => "RunData.fZenithDistance",
|
---|
557 | "fFormatVersion" => "RunData.fFormatVersion",
|
---|
558 | "fRunTypeName" => "RunType.fRunTypeName",
|
---|
559 | "fDaqStoreRate" => "RunData.fDaqStoreRate",
|
---|
560 | "fDaqTriggerRate" => "RunData.fDaqTriggerRate",
|
---|
561 | "fMeanTriggerRate" => "RunData.fMeanTriggerRate",
|
---|
562 | "fL2RatePresc" => "RunData.fL2RatePresc",
|
---|
563 | "fL3TriggerRate" => "RunData.fL3TriggerRate",
|
---|
564 | "fL2RateUnpresc" => "RunData.fL2RateUnpresc",
|
---|
565 | "fMagicNumberName" => "MagicNumber.fMagicNumberName",
|
---|
566 | "fExcludedFDAName" => "ExcludedFDA.fExcludedFDAName",
|
---|
567 | "fProjectName" => "Project.fProjectName",
|
---|
568 | "fSourceName" => "Source.fSourceName",
|
---|
569 | "fL1TriggerTableName" => "L1TriggerTable.fL1TriggerTableName",
|
---|
570 | "fL2TriggerTableName" => "L2TriggerTable.fL2TriggerTableName",
|
---|
571 | "fL3TriggerTableName" => "L3TriggerTable.fL3TriggerTableName",
|
---|
572 | "fHvSettingsName" => "HvSettings.fHvSettingsName",
|
---|
573 | "fManuallyChangedName" => "ManuallyChanged.fManuallyChangedName",
|
---|
574 | "fObservationModeName" => "ObservationMode.fObservationModeName",
|
---|
575 | "fSumTriggerFlagName" => "SumTriggerFlag.fSumTriggerFlagName",
|
---|
576 | "fTriggerDelayTableName" => "TriggerDelayTable.fTriggerDelayTableName",
|
---|
577 | "fDiscriminatorThresholdTableName" => "DiscriminatorThresholdTable.fDiscriminatorThesholdTableName",
|
---|
578 | "fCalibrationScriptName" => "CalibrationScript.fCalibrationScriptName",
|
---|
579 | "fTestFlagName" => "TestFlag.fTestFlagName",
|
---|
580 | "fLightConditionsName" => "LightConditions.fLightConditionsName",
|
---|
581 | "fRawFileAvail" => "RunProcessStatus.fRawFileAvail",
|
---|
582 | "fCCFileAvail" => "RunProcessStatus.fCCFileAvail",
|
---|
583 | "fCaCoFileAvail" => "RunProcessStatus.fCaCoFileAvail",
|
---|
584 | "fCaCoFileFound" => "RunProcessStatus.fCaCoFileFound",
|
---|
585 | "fTimingCorrection" => "RunProcessStatus.fTimingCorrection",
|
---|
586 | // "fFillDotRaw" => "RunProcessStatus.fFillDotRaw",
|
---|
587 | "fSequenceFileWritten" => "SequenceProcessStatus.fSequenceFileWritten",
|
---|
588 | "fAllFilesAvail" => "SequenceProcessStatus.fAllFilesAvail",
|
---|
589 | "fCallisto" => "SequenceProcessStatus.fCallisto",
|
---|
590 | "fFillCallisto" => "SequenceProcessStatus.fFillCallisto",
|
---|
591 | "fStar" => "SequenceProcessStatus.fStar",
|
---|
592 | "fFillStar" => "SequenceProcessStatus.fFillStar",
|
---|
593 | "fUnsuitableInner" => "Calibration.fUnsuitableInner",
|
---|
594 | "fUnsuitableOuter" => "Calibration.fUnsuitableOuter",
|
---|
595 | "fUnsuitable50" => "Calibration.fUnsuitable50",
|
---|
596 | "fUnsuitable01" => "Calibration.fUnsuitable01",
|
---|
597 | "fUnsuitableMax" => "Calibration.fUnsuitableMax",
|
---|
598 | "fDeadMax" => "Calibration.fDeadMax",
|
---|
599 | "fRateTrigEvts" => "Calibration.fRateTrigEvts",
|
---|
600 | "fRateSumEvts" => "Calibration.fRateSumEvts",
|
---|
601 | "fRatePedEvts" => "Calibration.fRatePedEvts",
|
---|
602 | "fRatePedTrigEvts" => "Calibration.fRatePedTrigEvts",
|
---|
603 | "fRateCalEvts" => "Calibration.fRateCalEvts",
|
---|
604 | "fRateNullEvts" => "Calibration.fRateNullEvts",
|
---|
605 | "fRateUnknownEvts" => "Calibration.fRateUnknownEvts",
|
---|
606 | "fRatioCalEvents" => "Calibration.fRatioCalEvents",
|
---|
607 | "fPulsePosCalib" => "Calibration.fPulsePosCalib",
|
---|
608 | "fUnreliableInner" => "Calibration.fUnreliableInner",
|
---|
609 | "fUnreliableOuter" => "Calibration.fUnreliableOuter",
|
---|
610 | "fIsolatedInner" => "Calibration.fIsolatedInner",
|
---|
611 | "fIsolatedOuter" => "Calibration.fIsolatedOuter",
|
---|
612 | "fIsolatedMaxCluster" => "Calibration.fIsolatedMaxCluster",
|
---|
613 | "fLastUpdate" => "Calibration.fLastUpdate",
|
---|
614 | "fMeanPedRmsInner" => "Calibration.fMeanPedRmsInner",
|
---|
615 | "fMeanPedRmsOuter" => "Calibration.fMeanPedRmsOuter",
|
---|
616 | "fArrTimeMeanInner" => "Calibration.fArrTimeMeanInner",
|
---|
617 | "fArrTimeMeanOuter" => "Calibration.fArrTimeMeanOuter",
|
---|
618 | "fArrTimeRmsInner" => "Calibration.fArrTimeRmsInner",
|
---|
619 | "fArrTimeRmsOuter" => "Calibration.fArrTimeRmsOuter",
|
---|
620 | "fMeanSignalInner" => "Calibration.fMeanSignalInner",
|
---|
621 | "fMeanSignalOuter" => "Calibration.fMeanSignalOuter",
|
---|
622 | "fPulsePosMean" => "Calibration.fPulsePosMean",
|
---|
623 | "fConvFactorInner" => "Calibration.fConvFactorInner",
|
---|
624 | "fConvFactorOuter" => "Calibration.fConvFactorOuter",
|
---|
625 | "fMeanNumberIslands" => "Star.fMeanNumberIslands",
|
---|
626 | "fPSF" => "Star.fPSF",
|
---|
627 | "fRatio" => "Star.fRatio",
|
---|
628 | "fMuonNumber" => "Star.fMuonNumber",
|
---|
629 | "fEffOnTime" => "fEffOnTime",
|
---|
630 | "fEffOnTime/fRunTime" => "Sequences.fRunTime/Star.fEffOnTime",
|
---|
631 | "fEffOnTime/3600" => "fEffOnTime/3600",
|
---|
632 | // "fEffOnTime" => $fromtable . ".fEffOnTime",
|
---|
633 | "fMuonRate" => "Star.fMuonRate",
|
---|
634 | "fInhomogeneity" => "Star.fInhomogeneity",
|
---|
635 | "fDataRate" => "Star.fDataRate",
|
---|
636 | "fSparkRate" => "Star.fSparkRate",
|
---|
637 | "fMaxHumidity" => "Star.fMaxHumidity",
|
---|
638 | "fBrightnessMed" => "Star.fBrightnessMed",
|
---|
639 | "fBrightnessRMS" => "Star.fBrightnessRMS",
|
---|
640 | "fNumStarsMed" => "Star.fNumStarsMed",
|
---|
641 | "fNumStarsRMS" => "Star.fNumStarsRMS",
|
---|
642 | "fNumStarsCorMed" => "Star.fNumStarsCorMed",
|
---|
643 | "fNumStarsCorRMS" => "Star.fNumStarsCorRMS",
|
---|
644 | "fAvgWindSpeed" => "Star.fAvgWindSpeed",
|
---|
645 | "fAvgTemperature" => "Star.fAvgTemperature",
|
---|
646 | "fAvgHumidity" => "Star.fAvgHumidity",
|
---|
647 | "fAvgTempSky" => "Star.fAvgTempSky",
|
---|
648 | "fAvgCloudiness" => "Star.fAvgCloudiness",
|
---|
649 | "fRmsCloudiness" => "Star.fRmsCloudiness",
|
---|
650 | "fDataSetNumber" => $fromtable . ".fDataSetNumber",
|
---|
651 | "fDataSetInserted" => "DataSetProcessStatus.fDataSetInserted",
|
---|
652 | "fDataSetFileWritten" => "DataSetProcessStatus.fDataSetFileWritten",
|
---|
653 | "fStarFilesAvail" => "DataSetProcessStatus.fStarFilesAvail",
|
---|
654 | "fGanymed" => "DataSetProcessStatus.fGanymed",
|
---|
655 | "fFillGanymed" => "DataSetProcessStatus.fFillGanymed",
|
---|
656 | "fComment" => "DataSets.fComment",
|
---|
657 | "fDataSetName" => "DataSets.fDataSetName",
|
---|
658 | "fEvents" => "DataCheck.fEvents",
|
---|
659 | "fPositionSignal" => "DataCheck.fPositionSignal",
|
---|
660 | "fPositionFWHM" => "DataCheck.fPositionFWHM",
|
---|
661 | "fHeightSignal" => "DataCheck.fHeightSignal",
|
---|
662 | "fHeightFWHM" => "DataCheck.fHeightFWHM",
|
---|
663 | "fHasSignal" => "DataCheck.fHasSignal",
|
---|
664 | "fHasPedestal" => "DataCheck.fHasPedestal",
|
---|
665 | "fPositionAsym" => "DataCheck.fPositionAsym",
|
---|
666 | "fHeightAsym" => "DataCheck.fHeightAsym",
|
---|
667 | "fEventsInterlaced" => "DataCheck.fEventsInterlaced",
|
---|
668 | "fPositionSignalInterlaced" => "DataCheck.fPositionSignalInterlaced",
|
---|
669 | "fPositionFWHMInterlaced" => "DataCheck.fPositionFWHMInterlaced",
|
---|
670 | "fHeightSignalInterlaced" => "DataCheck.fHeightSignalInterlaced",
|
---|
671 | "fHeightFWHMInterlaced" => "DataCheck.fHeightFWHMInterlaced",
|
---|
672 | "fHasSignalInterlaced" => "DataCheck.fHasSignalInterlaced",
|
---|
673 | "fHasPedestalInterlaced" => "DataCheck.fHasPedestalInterlaced",
|
---|
674 | "fPositionAsymInterlaced" => "DataCheck.fPositionAsymInterlaced",
|
---|
675 | "fHeightAsymInterlaced" => "DataCheck.fHeightAsymInterlaced",
|
---|
676 | "fExcessEvents" => "Ganymed.fExcessEvents",
|
---|
677 | "fBackgroundEvents" => "Ganymed.fBackgroundEvents",
|
---|
678 | "fSignalEvents" => "Ganymed.fSignalEvents",
|
---|
679 | "fSignificance" => "Ganymed.fSignificance",
|
---|
680 | "fScaleFactor" => "Ganymed.fScaleFactor",
|
---|
681 | "fExcessEvents*60/fEffOnTime" => "fExcessEvents*60/fEffOnTime",
|
---|
682 | "fBackgroundEvents*60/fEffOnTime" => "fBackgroundEvents*60/fEffOnTime",
|
---|
683 | "fSignalEvents*60/fEffOnTime" => "fSignalEvents*60/fEffOnTime",
|
---|
684 | "Round(fSignificance/Sqrt(fEffOnTime/3600),2)" => "Round(fSignificance/Sqrt(fEffOnTime/3600),2)",
|
---|
685 | "SUM(fRunTime)/3600" => "'Time [h]'",
|
---|
686 | "SUM(fNumEvents)" => "'Evts'",
|
---|
687 | "Min(fZenithDistanceMin)" => "'ZDMin'",
|
---|
688 | "Max(fZenithDistanceMax)" => "'ZDMax'",
|
---|
689 | "Min(fZenithDistance)" => "'ZdMin'",
|
---|
690 | "Max(fZenithDistance)" => "'ZdMax'",
|
---|
691 | // "COUNT(*)" => "'Sequence'",
|
---|
692 | "fStartTime" => "fStartTime",
|
---|
693 | "fFailedTime" => "fFailedTime",
|
---|
694 | "fReturnCode" => "fReturnCode",
|
---|
695 | "fProgramId" => "fProgramId",
|
---|
696 | "fParticleTypeName" => "ParticleType.fParticleTypeName",
|
---|
697 | "fFitsFileName" => "FitsFile.fFitsFileName",
|
---|
698 | "fObjectName" => "Object.fObjectName",
|
---|
699 | "fStatusName" => "Status.fStatusName",
|
---|
700 | "fBandName" => "Band.fBandName",
|
---|
701 | "fTelescopeName" => "Telescope.fTelescopeName",
|
---|
702 | "fUserName" => "User.fUserName",
|
---|
703 | "fCycleName" => "Cycle.fCycleName",
|
---|
704 | "fPIName" => "PI.fPIName",
|
---|
705 | "fWorkingGroupName" => "WorkingGroup.fWorkingGroupName",
|
---|
706 | "fProposalName" => "Proposal.fProposalName",
|
---|
707 | "fWheelPos1" => "RunData.fWheelPos1",
|
---|
708 | "fWheelPos2" => "RunData.fWheelPos2",
|
---|
709 | );
|
---|
710 |
|
---|
711 | $table="";
|
---|
712 | if (!empty($tables[$val]))
|
---|
713 | $table=$tables[$val];
|
---|
714 | if ($val=="Tel:Run/File")
|
---|
715 | $table="'Tel:Run/File'";
|
---|
716 | if ($val=="Tel:Sequ")
|
---|
717 | $table="CONCAT('M', Sequences.fTelescopeNumber, ':', LPAD(Sequences.fSequenceFirst, 8, '0'))";
|
---|
718 | if ($val=="NumRuns")
|
---|
719 | $table="'# Runs'";
|
---|
720 | if ($val=="NumSequ")
|
---|
721 | $table="'# Sequ'";
|
---|
722 | if ($val=="NumDS")
|
---|
723 | $table="'# Datasets'";
|
---|
724 | if ($val=="NumDays")
|
---|
725 | $table="'# days'";
|
---|
726 | if (empty($table))
|
---|
727 | $table=$val;
|
---|
728 | return $table;
|
---|
729 | }
|
---|
730 |
|
---|
731 |
|
---|
732 | function GetJoin($fromtable, $val)
|
---|
733 | {
|
---|
734 | $joins = array
|
---|
735 | (
|
---|
736 | "fRunTypeName" => " LEFT JOIN RunType USING(fRunTypeKEY) ",
|
---|
737 | "fProjectName" => " LEFT JOIN Project USING(fProjectKEY) ",
|
---|
738 | "fSourceName" => " LEFT JOIN Source USING(fSourceKEY) ",
|
---|
739 | "fMagicNumberName" => " LEFT JOIN MagicNumber USING(fMagicNumberKEY) ",
|
---|
740 | "fL1TriggerTableName" => " LEFT JOIN L1TriggerTable USING(fL1TriggerTableKEY) ",
|
---|
741 | "fL2TriggerTableName" => " LEFT JOIN L2TriggerTable USING(fL2TriggerTableKEY) ",
|
---|
742 | "fL3TriggerTableName" => " LEFT JOIN L3TriggerTable USING(fL3TriggerTableKEY) ",
|
---|
743 | "fHvSettingsName" => " LEFT JOIN HvSettings USING(fHvSettingsKEY) ",
|
---|
744 | "fCalibrationScriptName" => " LEFT JOIN CalibrationScript USING(fCalibrationScriptKEY) ",
|
---|
745 | "fExcludedFDAName" => " LEFT JOIN ExcludedFDA USING(fExcludedFDAKEY) ",
|
---|
746 | "fManuallyChangedName" => " LEFT JOIN ManuallyChanged USING(fManuallyChangedKEY) ",
|
---|
747 | "fObservationModeName" => " LEFT JOIN ObservationMode USING(fObservationModeKEY) ",
|
---|
748 | "fSumTriggerFlagName" => " LEFT JOIN SumTriggerFlag USING(fSumTriggerFlagKEY) ",
|
---|
749 | "fDiscriminatorThresholdTableName" => " LEFT JOIN DiscriminatorThresholdTable USING(fDiscriminatorThresholdTableKEY) ",
|
---|
750 | "fTriggerDelayTableName" => " LEFT JOIN TriggerDelayTable USING(fTriggerDelayTableKEY) ",
|
---|
751 | "fTestFlagName" => " LEFT JOIN TestFlag USING(fTestFlagKEY) ",
|
---|
752 | "fLightConditionsName" => " LEFT JOIN LightConditions USING(fLightConditionsKEY) ",
|
---|
753 | "fParticleTypeName" => " LEFT JOIN ParticleType USING(fParticleTypeKEY) ",
|
---|
754 | "fFitsFileName" => " LEFT JOIN FitsFile USING(fFitsFileKEY) ",
|
---|
755 | "fObjectName" => " LEFT JOIN Object USING(fObjectKEY) ",
|
---|
756 | "fStatusName" => " LEFT JOIN Status USING(fStatusKEY) ",
|
---|
757 | "fBandName" => " LEFT JOIN Band USING(fBandKEY) ",
|
---|
758 | "fUserName" => " LEFT JOIN User USING(fUserKEY) ",
|
---|
759 | "fTelescopeName" => " LEFT JOIN Telescope USING(fTelescopeKEY) ",
|
---|
760 | "fCycleName" => " LEFT JOIN Cycle USING(fCycleKEY) ",
|
---|
761 | "fPIName" => " LEFT JOIN PI USING(fPIKEY) ",
|
---|
762 | "fWorkingGroupName" => " LEFT JOIN WorkingGroup USING(fWorkingGroupKEY) ",
|
---|
763 | "fProposalName" => " LEFT JOIN Proposal USING(fProposalKEY) ",
|
---|
764 | );
|
---|
765 |
|
---|
766 |
|
---|
767 | $join="";
|
---|
768 | if (!empty($joins[$val]))
|
---|
769 | $join=$joins[$val];
|
---|
770 | return $join;
|
---|
771 | }
|
---|
772 |
|
---|
773 |
|
---|
774 | ?>
|
---|