Changes between Version 33 and Version 34 of DatabaseBasedAnalysis


Ignore:
Timestamp:
08/04/18 22:22:23 (6 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis

    v33 v34  
    2727Let's first have a look at the total observation time of all Crab data in this period:
    2828
    29 {{{
     29{{{#!sql
    3030SELECT
    3131   COUNT(*),
     
    229229The 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
    230230
    231 {{{
     231{{{#!sql
    232232SELECT
    233233   Events.*,
     
    251251or with the list you wrote before
    252252
    253 {{{
     253{{{#!sql
    254254SELECT
    255255   Events.*,
     
    268268To run an analysis on the data you can use the following root macro "''ganymed.C''". It produces a theta-square plot. Its execution took about 5s ({{{root ganymed.C++}}})
    269269
    270 {{{
     270{{{#!cpp
    271271#include <iostream>
    272272
     
    391391You can of course include all the calculations into your query already
    392392
    393 {{{
     393{{{#!sql
    394394SELECT
    395395   Events.*,
     
    444444A simple macro just applying all the cuts would then be enough to do a theta-square plot
    445445
    446 {{{#!c
     446{{{#!cpp
    447447void ganymed3()
    448448{
     
    471471Combining everything into a single query is a bit tricky but works:
    472472
    473 {{{
     473{{{#!sql
    474474SELECT
    475475    Counter.*,