Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PolarityMachine Class Reference

Public Member Functions

 PolarityMachine (int padX=15)
 
void zeroInternals ()
 
void loadTemplates (unsigned int eventTime, int version=AnitaVersion::get())
 
TH2D * generatePolarityMeasurements (int N, int eventNumber, double cr_phi=0, double cr_theta=0, double cr_snr=3, int pol=0, int metric=0, const char *outhistoname="h0", std::vector< int > whichTemplates={0, 1, 2, 3, 4})
 
void setDeconvolutionMethod (AnitaResponse::DeconvolutionMethod *opt)
 
void setCLEANDeconvolution (AnitaResponse::DeconvolutionMethod *opt)
 
void setWindowSizeNs (double opt)
 
void setPadFactor (int opt)
 
void setTestCoherent (bool opt)
 
void setOffset (int opt)
 
double testPolarity (int metric, AnalysisWaveform *wf, bool deconvolved)
 
double calculateCLEANPolarity (TGraph *gwf)
 
double fourierPhasePolarity (int window_type, AnalysisWaveform *wf)
 
TH2D * runPolaritySimulation (int N, int eventNumber, double cr_phi=0, double cr_theta=0, double cr_snr=3, int pol=0, int metric=0, const char *outhistoname="h0")
 
AnalysisWaveformmakeNoiseWaveformFromMinBias (int eventNumber, double phi, double theta, int pol, int current_N)
 
AnalysisWaveformgenerateNoisyWaveform (AnalysisWaveform *templateWf, AnalysisWaveform *noiseWf, double snr, TRandom3 *tr)
 
TGraph * windowWaveform (AnalysisWaveform *wf, double window_size_ns=5)
 
TGraph * peterWindow (AnalysisWaveform *wf, double window_size_ns=5, bool roll=false)
 
TGraph * hilbertWindow (AnalysisWaveform *wf, double window_size_ns=5, bool roll=false, bool use_cdf=false, int how_to_use_cdf=0)
 
void makeSameSize (AnalysisWaveform *wf1, AnalysisWaveform *wf2)
 
TGraph * getInputWaveform ()
 
TGraph * getCRWaveform ()
 
TGraph * getCorrelationGraph ()
 
std::string getNotchStr ()
 

Public Attributes

AnalysisWaveformsimulatedCRs [numCRTemplates]
 
double simulatedCRPeaks [numCRTemplates]
 
AnalysisWaveformtheImpTemplate
 
AnalysisWaveformCRtemplate
 
AnalysisWaveformCRtemplate_deconv
 
AnalysisWaveformCRtemplate_deconv_windowed
 

Static Public Attributes

static const int numCRTemplates = 10
 

Detailed Description

Definition at line 29 of file PolarityMachine.h.

Collaboration diagram for PolarityMachine:
Collaboration graph
[legend]

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