Changes between Version 2 and Version 3 of DatabaseBasedAnalysis/calcsource
- Timestamp:
- 09/02/18 14:49:16 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseBasedAnalysis/calcsource
v2 v3 9 9 == Getting the source == 10 10 11 The tool then requests right ascension and declination of the source observed with a given run by the following query:11 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: 12 12 13 13 {{{#!sql 14 14 SELECT 15 RunInfo.fRightAscension, 16 RunInfo.fDeclination, 15 17 Source.fRightAscension, 16 18 Source.fDeclination, … … 32 34 == Getting events == 33 35 34 Then, a list of all event times and the pointing position in terms of right ascension/declinationtogether with the corresponding event number is obtained for the given run by36 Then, a list of all event times together with the corresponding event number is obtained for the given run by 35 37 {{{#!sql 36 38 SELECT 37 `Ra`,38 `Dec`,39 39 MJD, 40 40 MilliSec, 41 NanoSec,42 41 EvtNumber 43 42 FROM 44 Events43 Images 45 44 WHERE 46 45 FileId=YYMMDDNNN 47 46 }}} 48 47 49 The FileId comes again from the command line argument. The table name for the ''' Events''' table can be altered by `--table.events`.48 The FileId comes again from the command line argument. The table name for the '''Images''' table can be altered by `--table.events`. 50 49 51 50 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.