Public Member Functions | List of all members
UCorrelator::Analyzer Class Reference

#include <Analyzer.h>

Public Member Functions

 Analyzer (const AnalysisConfig *cfg=0, bool interactive=false)
 
virtual ~Analyzer ()
 
void analyze (const FilteredAnitaEvent *event, AnitaEventSummary *summary, const TruthAnitaEvent *truth=0)
 
CorrelatorgetCorrelator ()
 
WaveformCombinergetWaveformCombiner ()
 
WaveformCombinergetXPolWaveformCombiner ()
 
const gui::MapgetCorrelationMap (AnitaPol::AnitaPol_t pol) const
 
const gui::MapgetZoomedCorrelationMap (AnitaPol::AnitaPol_t pol, int i) const
 
const AnalysisWaveformgetCoherent (AnitaPol::AnitaPol_t pol, int i, bool filtered=false) const
 
const AnalysisWaveformgetDeconvolved (AnitaPol::AnitaPol_t pol, int i, bool filtered=false) const
 
const AnalysisWaveformgetCoherentXpol (AnitaPol::AnitaPol_t pol, int i, bool filtered=false) const
 
const AnalysisWaveformgetDeconvolvedXpol (AnitaPol::AnitaPol_t pol, int i, bool filtered=false) const
 
const TGraphAlignedgetCoherentPower (AnitaPol::AnitaPol_t pol, int i, bool filtered=false) const
 
const TGraphAlignedgetDeconvolvedPower (AnitaPol::AnitaPol_t pol, int i, bool filtered=false) const
 
AnitaResponse::ResponseManagergetResponseManager ()
 
const AnitaEventSummarygetSummary () const
 
void drawSummary (TPad *chpol=0, TPad *cvpol=0, int draw_filtered=0) const
 
double getRoughPhi (AnitaPol::AnitaPol_t pol, int i) const
 
double getRoughTheta (AnitaPol::AnitaPol_t pol, int i) const
 
void clearInteractiveMemory (double frac=0.5) const
 
void setDisallowedAntennas (ULong64_t hpol=0, ULong64_t vpol=0)
 
void setExcludePhiRange (double phiMin, double phiMax)
 
void setExcludeThetaRange (double thetaMin, double thetaMax)
 
void setExcludeThetaPhiRange (double thetaMin, double thetaMax, double phiMin, double phiMax)
 
void setPhiRange (double phiMin, double phiMax)
 
void setThetaRange (double thetaMin, double thetaMax)
 
void setThetaPhiRange (double thetaMin, double thetaMax, double phiMin, double phiMax)
 
void setTrackSource (double setLon, double setLat, double setAlt, double setdTheta=2.5, double setdPhi=5., bool blockOut=false)
 
void setTrackSun (double setdTheta=2.5, double setdPhi=5., bool blockOut=false)
 
void setTrackWAIS (double setdTheta=2.5, double setdPhi=5., bool blockOut=false)
 
void setTrackLDB (double setdTheta=2.5, double setdPhi=5., bool blockOut=false)
 
void setExtraFilters (FilterStrategy *extra)
 
void setExtraFiltersDeconvolved (FilterStrategy *extra)
 

Detailed Description

The analyzer is the main workhorse of UCorrelator. It plumbs together various other parts of UCorrelator to do stuff.

Definition at line 34 of file Analyzer.h.

Constructor & Destructor Documentation

UCorrelator::Analyzer::Analyzer ( const AnalysisConfig cfg = 0,
bool  interactive = false 
)

Create an Analyzer. By default, the default AnalysisConfig parameters are used, but one may be passed. If interactive is passed, more internal state will be accessible

Definition at line 62 of file Analyzer.cc.

UCorrelator::Analyzer::~Analyzer ( )
virtual

Destructor

Definition at line 879 of file Analyzer.cc.

Member Function Documentation

void UCorrelator::Analyzer::analyze ( const FilteredAnitaEvent event,
AnitaEventSummary summary,
const TruthAnitaEvent truth = 0 
)

Analyze the event and put the results into the summary. The summary is reinitialized, clobbering everything. MCTruth may be passed to initalize truth part of summary.

Definition at line 177 of file Analyzer.cc.

void UCorrelator::Analyzer::drawSummary ( TPad *  chpol = 0,
TPad *  cvpol = 0,
int  draw_filtered = 0 
) const

Populate the pads with a summary of the pointing. Only makes sense if interactive mode is on. If the analyzer wasn't instructed to do both polarities, then it won't populate any it wasn't instructed to do. If 0 or NULL is passed, a new canvas is made. Added a flag to allow you to draw and populate the info from the filtered waveforms (off by default)

Definition at line 944 of file Analyzer.cc.

const AnalysisWaveform* UCorrelator::Analyzer::getCoherent ( AnitaPol::AnitaPol_t  pol,
int  i,
bool  filtered = false 
) const
inline

Return the ith coherent waveform for the polarization. For this to work, Analyzer must have been constructed with interactive= true and the polarization asked for must have been enabled in the config.

Definition at line 70 of file Analyzer.h.

const TGraphAligned* UCorrelator::Analyzer::getCoherentPower ( AnitaPol::AnitaPol_t  pol,
int  i,
bool  filtered = false 
) const
inline

Return the ith coherent averaged power for the polarization. For this to work, Analyzer must have been constructed with interactive= true and the polarization asked for must have been enabled in the config.

Definition at line 82 of file Analyzer.h.

const AnalysisWaveform* UCorrelator::Analyzer::getCoherentXpol ( AnitaPol::AnitaPol_t  pol,
int  i,
bool  filtered = false 
) const
inline

Return the ith coherent xpol waveform for the polarization. For this to work, Analyzer must have been constructed with interactive= true and the polarization asked for must have been enabled in the config.

Definition at line 76 of file Analyzer.h.

const gui::Map* UCorrelator::Analyzer::getCorrelationMap ( AnitaPol::AnitaPol_t  pol) const
inline

Return the correlation map for the polarization. For this to work, Analyzer must have been constructed with interactive= true and the polarization asked for must have been enabled in the config.

Definition at line 64 of file Analyzer.h.

Correlator* UCorrelator::Analyzer::getCorrelator ( )
inline

Retrieve the internal correlator. Note that if multiple polarizations are analyzed, the Correlator's internal state will be related to the last polarization used.

Definition at line 52 of file Analyzer.h.

const AnalysisWaveform* UCorrelator::Analyzer::getDeconvolved ( AnitaPol::AnitaPol_t  pol,
int  i,
bool  filtered = false 
) const
inline

Return the ith deconvolved waveform for the polarization. For this to work, Analyzer must have been constructed with interactive= true and the polarization asked for must have been enabled in the config.

Definition at line 73 of file Analyzer.h.

const TGraphAligned* UCorrelator::Analyzer::getDeconvolvedPower ( AnitaPol::AnitaPol_t  pol,
int  i,
bool  filtered = false 
) const
inline

Return the ith deconvolved averaged power for the polarization. For this to work, Analyzer must have been constructed with interactive= true and the polarization asked for must have been enabled in the config.

Definition at line 85 of file Analyzer.h.

const AnalysisWaveform* UCorrelator::Analyzer::getDeconvolvedXpol ( AnitaPol::AnitaPol_t  pol,
int  i,
bool  filtered = false 
) const
inline

Return the ith deconvolved xpol waveform for the polarization. For this to work, Analyzer must have been constructed with interactive= true and the polarization asked for must have been enabled in the config.

Definition at line 79 of file Analyzer.h.

WaveformCombiner* UCorrelator::Analyzer::getWaveformCombiner ( )
inline

Retrieve the internal waveform combiner. Note that if multiple polarizations are analyzed, the WaveformCombiner's internal state will be related to the last polarization used.

Definition at line 56 of file Analyzer.h.

WaveformCombiner* UCorrelator::Analyzer::getXPolWaveformCombiner ( )
inline

Retrieve the internal xpol waveform combiner. Note that if multiple polarizations are analyzed, the WaveformCombiner's internal state will be related to the last polarization used.

Definition at line 60 of file Analyzer.h.

const gui::Map* UCorrelator::Analyzer::getZoomedCorrelationMap ( AnitaPol::AnitaPol_t  pol,
int  i 
) const
inline

Return the ith zoomed correlation map for the polarization. For this to work, Analyzer must have been constructed with interactive= true and the polarization asked for must have been enabled in the config.

Definition at line 67 of file Analyzer.h.

void UCorrelator::Analyzer::setDisallowedAntennas ( ULong64_t  hpol = 0,
ULong64_t  vpol = 0 
)
inline

Sets disallowed antennas with a bitmask

Definition at line 103 of file Analyzer.h.

void UCorrelator::Analyzer::setExcludePhiRange ( double  phiMin,
double  phiMax 
)
inline

Excludes the range for finding peaks in phi (full range is 0 -> 360)

Definition at line 106 of file Analyzer.h.

void UCorrelator::Analyzer::setExcludeThetaPhiRange ( double  thetaMin,
double  thetaMax,
double  phiMin,
double  phiMax 
)
inline

Excludes the phi and theta range for finding peaks

Definition at line 110 of file Analyzer.h.

void UCorrelator::Analyzer::setExcludeThetaRange ( double  thetaMin,
double  thetaMax 
)
inline

Excludes the range for finding peaks in theta (full range is -60 -> 40)

Definition at line 108 of file Analyzer.h.

void UCorrelator::Analyzer::setExtraFilters ( FilterStrategy extra)

Allows you to set extra filters used only for combining waveforms

Definition at line 1251 of file Analyzer.cc.

void UCorrelator::Analyzer::setExtraFiltersDeconvolved ( FilterStrategy extra)

Allows you to set extra filters used only for combining deconvolved waveforms

Definition at line 1257 of file Analyzer.cc.

void UCorrelator::Analyzer::setPhiRange ( double  phiMin,
double  phiMax 
)
inline

Looks only at the specified phi range for finding peaks (full phi range is 0 -> 360)

Definition at line 113 of file Analyzer.h.

void UCorrelator::Analyzer::setThetaPhiRange ( double  thetaMin,
double  thetaMax,
double  phiMin,
double  phiMax 
)
inline

Looks only at the specified range in phi and theta for finding peaks

Definition at line 117 of file Analyzer.h.

void UCorrelator::Analyzer::setThetaRange ( double  thetaMin,
double  thetaMax 
)
inline

Looks only at the specified theta range for finding peaks (full theta range is -60 -> 40)

Definition at line 115 of file Analyzer.h.

void UCorrelator::Analyzer::setTrackLDB ( double  setdTheta = 2.5,
double  setdPhi = 5.,
bool  blockOut = false 
)
inline

Tracks LDB for peak finding

Definition at line 125 of file Analyzer.h.

void UCorrelator::Analyzer::setTrackSource ( double  setLon,
double  setLat,
double  setAlt,
double  setdTheta = 2.5,
double  setdPhi = 5.,
bool  blockOut = false 
)
inline

Set to look exclusively around a source for peaks or to exclude the angular area around a source from peak finding

Definition at line 119 of file Analyzer.h.

void UCorrelator::Analyzer::setTrackSun ( double  setdTheta = 2.5,
double  setdPhi = 5.,
bool  blockOut = false 
)
inline

Tracks the sun for peak finding, can be set to exclude or include the sun

Definition at line 121 of file Analyzer.h.

void UCorrelator::Analyzer::setTrackWAIS ( double  setdTheta = 2.5,
double  setdPhi = 5.,
bool  blockOut = false 
)
inline

Tracks WAIS for peak finding, include or exclude

Definition at line 123 of file Analyzer.h.


The documentation for this class was generated from the following files: