Classes | Namespaces | Functions
PeakFinder.h File Reference
#include "AnitaEventSummary.h"
Include dependency graph for PeakFinder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UCorrelator::peakfinder::RoughMaximum
 
class  UCorrelator::peakfinder::FineMaximum
 

Namespaces

 UCorrelator
 

Functions

int UCorrelator::peakfinder::findIsolatedMaxima (const TH2D *hist, double distance, int Nmaxima, RoughMaximum *maxima, double minPhi=0., double maxPhi=0., double minTheta=0., double maxTheta=0., bool exclude=false, bool use_bin_center=true)
 
void UCorrelator::peakfinder::doInterpolationPeakFindingAbby (const TH2D *hist, FineMaximum *peak)
 
void UCorrelator::peakfinder::doInterpolationPeakFindingBicubic (const TH2D *hist, FineMaximum *peak, double min_to_consider=0.75)
 
void UCorrelator::peakfinder::doPeakFindingQuadratic9 (const TH2D *hist, FineMaximum *peak)
 
void UCorrelator::peakfinder::doPeakFindingQuadratic16 (const TH2D *hist, FineMaximum *peak)
 
void UCorrelator::peakfinder::doPeakFindingQuadratic25 (const TH2D *hist, FineMaximum *peak)
 
void UCorrelator::peakfinder::doPeakFindingQuadratic36 (const TH2D *hist, FineMaximum *peak)
 
void UCorrelator::peakfinder::doPeakFindingQuadratic49 (const TH2D *hist, FineMaximum *peak)
 
void UCorrelator::peakfinder::doPeakFindingGaussian (const TH2D *hist, FineMaximum *peak)
 
void UCorrelator::peakfinder::doPeakFindingHistogram (const TH2D *hist, FineMaximum *peak)
 

Detailed Description

This file contains various (2d) peak finding routines

Definition in file PeakFinder.h.

Function Documentation

◆ doInterpolationPeakFindingAbby()

void UCorrelator::peakfinder::doInterpolationPeakFindingAbby ( const TH2D *  hist,
FineMaximum peak 
)

Legacy interpolation peak finding as Abby did it... basically does interpolation independently in row and column

Definition at line 401 of file PeakFinder.cc.

◆ doInterpolationPeakFindingBicubic()

void UCorrelator::peakfinder::doInterpolationPeakFindingBicubic ( const TH2D *  hist,
FineMaximum peak,
double  min_to_consider = 0.75 
)

NOT IMPLEMENTED YET. Eventually, this will find the maximum of the bicubic interpolant in the maximum bin

Definition at line 813 of file PeakFinder.cc.

◆ doPeakFindingGaussian()

void UCorrelator::peakfinder::doPeakFindingGaussian ( const TH2D *  hist,
FineMaximum peak 
)

2D gaussian fit to histogram.... this will be pretty slow

Definition at line 632 of file PeakFinder.cc.

◆ doPeakFindingHistogram()

void UCorrelator::peakfinder::doPeakFindingHistogram ( const TH2D *  hist,
FineMaximum peak 
)

Fool-proof but stupid method of using histogram

Definition at line 875 of file PeakFinder.cc.

◆ doPeakFindingQuadratic9()

void UCorrelator::peakfinder::doPeakFindingQuadratic9 ( const TH2D *  hist,
FineMaximum peak 
)

These all do a quadratic fit in the neighbhorhood of the maximum bin. The number denotes the size of the square. This should be very fast; the matrix decomposition necessary to perform the minimization is statically computed.

Definition at line 374 of file PeakFinder.cc.

◆ findIsolatedMaxima()

int UCorrelator::peakfinder::findIsolatedMaxima ( const TH2D *  hist,
double  distance,
int  Nmaxima,
RoughMaximum maxima,
double  minPhi = 0.,
double  maxPhi = 0.,
double  minTheta = 0.,
double  maxTheta = 0.,
bool  exclude = false,
bool  use_bin_center = true 
)

Finds largest Nmaxima isolated local maxima in a histogram. A maximum is local if it's bigger than any neighboring bins Returns the number found (which might be less than Nmaxima if there are insufficient isolated local maxima)

Definition at line 112 of file PeakFinder.cc.