Changes between Version 16 and Version 17 of DatabaseBasedAnalysis


Ignore:
Timestamp:
08/04/18 16:24:17 (6 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis

    v16 v17  
    281281== Data retrieval ==
    282282
    283 The events themselves are stored in a table named '''Events'''
     283The 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{{{
     286SELECT
     287   Events.*,
     288   Position.X,
     289   Position.Y
     290FROM RunInfo
     291LEFT JOIN Events   USING (FileId)
     292LEFT JOIN Position USING (FileId, EvtNumber)
     293WHERE
     294   fSourceKey=5
     295AND
     296   fRunTypeKey=1
     297AND
     298   FileId BETWEEN 131101000 AND 131107000
     299AND
     300   fZenithDistanceMax<35
     301AND
     302   fR750Ref/fR750Cor>0.9
     303}}}
     304
     305or with the list you wrote before
     306
     307{{{
     308SELECT
     309   Events.*,
     310   Position.X,
     311   Position.Y
     312LEFT JOIN Events   USING (FileId)
     313LEFT JOIN Position USING (FileId, EvtNumber)
     314WHERE
     315   FileId IN ($MyList)
     316}}}
     317
     318using {{{--list.MyList=Crab.txt}}} as command-line option to rootifysql. Both queries are similar in execution time.
     319
     320
     321
    284322
    285323Some statistics: