#include <Baseline.h>
Public Member Functions | |
Baseline (int run, int navg=5000, const char *persistdir="") | |
void | saveToDir (const char *dir) |
const TGraph * | getBaseline (AnitaPol::AnitaPol_t pol, int ant) |
const TGraph * | getBaselineHPol (int ant) |
const TGraph * | getBaselineVPol (int ant) |
const TGraph * | getBaselineAverage (AnitaPol::AnitaPol_t pol) |
const TGraph * | getBaselineAverageHPol () |
const TGraph * | getBaselineAverageVPol () |
This class is used to build, save and fetch baselines for use with the adaptive filter.
Baselines are per run and appear to be simply averaged waveforms.
Definition at line 19 of file Baseline.h.
UCorrelator::Baseline::Baseline | ( | int | run, |
int | navg = 5000 , |
||
const char * | persistdir = "" |
||
) |
Create a baseline for the given run using the given number of traces to average
If persistdir is given, that directory will first be checked for an already computed baseline with navg and that will be loaded instead, if it exists. 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.
The baselines are averaged magnitudes (not powers) in "raw units", not dB (and not normalized by the number of samples)
Definition at line 122 of file Baseline.cc.
|
inline |
Getters for the baseline
Definition at line 49 of file Baseline.h.
void UCorrelator::Baseline::saveToDir | ( | const char * | dir | ) |
Save baseline 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 110 of file Baseline.cc.