Ignore:
Timestamp:
12/16/19 20:03:18 (5 years ago)
Author:
tbretz
Message:
Improved comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/spectrum/simulation.sql

    r19907 r19915  
    33   SELECT
    44      Weight, Energy, LogEnergyEst,
     5
     6      -- Convert variable to bin index
    57      INTERVAL(Theta, %107:theta)  AS `.theta`,
    68      INTERVAL(LogEnergyEst, %108:sparse)  AS `.sparse_est`,
     
    3840*/
    3941
    40    -- Binning in estimated energy: Signal, Background, Excess
     42   -- Binning in estimated energy: Signal, Background
    4143   SUM(  IF(Weight>0,        ZdWeight*SpectralWeight,    0))  AS  SignalW,
    4244   SUM(  IF(Weight<0,        ZdWeight*SpectralWeight,    0))  AS  BackgroundW,
     
    4446   SUM(  IF(Weight<0, POW(ErrZdWeight*SpectralWeight,2), 0))  AS  BackgroundW2,
    4547
    46    -- Energy Estimation
     48   -- Energy Estimation: Bias=ResidualW/SignalW; Resolution=sigma(Bias)
    4749   SUM(IF(Weight>0,     Residual*   ZdWeight*SpectralWeight, 0))  AS  ResidualW,
    4850   SUM(IF(Weight>0, POW(Residual,2)*ZdWeight*SpectralWeight, 0))  AS  ResidualW2,
    4951
     52   -- Average Energy: SumEnergyX/SignalW
    5053   SUM(IF(Weight>0, Energy               *ZdWeight*SpectralWeight, 0))  AS  SumEnergySimW,
    5154   SUM(IF(Weight>0, POW(10, LogEnergyEst)*ZdWeight*SpectralWeight, 0))  AS  SumEnergyEstW
Note: See TracChangeset for help on using the changeset viewer.