REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Public Member Functions | Data Fields | Protected Attributes | Private Member Functions
TRestDetectorSignal Class Reference

Detailed Description




         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 32 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) const
 
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) const
 
Double_t GetIntegralWithTime (Double_t startTime, Double_t endTime) const
 
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 () const
 
Double_t GetMaxValue ()
 
Double_t GetMinPeakValue ()
 
Double_t GetMinTime () const
 
Double_t GetMinValue ()
 
Int_t GetNumberOfPoints () const
 
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
 
std::string GetSignalName () const
 
void GetSignalSmoothed (TRestDetectorSignal *smthSignal, Int_t averagingPoints=3)
 
std::string GetSignalType () const
 
Double_t GetStandardDeviation (Int_t startBin, Int_t endBin)
 
Double_t GetTime (Int_t index) const
 
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.
 
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 () const
 
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.
 
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 SetSignalName (const std::string &name)
 
void SetSignalType (const std::string &type)
 
void SignalAddition (TRestDetectorSignal *inSgnl)
 
void Sort ()
 
Double_t SubstractBaseline (Int_t startBin, Int_t endBin)
 
void WriteSignalToTextFile (const TString &filename)
 

Data Fields

TGraph * fGraph
 
std::vector< Int_t > fPointsOverThreshold
 

Protected Attributes

std::string fName
 
std::vector< Float_t > fSignalCharge
 
Int_t fSignalID = -1
 
std::vector< Float_t > fSignalTime
 
std::string fType
 

Private Member Functions

Int_t GetMinIndex ()
 
Int_t GetTimeIndex (Double_t t)
 

Member Function Documentation

◆ IncreaseAmplitude()

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 75 of file TRestDetectorSignal.cxx.

◆ SetPoint() [1/2]

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 117 of file TRestDetectorSignal.cxx.

◆ SetPoint() [2/2]

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 96 of file TRestDetectorSignal.cxx.


The documentation for this class was generated from the following files: