|
REST-for-Physics
v2.3
Rare Event Searches ToolKit for Physics
|
RESTSoft : Software for Rare Event Searches with TPCs
TRestDetectorSignal.h
Event class to store signals fromm simulation and acquisition
events
sept 2015: First concept
Created as part of the conceptualization of existing REST
software.
JuanAn Garcia/Javier Galan
nov 2015:
Changed vectors fSignalTime and fSignalCharge from <Int_t> to
Float_t> JuanAn Garcia
Definition at line 31 of file TRestDetectorSignal.h.
#include <TRestDetectorSignal.h>
Public Member Functions | |
| void | AddGaussianSignal (Double_t amp, Double_t sigma, Double_t time, Int_t N, Double_t fromTime, Double_t toTime) |
| void | AddOffset (Double_t offset) |
| void | ExponentialConvolution (Double_t fromTime, Double_t decayTime, Double_t offset=0) |
| Double_t | GetAverage (Int_t start=0, Int_t end=0) |
| Double_t | GetBaseLine (Int_t startBin, Int_t endBin) |
| Double_t | GetBaseLineSigma (Int_t startBin, Int_t endBin, Double_t baseline=0) |
| Double_t | GetData (Int_t index) |
| void | GetDifferentialSignal (TRestDetectorSignal *diffSgnl, Int_t smearPoints=5) |
| TGraph * | GetGraph (Int_t color=1) |
| Int_t | GetID () const |
| Double_t | GetIntegral (Int_t startBin=0, Int_t endBin=0) |
| Double_t | GetIntegralWithTime (Double_t startTime, Double_t endTime) |
| TVector2 | GetMaxAget () |
| TVector2 | GetMaxGauss () |
| Int_t | GetMaxIndex (Int_t from=0, Int_t to=0) |
| TVector2 | GetMaxLandau () |
| Double_t | GetMaxPeakTime (Int_t from=0, Int_t to=0) |
| Double_t | GetMaxPeakValue () |
| Int_t | GetMaxPeakWidth () |
| Double_t | GetMaxPeakWithTime (Double_t startTime, Double_t endTime) |
| Double_t | GetMaxTime () |
| Double_t | GetMaxValue () |
| Double_t | GetMinPeakValue () |
| Double_t | GetMinTime () |
| Double_t | GetMinValue () |
| Int_t | GetNumberOfPoints () |
| TVector2 | GetPoint (Int_t n) |
| std::vector< Int_t > | GetPointsOverThreshold () |
| void | GetSignalDelayed (TRestDetectorSignal *delayedSignal, Int_t delay) |
| void | GetSignalGaussianConvolution (TRestDetectorSignal *convSgnl, Double_t sigma=100., Int_t nSigmas=5) |
| Int_t | GetSignalID () const |
| void | GetSignalSmoothed (TRestDetectorSignal *smthSignal, Int_t averagingPoints=3) |
| Double_t | GetStandardDeviation (Int_t startBin, Int_t endBin) |
| Double_t | GetTime (Int_t index) |
| void | GetWhiteNoiseSignal (TRestDetectorSignal *noiseSgnl, Double_t noiseLevel=1.) |
| void | IncreaseAmplitude (Double_t t, Double_t d) |
| If the point already exists inside the detector signal event, the amplitude value will be added to the corresponding time. More... | |
| void | IncreaseAmplitude (TVector2 p) |
| If the point already exists inside the detector signal event, the amplitude value will be added to the corresponding time. More... | |
| void | IncreaseTimeBinBy (Int_t bin, Double_t data) |
| Bool_t | isSorted () |
| void | MultiplySignalBy (Double_t factor) |
| void | NewPoint (Float_t time, Float_t data) |
| void | Normalize (Double_t scale=1.) |
| void | Print () |
| void | Reset () |
| void | SetID (Int_t sID) |
| void | SetPoint (Double_t t, Double_t d) |
| If the point already exists inside the detector signal event, it will be overwritten. If it does not exists, a new point will be added to the poins vector. More... | |
| void | SetPoint (Int_t index, Double_t t, Double_t d) |
| If replaces the time and amplitude of the point at the given index. More... | |
| void | SetPoint (TVector2 p) |
| If the point already exists inside the detector signal event, it will be overwritten. If it does not exists, a new point will be added to the poins vector. More... | |
| void | SetSignalID (Int_t sID) |
| void | SignalAddition (TRestDetectorSignal *inSgnl) |
| void | Sort () |
| Double_t | SubstractBaseline (Int_t startBin, Int_t endBin) |
| void | WriteSignalToTextFile (TString filename) |
Data Fields | |
| TGraph * | fGraph |
| std::vector< Int_t > | fPointsOverThreshold |
Protected Attributes | |
| std::vector< Float_t > | fSignalCharge |
| Int_t | fSignalID = -1 |
| std::vector< Float_t > | fSignalTime |
Private Member Functions | |
| Int_t | GetMinIndex () |
| Int_t | GetTimeIndex (Double_t t) |
| TRestDetectorSignal::TRestDetectorSignal | ( | ) |
Definition at line 40 of file TRestDetectorSignal.cxx.
| TRestDetectorSignal::~TRestDetectorSignal | ( | ) |
Definition at line 50 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::AddGaussianSignal | ( | Double_t | amp, |
| Double_t | sigma, | ||
| Double_t | time, | ||
| Int_t | N, | ||
| Double_t | fromTime, | ||
| Double_t | toTime | ||
| ) |
Definition at line 644 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::AddOffset | ( | Double_t | offset | ) |
Definition at line 606 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::ExponentialConvolution | ( | Double_t | fromTime, |
| Double_t | decayTime, | ||
| Double_t | offset = 0 |
||
| ) |
Definition at line 614 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetAverage | ( | Int_t | start = 0, |
| Int_t | end = 0 |
||
| ) |
Definition at line 225 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetBaseLine | ( | Int_t | startBin, |
| Int_t | endBin | ||
| ) |
Definition at line 573 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetBaseLineSigma | ( | Int_t | startBin, |
| Int_t | endBin, | ||
| Double_t | baseline = 0 |
||
| ) |
Definition at line 587 of file TRestDetectorSignal.cxx.
|
inline |
Definition at line 107 of file TRestDetectorSignal.h.
| void TRestDetectorSignal::GetDifferentialSignal | ( | TRestDetectorSignal * | diffSgnl, |
| Int_t | smearPoints = 5 |
||
| ) |
Definition at line 528 of file TRestDetectorSignal.cxx.
| TGraph * TRestDetectorSignal::GetGraph | ( | Int_t | color = 1 | ) |
Definition at line 714 of file TRestDetectorSignal.cxx.
|
inline |
Definition at line 65 of file TRestDetectorSignal.h.
| Double_t TRestDetectorSignal::GetIntegral | ( | Int_t | startBin = 0, |
| Int_t | endBin = 0 |
||
| ) |
Definition at line 130 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetIntegralWithTime | ( | Double_t | startTime, |
| Double_t | endTime | ||
| ) |
Definition at line 146 of file TRestDetectorSignal.cxx.
| TVector2 TRestDetectorSignal::GetMaxAget | ( | ) |
Definition at line 412 of file TRestDetectorSignal.cxx.
| TVector2 TRestDetectorSignal::GetMaxGauss | ( | ) |
Definition at line 283 of file TRestDetectorSignal.cxx.
| Int_t TRestDetectorSignal::GetMaxIndex | ( | Int_t | from = 0, |
| Int_t | to = 0 |
||
| ) |
Definition at line 261 of file TRestDetectorSignal.cxx.
| TVector2 TRestDetectorSignal::GetMaxLandau | ( | ) |
Definition at line 345 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetMaxPeakTime | ( | Int_t | from = 0, |
| Int_t | to = 0 |
||
| ) |
Definition at line 466 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetMaxPeakValue | ( | ) |
Definition at line 259 of file TRestDetectorSignal.cxx.
| Int_t TRestDetectorSignal::GetMaxPeakWidth | ( | ) |
Definition at line 237 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetMaxPeakWithTime | ( | Double_t | startTime, |
| Double_t | endTime | ||
| ) |
Definition at line 154 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetMaxTime | ( | ) |
Definition at line 492 of file TRestDetectorSignal.cxx.
|
inline |
Definition at line 101 of file TRestDetectorSignal.h.
|
private |
Definition at line 470 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetMinPeakValue | ( | ) |
Definition at line 468 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetMinTime | ( | ) |
Definition at line 484 of file TRestDetectorSignal.cxx.
|
inline |
Definition at line 102 of file TRestDetectorSignal.h.
|
inline |
Definition at line 76 of file TRestDetectorSignal.h.
|
inline |
Definition at line 58 of file TRestDetectorSignal.h.
|
inline |
Definition at line 90 of file TRestDetectorSignal.h.
| void TRestDetectorSignal::GetSignalDelayed | ( | TRestDetectorSignal * | delayedSignal, |
| Int_t | delay | ||
| ) |
Definition at line 545 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::GetSignalGaussianConvolution | ( | TRestDetectorSignal * | convSgnl, |
| Double_t | sigma = 100., |
||
| Int_t | nSigmas = 5 |
||
| ) |
Definition at line 668 of file TRestDetectorSignal.cxx.
|
inline |
Definition at line 64 of file TRestDetectorSignal.h.
| void TRestDetectorSignal::GetSignalSmoothed | ( | TRestDetectorSignal * | smthSignal, |
| Int_t | averagingPoints = 3 |
||
| ) |
Definition at line 554 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::GetStandardDeviation | ( | Int_t | startBin, |
| Int_t | endBin | ||
| ) |
Definition at line 582 of file TRestDetectorSignal.cxx.
|
inline |
Definition at line 108 of file TRestDetectorSignal.h.
|
private |
Definition at line 500 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::GetWhiteNoiseSignal | ( | TRestDetectorSignal * | noiseSgnl, |
| Double_t | noiseLevel = 1. |
||
| ) |
Definition at line 656 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::IncreaseAmplitude | ( | Double_t | t, |
| Double_t | d | ||
| ) |
If the point already exists inside the detector signal event, the amplitude value will be added to the corresponding time.
Definition at line 63 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::IncreaseAmplitude | ( | TVector2 | p | ) |
If the point already exists inside the detector signal event, the amplitude value will be added to the corresponding time.
The input vector should contain a physical time and an amplitude.
Definition at line 74 of file TRestDetectorSignal.cxx.
|
inline |
Definition at line 67 of file TRestDetectorSignal.h.
| Bool_t TRestDetectorSignal::isSorted | ( | ) |
Definition at line 508 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::MultiplySignalBy | ( | Double_t | factor | ) |
Definition at line 610 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::NewPoint | ( | Float_t | time, |
| Float_t | data | ||
| ) |
Definition at line 54 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::Normalize | ( | Double_t | scale = 1. | ) |
Definition at line 140 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::Print | ( | ) |
Definition at line 709 of file TRestDetectorSignal.cxx.
|
inline |
Definition at line 145 of file TRestDetectorSignal.h.
|
inline |
Definition at line 112 of file TRestDetectorSignal.h.
| void TRestDetectorSignal::SetPoint | ( | Double_t | t, |
| Double_t | d | ||
| ) |
If the point already exists inside the detector signal event, it will be overwritten. If it does not exists, a new point will be added to the poins vector.
In this method the time and amplitude (data) are given as argument
Definition at line 116 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::SetPoint | ( | Int_t | index, |
| Double_t | t, | ||
| Double_t | d | ||
| ) |
If replaces the time and amplitude of the point at the given index.
Definition at line 125 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::SetPoint | ( | TVector2 | p | ) |
If the point already exists inside the detector signal event, it will be overwritten. If it does not exists, a new point will be added to the poins vector.
The input vector should contain a physical time and an amplitude.
Definition at line 95 of file TRestDetectorSignal.cxx.
|
inline |
Definition at line 111 of file TRestDetectorSignal.h.
| void TRestDetectorSignal::SignalAddition | ( | TRestDetectorSignal * | inSgnl | ) |
Definition at line 622 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::Sort | ( | ) |
Definition at line 515 of file TRestDetectorSignal.cxx.
| Double_t TRestDetectorSignal::SubstractBaseline | ( | Int_t | startBin, |
| Int_t | endBin | ||
| ) |
Definition at line 598 of file TRestDetectorSignal.cxx.
| void TRestDetectorSignal::WriteSignalToTextFile | ( | TString | filename | ) |
Definition at line 703 of file TRestDetectorSignal.cxx.
| TGraph* TRestDetectorSignal::fGraph |
Definition at line 43 of file TRestDetectorSignal.h.
| std::vector<Int_t> TRestDetectorSignal::fPointsOverThreshold |
Definition at line 45 of file TRestDetectorSignal.h.
|
protected |
Definition at line 40 of file TRestDetectorSignal.h.
|
protected |
Definition at line 37 of file TRestDetectorSignal.h.
|
protected |
Definition at line 39 of file TRestDetectorSignal.h.