# Changes between Version 2 and Version 3 of DatabaseBasedAnalysis/calcsource

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

--

### Legend:

Unmodified
 v2 == Getting the source == The tool then requests right ascension and declination of the source observed with a given run by the following query: The 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: {{{#!sql SELECT RunInfo.fRightAscension, RunInfo.fDeclination, Source.fRightAscension, Source.fDeclination, == Getting events == 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 Then, a list of all event times together with the corresponding event number is obtained for the given run by {{{#!sql SELECT Ra, Dec, MJD, MilliSec, NanoSec, EvtNumber FROM Events Images WHERE FileId=YYMMDDNNN }}} The FileId comes again from the command line argument. The table name for the '''Events''' table can be altered by --table.events. The FileId comes again from the command line argument. The table name for the '''Images''' table can be altered by --table.events. For 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.