JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RExtremaFinder.hh>
Public Member Functions | |
Constructors, destructors, affectation | |
RExtremaFinder (u_int n=0, double *data=NULL, double bin=1.) | |
RExtremaFinder (RRealSampleFFT *sptr) | |
RExtremaFinder (RRealSampleFFT &s) | |
RExtremaFinder (TH1 *hptr) | |
RExtremaFinder (const RExtremaFinder &original) | |
RExtremaFinder (const GExtremaFinder &original) | |
RExtremaFinder & | operator= (const RExtremaFinder &original) |
virtual | ~RExtremaFinder () |
Initialisation and setting functions | |
virtual int | InitData (u_int n, double *data, double bin=1.) |
virtual int | InitData (TH1 *hptr) |
Access to data | |
const RRealSampleFFT * | GetSample () const |
RRealSampleFFT * | GetSample () |
const RRealSampleFFT * | GetDerivativeSample () const |
RRealSampleFFT * | GetDerivativeSample () |
ROOT related function | |
virtual TGraph * | CreateExtremaGraph () const |
virtual TGraph * | CreateMaximaGraph () const |
virtual TGraph * | CreateAverageGraph (bool ampl=true) const |
virtual TGraphAsymmErrors * | CreateMaxZoneGraph (bool ampl=false) const |
virtual TGraph * | CreateMaxTriangleGraph () const |
ClassDef (RExtremaFinder, 0) | |
Private Member Functions | |
GObject (RExtremaFinder) | |
This class adds ROOT related functions to the base class GExtremaFinder.
RExtremaFinder::RExtremaFinder | ( | u_int | n = 0 , |
double * | data = NULL , |
||
double | bin = 1. |
||
) |
Base constructor. The data array is copied into an internal sample for the analysis.
n | array dimension (should be a power of 2) |
data | data array |
bin | bin size |
RExtremaFinder::RExtremaFinder | ( | RRealSampleFFT * | sptr | ) |
Constructor from a RRealSampleFFT pointer. The RRealSampleFFT object is adopted (deleted with the GExtremaFinder object).
sptr | pointer to the sample |
References InitData().
RExtremaFinder::RExtremaFinder | ( | RRealSampleFFT & | s | ) |
Constructor from a RRealSampleFFT object. The RRealSampleFFT object is external.
s | sample object |
References InitData().
RExtremaFinder::RExtremaFinder | ( | TH1 * | hptr | ) |
Constructor from a 1D histogram pointer. An internal sample (local) is created from the histogram.
hptr | pointer to the histogram |
References InitData().
RExtremaFinder::RExtremaFinder | ( | const RExtremaFinder & | original | ) |
Copy constructor.
original | object to be copied |
RExtremaFinder::RExtremaFinder | ( | const GExtremaFinder & | original | ) |
Copy constructor.
original | object to be copied |
|
virtual |
Destructor: cleans-up the data.
|
private |
Macro from GCpp library that defines the following functions:
RExtremaFinder & RExtremaFinder::operator= | ( | const RExtremaFinder & | original | ) |
Affectation operator.
original | object to be copied |
|
virtual |
This function is redefined from the base class so that the created sample is a GRealSampleFFT instead of a GRealSampleFFT.
n | requested size of arrays |
data | data array |
dt | sampling time step |
Referenced by InitData(), and RExtremaFinder().
|
virtual |
This function is redefined from the base class to initialize data from an histogram.
hptr | pointer to the histogram |
References InitData().
|
inline |
Return the sample.
|
inline |
Return the sample.
|
inline |
Return the derivative sample.
|
inline |
Return the derivative sample.
|
virtual |
Create a graph from minima and maxima.
|
virtual |
Create a graph from maxima.
|
virtual |
Create a graph with points located at average position of maxima zones. The vertical axis is either the average or the integral amplitude of signal over the maxima zones.
ampl | true for integral signal amplitude, false for average signal |
|
virtual |
Create a graph with points located at average position of maxima zones, with horizontal errors correspondig to the zone size. The vertical axis is either the average or the integral amplitude of signal over the maxima zones.
ampl | true for integral signal amplitude, false for average signal |
|
virtual |
Create a graph with triangles with a surface conserving the maxima signal: the summit is 2x the average signal for the maxima zones and the base is the zone limits at a value 0.
RExtremaFinder::ClassDef | ( | RExtremaFinder | , |
0 | |||
) |
for use within ROOT.