Changes between Version 2 and Version 3 of DatabaseBasedAnalysis/calcsource


Ignore:
Timestamp:
Sep 2, 2018, 2:49:16 PM (11 months ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis/calcsource

    v2 v3  
    99== Getting the source ==
    1010
    11 The tool then requests right ascension and declination of the source observed with a given run by the following query:
     11The tool then requests right ascension and declination of the source observed with a given run (Source.*) and the pointing position of the telescope (RunInfo.*) by the following query:
    1212
    1313{{{#!sql
    1414SELECT
     15    RunInfo.fRightAscension,
     16    RunInfo.fDeclination,
    1517    Source.fRightAscension,
    1618    Source.fDeclination,
     
    3234== Getting events ==
    3335
    34 Then, a list of all event times and the pointing position in terms of right ascension/declination together with the corresponding event number is obtained for the given run by
     36Then, a list of all event times together with the corresponding event number is obtained for the given run by
    3537{{{#!sql
    3638SELECT
    37     `Ra`,
    38     `Dec`,
    3939    MJD,
    4040    MilliSec,
    41     NanoSec,
    4241    EvtNumber
    4342FROM
    44     Events
     43    Images
    4544WHERE
    4645    FileId=YYMMDDNNN
    4746}}}
    4847
    49 The FileId comes again from the command line argument. The table name for the '''Events''' table can be altered by `--table.events`.
     48The FileId comes again from the command line argument. The table name for the '''Images''' table can be altered by `--table.events`.
    5049
    5150For source and pointing position, zenith distance and azimuth is calculated using `libnova` and the wrapper `Nova::GetHrzFromEqu`. The result is then rotated into the camera and projected on a plane which gives the x/y coordinates in the camera.