FEDRA emulsion software from the OPERA Collaboration
|
peak analyser for EdbH2 More...
#include <EdbCell2.h>
Public Member Functions | |
void | Delete () |
EdbPeak2 () | |
EdbPeak2 (const EdbH2 &h) | |
float | EstimatePeakMeanPosition (int iv[2], int ir[2], float &x, float &y) |
float | EstimatePeakVolume (int ipeak) |
float | EstimatePeakVolumeSafe (int ipeak) |
float | FindGlobalPeak (float &x, float &y, float ratio=0.1) |
int | FindPeak (float &x, float &y) |
int | FindPeak (float v[2]) |
int | FindPeak (int iv[2]) |
float | FindPeak9 (float &x, float &y) |
void | Init (const EdbH2 &h, int npeaks=10) |
void | InitPeaks (int npeaks) |
float | Mean (int i=0) const |
float | Mean3 (int i=0) const |
float | Peak (int i=0) const |
void | Print () |
float | ProbPeak () |
float | ProbPeak (float &x, float &y) |
float | ProbPeak (int iv[2], int ir[2]) |
int | ProbPeaks (int npeak) |
int | ProbPeaks (int npeak, int ir[2]) |
float | Smooth (Option_t *option="k5a") |
int | WipePeak (int iv[2], int ir[2]) |
float | Xmean () |
float | Ymean () |
~EdbPeak2 () | |
![]() | |
void | AddBin (int jcell, int n) |
int | Bin (float x, float y) const |
int | Bin (int iv[2]) const |
int | Bin (int ix, int iy) const |
int | Bin (int j) const |
void | CleanCells () |
void | Copy (const EdbH2 &h) |
void | Delete () |
int | DiscardHighCells (int nmax) |
TH2F * | DrawH2 (const char *name="plot2d", const char *title="EdbH2plot2D") |
TH1I * | DrawSpectrum (const char *name="plot1d", const char *title="EdbH2 DrawSpectrun") |
EdbH2 () | |
EdbH2 (const EdbH2 &h) | |
EdbH2 (int nx, float minx, float maxx, int ny, float miny, float maxy) | |
int | Fill (float x, float y) |
int | Fill (float x, float y, int n) |
int | InitH2 (const EdbH2 &h) |
int | InitH2 (int n[2], float min[2], float max[2]) |
int | InitH2 (int nx, float minx, float maxx, int ny, float miny, float maxy) |
Long_t | Integral () |
Long_t | Integral (int iv[2], int ir[2]) |
int | IX (float x) const |
int | IX (int jcell) const |
int | IY (float y) const |
int | IY (int jcell) const |
int | Jcell (float v[2]) const |
int | Jcell (float x, float y) const |
int | Jcell (int ix, int iy) const |
int | MaxBin () |
Float_t | Mean () |
int | Ncell () const |
int | NX () const |
int | NY () const |
void | PrintStat () |
EdbH1 * | ProjectionX () |
EdbH1 * | ProjectionY () |
void | Set0 () |
void | SetBin (int ix, int iy, int n) |
void | SetBin (int j, int n) |
float | X (int ix) const |
float | Xbin () const |
float | Xj (int j) const |
float | Xmax () const |
float | XmaxA (float level=0) |
float | Xmin () const |
float | XminA (float level=0) |
float | Y (int iy) const |
float | Ybin () const |
float | Yj (int j) const |
float | Ymax () const |
float | YmaxA (float level=0) |
float | Ymin () const |
float | YminA (float level=0) |
~EdbH2 () | |
Public Attributes | |
TArrayF | eMean |
TArrayF | eMean3 |
Float_t | eNorm |
the norm-factor in case of the smoothing applied More... | |
Int_t | eNpeaks |
number of found peaks More... | |
TArrayF | ePeak |
Additional Inherited Members | |
![]() | |
Float_t | eBin [2] |
bin size More... | |
Float_t | eMax [2] |
max More... | |
Float_t | eMin [2] |
min More... | |
Int_t | eN [2] |
divisions More... | |
Int_t * | eNC |
[eNcell] number of objects/cell More... | |
Int_t | eNcell |
eNx*eNy More... | |
peak analyser for EdbH2
|
inline |
|
inline |
|
inline |
float EdbPeak2::EstimatePeakMeanPosition | ( | int | iv[2], |
int | ir[2], | ||
float & | x, | ||
float & | y | ||
) |
float EdbPeak2::EstimatePeakVolume | ( | int | ipeak | ) |
float EdbPeak2::EstimatePeakVolumeSafe | ( | int | ipeak | ) |
float EdbPeak2::FindGlobalPeak | ( | float & | x, |
float & | y, | ||
float | ratio = 0.1 |
||
) |
to find the center of wide multibin peak select ratio*Nbin of highest bins and calculate CoG
int EdbPeak2::FindPeak | ( | float & | x, |
float & | y | ||
) |
int EdbPeak2::FindPeak | ( | float | v[2] | ) |
int EdbPeak2::FindPeak | ( | int | iv[2] | ) |
float EdbPeak2::FindPeak9 | ( | float & | x, |
float & | y | ||
) |
particular case of 3x3 peak neiboring, return peak volume and estimate mean position
void EdbPeak2::InitPeaks | ( | int | npeaks | ) |
|
inline |
|
inline |
|
inline |
void EdbPeak2::Print | ( | ) |
float EdbPeak2::ProbPeak | ( | ) |
float EdbPeak2::ProbPeak | ( | float & | x, |
float & | y | ||
) |
float EdbPeak2::ProbPeak | ( | int | iv[2], |
int | ir[2] | ||
) |
int EdbPeak2::ProbPeaks | ( | int | npeak | ) |
int EdbPeak2::ProbPeaks | ( | int | npeak, |
int | ir[2] | ||
) |
float EdbPeak2::Smooth | ( | Option_t * | option = "k5a" | ) |
Smooth bin contents of this 2-d histogram using kernel algorithms
similar to the ones used in the raster graphics community.
Bin contents in the active range are replaced by their smooth values.
This code is copied from root_5.22 mainly to not depend on the newest root versions
Adopted to fedra by VT
to speedup processing do all calculations as integer, so the histogram do not normalised at output
return value - norm-factor of the kernel
int EdbPeak2::WipePeak | ( | int | iv[2], |
int | ir[2] | ||
) |
float EdbPeak2::Xmean | ( | ) |
float EdbPeak2::Ymean | ( | ) |
TArrayF EdbPeak2::eMean |
TArrayF EdbPeak2::eMean3 |
Float_t EdbPeak2::eNorm |
the norm-factor in case of the smoothing applied
Int_t EdbPeak2::eNpeaks |
number of found peaks
TArrayF EdbPeak2::ePeak |