#include <TimeDependentAverage.h>
Public Member Functions | |
TimeDependentAverage (int run, int nsecs=10, const char *persistdir=0, double max_bottom_top_ratio=4.0, int min_norm=5, double max_power=1e6) | |
void | computePeakiness (const TimeDependentAverage *thermal=0, double fractionForNormalization=0.5) const |
void | saveToDir (const char *dir) |
TH1 * | getSpectrumAverage (AnitaPol::AnitaPol_t pol, int ant, double t, bool db=false, bool minbias=false) const |
TH1 * | getSpectrumPercentile (AnitaPol::AnitaPol_t pol, int ant, double pct=0.1, bool db=false, bool minbias=false) const |
double | getStartTime () const |
double | getEndTime () const |
const TH2F * | getSpectrogram (AnitaPol::AnitaPol_t pol, int ant, bool minbias=false) const |
const TH1D * | getRMS (AnitaPol::AnitaPol_t pol, int ant) const |
double | getRMS (AnitaPol::AnitaPol_t pol, int ant, double t) const |
const TH1I * | getNBlasts () const |
double | getBlastFraction (double t) const |
const TH1I * | getNorms (bool minbias=false) const |
const TH2D * | getPeakiness (AnitaPol::AnitaPol_t pol, int ant, bool minbias=false) const |
int | getRun () const |
int | getNsecs () const |
Static Public Member Functions | |
static const TimeDependentAverage * | defaultThermal () |
This class is used to build, save and fetch spectrum averages for use with the adaptive filter and other time dependent stuff.
It also calculates something I call the peakiness.
Definition at line 29 of file TimeDependentAverage.h.
UCorrelator::TimeDependentAverage::TimeDependentAverage | ( | int | run, |
int | nsecs = 10 , |
||
const char * | persistdir = 0 , |
||
double | max_bottom_top_ratio = 4.0 , |
||
int | min_norm = 5 , |
||
double | max_power = 1e6 |
||
) |
Create a time-dependent average
If persistdir is given, that directory will first be checked for an If a baseline is not found in persistdir, the baseline will be generated and saved there.
The environmental variable ANITA_ROOT_DATA must be defined for this to work properly.
Definition at line 428 of file TimeDependentAverage.cc.
void UCorrelator::TimeDependentAverage::computePeakiness | ( | const TimeDependentAverage * | thermal = 0 , |
double | fractionForNormalization = 0.5 |
||
) | const |
compute the peakiness with the given thermal spectrum average and fraction of spectrum used for normalization If 0 is passed for thermal, a default thermal spectrum is used from calibration terminated amp data.
Definition at line 606 of file TimeDependentAverage.cc.
void UCorrelator::TimeDependentAverage::saveToDir | ( | const char * | dir | ) |
Save average to directory. If persistdir is given in the constructor, the baseline will already have been saved there so you probably don't need to call this .
Definition at line 295 of file TimeDependentAverage.cc.