Changes between Initial Version and Version 1 of DatabaseBasedAnalysis/Examples


Ignore:
Timestamp:
08/12/18 13:46:38 (7 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis/Examples

    v1 v1  
     1Assume you have written a large data set of good-weather, low zenith-distance Crab data with the following query to a file. The following will give you a few example of how you can make use of that in your analysis. To speed up things or decrease the file size (715MB), you might want to add additional cuts depending on your analysis. If you want to apply a Theta-square cut, please refer to DatabaseBasedAnalysis#Dataretrieval.
     2
     3{{{#!sql
     4SELECT
     5   Events.MeanX,
     6   Events.MeanY,
     7   Events.Width,
     8   Events.Length,
     9   Events.CosDelta,
     10   Events.SinDelta,
     11   Events.M3Long,
     12   Events.SlopeLong,
     13   Events.Leakage1,
     14   Events.NumIslands,
     15   Events.NumUsedPixels,
     16   Events.Size,
     17   Position.X,
     18   Position.Y
     19FROM
     20   Events
     21LEFT JOIN Position USING (FileId, EvtNumber)
     22LEFT JOIN RunInfo  USING (FileId)
     23WHERE
     24   fSourceKey=5
     25AND
     26   fRunTypeKey=1
     27AND
     28   FileId BETWEEN 170800000 AND 180800000
     29AND
     30   fZenithDistanceMax<35
     31AND
     32   fR750Cor>0.9*fR750Ref
     33}}}