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