Changes between Version 6 and Version 7 of DatabaseBasedAnalysis/Tables


Ignore:
Timestamp:
08/06/18 20:56:23 (6 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis/Tables

    v6 v7  
    11[[TOC]]
     2
     3This is an overview of the most important tables and some important remarks. Links are given to the comments and type of each column.
    24
    35== !RunType ==
     
    1315[https://fact-project.org/run_db/db/printinfo.php?db=factdata&fSortBy=ColumnName+&t=RunInfo factdata/RunInfo]
    1416
     17The !RunInfo table is the most important one. It stored run-wise information. In a first step, a lot of data is directly extracted from the header of the ''raw'' run-files. Later, values are calculated from other sources, mainly slow-control file (auxiliary data: ''aux'') and filled into the table as well.
     18
     19=== Calculating the on-time ===
     20
     21The best estimate for the on-time of the data acquisition is the difference between the first and last event (`fRunStop-fRunStart`). It should be precise with roughly the data rate, so better than 1s. The on-time calculated by the FTM is only precise with the FTM rate which is a few seconds, but the FTM provides accurate information on the relative on-time w.r.t. to the total time. This information can be used to calculate the on-time in seconds of a run as follows:
     22
     23{{{#!sql
     24TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn
     25}}}
     26
     27
     28
     29
     30
    1531== Events ==
    1632
     
    2541[https://fact-project.org/run_db/db/printinfo.php?db=factdata&fSortBy=ColumnName+&t=AnalysisResultsRunISDC factdata/AnalysisResultsRunISDC]
    2642
     43The number of background events (`fNumBgEvts`) is already divided by the number of wobble regions (5).
     44
     45To calculate the signifciance, you can simply do `LiMa(fNumSigEvts, fNumBgEvts). To calculate the statistical error, use `ExcErr(fNumSigEvts, fNumBgEvts)`. Both function assume that the number of background events given is the average number and that the scale factor is 5.
    2746
    2847
    29