Changes between Version 16 and Version 17 of DatabaseBasedAnalysis/Examples


Ignore:
Timestamp:
08/15/18 11:04:48 (6 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis/Examples

    v16 v17  
    5252== Optimize Area-cut ==
    5353
    54 Assume 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.
    55 
    56 {{{#!sql
    57 SELECT
    58    MeanX,
    59    MeanY,
    60    Width,
    61    Length,
    62    CosDelta,
    63    SinDelta,
    64    M3Long,
    65    SlopeLong,
    66    Leakage1,
    67    NumIslands,
    68    NumUsedPixels,
    69    Size,
    70    X,
    71    Y
    72 FROM
    73    Events
    74 LEFT JOIN Position USING (FileId, EvtNumber)
    75 LEFT JOIN RunInfo  USING (FileId)
    76 WHERE
    77    fSourceKey=5
    78 AND
    79    fRunTypeKey=1
    80 AND
    81    FileId BETWEEN 170800000 AND 180800000
    82 AND
    83    fZenithDistanceMax<35
    84 AND
    85    fR750Cor>0.9*fR750Ref
    86 }}}
    87 
     54Assume you have written a large data set of good-weather, low zenith-distance Crab data with the previous 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.
     55
     56{{{#!Spoiler
    8857{{{#!cpp
    8958#include <iostream>
     
    261230    canv->cd(4);
    262231}
     232}}}
    263233}}}
    264234