| 283 | | The events themselves are stored in a table named '''Events''' |
| | 283 | The events themselves are stored in a table named '''Events'''. The position of the source in camera coordinates is stored in '''Position''. To get them, you can run the following query |
| | 284 | |
| | 285 | {{{ |
| | 286 | SELECT |
| | 287 | Events.*, |
| | 288 | Position.X, |
| | 289 | Position.Y |
| | 290 | FROM RunInfo |
| | 291 | LEFT JOIN Events USING (FileId) |
| | 292 | LEFT JOIN Position USING (FileId, EvtNumber) |
| | 293 | WHERE |
| | 294 | fSourceKey=5 |
| | 295 | AND |
| | 296 | fRunTypeKey=1 |
| | 297 | AND |
| | 298 | FileId BETWEEN 131101000 AND 131107000 |
| | 299 | AND |
| | 300 | fZenithDistanceMax<35 |
| | 301 | AND |
| | 302 | fR750Ref/fR750Cor>0.9 |
| | 303 | }}} |
| | 304 | |
| | 305 | or with the list you wrote before |
| | 306 | |
| | 307 | {{{ |
| | 308 | SELECT |
| | 309 | Events.*, |
| | 310 | Position.X, |
| | 311 | Position.Y |
| | 312 | LEFT JOIN Events USING (FileId) |
| | 313 | LEFT JOIN Position USING (FileId, EvtNumber) |
| | 314 | WHERE |
| | 315 | FileId IN ($MyList) |
| | 316 | }}} |
| | 317 | |
| | 318 | using {{{--list.MyList=Crab.txt}}} as command-line option to rootifysql. Both queries are similar in execution time. |
| | 319 | |
| | 320 | |
| | 321 | |