Changes between Version 31 and Version 32 of DatabaseBasedAnalysis/Examples


Ignore:
Timestamp:
09/12/18 16:06:05 (7 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis/Examples

    v31 v32  
    12911291There are several ways ot prepare a theta-square plot. If you want to change the cuts later on, you will have to download all the data and do it offline. However, this is time- and bandwidth-hungry. If you know your cuts already, an easy easy solution is to let mysql create the plot for you and just use a local program to plot it. It significantly decreases bandwidth and space requirement (maybe from several GB to just a few byte) and it significantly increase CPU requirement (because data does not have to be converted to ascii representation and back and compressed for the transfer but it fully processed in memory).
    12921292
    1293 Assuming you produce a root file which contains three branches '''Bin''' (the number of the bin), '''Weight''' (-0.2 for background and 1 for signal) and '''Counts''' for the number of bin entries. You can for example run the following query using rootifysql (see DatabaseBasedAnalysis/rootifysql). Note that you might want to adapt the theta-sq cut your are going to use and the number of bins into which you sort the data up to the theta-square cut.
     1293Assuming you produce a root file which contains three branches '''Bin''' (the number of the bin), '''Weight''' (-0.2 for background and 1 for signal) and '''Counts''' for the number of bin entries. You can for example run the following query using rootifysql (see [[DatabaseBasedAnalysis/rootifysql]]). Note that you might want to adapt the theta-sq cut your are going to use and the number of bins into which you sort the data up to the theta-square cut.
    12941294
    12951295{{{#!Spoiler