REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestRawZeroSuppresionProcess.h
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#ifndef RestCore_TRestRawZeroSuppresionProcess
24#define RestCore_TRestRawZeroSuppresionProcess
25
26#include "TRestLegacyProcess.h"
27
30 private:
33
36
39
42
45
46 Int_t fNPointsFlatThreshold;
47
50
53 Double_t fSampling;
54
55 public:
57 void PrintMetadata() override {
59 RESTMetadata << "Base line range definition : ( " << fBaseLineRange.X() << " , " << fBaseLineRange.Y()
60 << " ) " << RESTendl;
61 RESTMetadata << "Integral range : ( " << fIntegralRange.X() << " , " << fIntegralRange.Y() << " ) "
62 << RESTendl;
63 RESTMetadata << "Point Threshold : " << fPointThreshold << " sigmas" << RESTendl;
64 RESTMetadata << "Signal threshold : " << fSignalThreshold << " sigmas" << RESTendl;
65 RESTMetadata << "Number of points over threshold : " << fNPointsOverThreshold << RESTendl;
66 RESTMetadata << "Sampling rate : " << 1. / fSampling << " MHz" << RESTendl;
67 RESTMetadata << "Max Number of points of flat signal tail : " << fNPointsFlatThreshold << RESTendl;
69 RESTMetadata << "BaseLine correction is enabled for TRestRawSignalAnalysisProcess" << RESTendl;
70
71 EndPrintProcess();
72 }
73
75 RESTWarning << "Creating legacy process TRestRawZeroSuppresionProcess" << RESTendl;
76 RESTWarning << "This process is now implemented under TRestRawToDetectorSignalProcess" << RESTendl;
77 }
78
79 TRestRawZeroSuppresionProcess(char* cfgFileName) {
80 RESTWarning << "Creating legacy process TRestRawZeroSuppresionProcess" << RESTendl;
81 RESTWarning << "This process is now implemented under TRestRawToDetectorSignalProcess" << RESTendl;
82 }
83
84 ClassDefOverride(TRestRawZeroSuppresionProcess, 4);
85};
86#endif
void BeginPrintProcess()
[name, cut range]
Base class for legacy process.
endl_t RESTendl
Termination flag object for TRestStringOutput.
A process to identify signal and remove baseline noise from a TRestRawSignalEvent.
TVector2 fBaseLineRange
The ADC range used for baseline offset definition.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
Double_t fPointThreshold
Number of sigmas over baseline fluctuation to accept a point is over threshold.
Int_t fNPointsOverThreshold
Number of consecutive points over threshold required to accept a signal.
TVector2 fIntegralRange
The ADC range used for integral definition and signal identification.
bool fBaseLineCorrection
A parameter to determine if baseline correction has been applied by a previous process.
Double_t fSignalThreshold
A threshold parameter to accept or reject a pre-identified signal. See process description.