|
| 1 | +/************************************************************************* |
| 2 | + * This file is part of the REST software framework. * |
| 3 | + * * |
| 4 | + * Copyright (C) 2016 GIFNA/TREX (University of Zaragoza) * |
| 5 | + * For more information see http://gifna.unizar.es/trex * |
| 6 | + * * |
| 7 | + * REST is free software: you can redistribute it and/or modify * |
| 8 | + * it under the terms of the GNU General Public License as published by * |
| 9 | + * the Free Software Foundation, either version 3 of the License, or * |
| 10 | + * (at your option) any later version. * |
| 11 | + * * |
| 12 | + * REST is distributed in the hope that it will be useful, * |
| 13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 15 | + * GNU General Public License for more details. * |
| 16 | + * * |
| 17 | + * You should have a copy of the GNU General Public License along with * |
| 18 | + * REST in $REST_PATH/LICENSE. * |
| 19 | + * If not, see http://www.gnu.org/licenses/. * |
| 20 | + * For the list of contributors see $REST_PATH/CREDITS. * |
| 21 | + *************************************************************************/ |
| 22 | + |
| 23 | +////////////////////////////////////////////////////////////////////////// |
| 24 | +/// IMPORTANT TRestRawZeroSuppresionProcess is a legacy class, it is just |
| 25 | +/// kept for backward compatibility of the code. Do not attempt to create |
| 26 | +/// any instance to a legacy process. The information below is kept to |
| 27 | +/// have a reference of previous implementations. |
| 28 | +/// |
| 29 | +/// The TRestRawZeroSuppresionProcess identifies the points that are over |
| 30 | +/// threshold from the input TRestRawSignalEvent. The resulting points, that |
| 31 | +/// are presumed to be a physical signal, will be transported to the output |
| 32 | +/// TRestDetectorSignalEvent returned by this process. The data points transferred to |
| 33 | +/// the output TRestDetectorSignalEvent will have physical time units related to the |
| 34 | +/// sampling rate of the raw signal received as input, and defined as a |
| 35 | +/// parameter in this process. |
| 36 | +/// |
| 37 | +/// The different parameters required by this process are: |
| 38 | +/// * baselineRange : A 2D-vector definning the range, in number of bins, |
| 39 | +/// where the baseline properties will be calculated. |
| 40 | +/// * integralRange : A 2D-vector definning the time window, in number of bins, |
| 41 | +/// where the signal will be considered. |
| 42 | +/// * pointThreshold : The number of sigmas over the baseline flunctuations to |
| 43 | +/// consider a point is over the threshold. |
| 44 | +/// * pointsOverThreshold : The number of consecutive points over threshold |
| 45 | +/// required to consider them as a physical signal. |
| 46 | +/// * signalThreshold : The number of sigmas a set of consecutive points |
| 47 | +/// identified over threshold must be over the baseline fluctuations to be |
| 48 | +/// finally considered a physical signal. |
| 49 | +/// * pointsFlatThreshold : A parameter to help removing the un-physical or |
| 50 | +/// un-expected tail that follows the physical signal. \TODO more details? |
| 51 | +/// * sampling : The time duration of a time bin from the input TRestRawSignalEvent. |
| 52 | +/// If no units are specified, the default units, microseconds, will be |
| 53 | +/// considered. |
| 54 | +/// |
| 55 | +/// \TODO Add description of observables here. |
| 56 | +/// |
| 57 | +/// |
| 58 | +/// An example of definition of this process inside a data processing chain, |
| 59 | +/// inside the `<TRestProcessRunner>` section. |
| 60 | +/// |
| 61 | +/// The values given between `${}` are enviroment variables that can be defined |
| 62 | +/// at the system or at the `<globals>` section. See also TRestMetadata for |
| 63 | +/// additional details. |
| 64 | +/// |
| 65 | +/// \code |
| 66 | +/// <addProcess type="TRestRawZeroSuppresionProcess" name="zS" value="ON" |
| 67 | +/// baseLineRange="(${BL_MIN},${BL_MAX})" |
| 68 | +/// integralRange="(${INT_MIN},${INT_MAX})" |
| 69 | +/// pointThreshold="${POINT_TH}" |
| 70 | +/// pointsOverThreshold="${NPOINTS}" |
| 71 | +/// sampling="${SAMPLING}" |
| 72 | +/// signalThreshold="${SGNL_TH}" |
| 73 | +/// observable="all" |
| 74 | +/// verboseLevel="silent" /> |
| 75 | +/// \endcode |
| 76 | +/// |
| 77 | +///-------------------------------------------------------------------------- |
| 78 | +/// |
| 79 | +/// RESTsoft - Software for Rare Event Searches with TPCs |
| 80 | +/// |
| 81 | +/// History of developments: |
| 82 | +/// |
| 83 | +/// 2016-January: Conception and implementation of signal zero suppression |
| 84 | +/// process. |
| 85 | +/// Javier Galan |
| 86 | +/// |
| 87 | +/// \class TRestRawZeroSuppresionProcess |
| 88 | +/// \author Javier Galan |
| 89 | +/// \author Kaixiang Ni |
| 90 | +/// |
| 91 | +/// <hr> |
| 92 | +/// |
| 93 | + |
| 94 | +#include "TRestRawZeroSuppresionProcess.h" |
| 95 | + |
| 96 | +ClassImp(TRestRawZeroSuppresionProcess); |
0 commit comments