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

Public Member Functions

 AnitaTemplateMachine (const int inLength=2048)
 Default Constructor. More...
 
 ~AnitaTemplateMachine ()
 
void zeroInternals ()
 
void loadTemplates (unsigned int evTime=0, int version=AnitaVersion::get())
 
void deconvolveTemplates (AnitaResponse::DeconvolutionMethod *deconv)
 
bool isTmpltsLoaded ()
 
bool isTmpltsDeconv ()
 
void doTemplateAnalysis (const AnalysisWaveform *waveform, int poli, int dir, AnitaTemplateSummary *summary, bool do_impulse=true, bool do_wais=true, bool do_cr=true)
 
void doDeconvolvedTemplateAnalysis (const AnalysisWaveform *waveform, const AnitaResponse::DeconvolutionMethod *deconv, int poli, int dir, AnitaTemplateSummary *summary, bool do_impulse=true, bool do_wais=true, bool do_cr=true)
 
void writeTemplatesToFile (TFile *outFile)
 
void setUseAverageCRTemplate (bool opt)
 
void setDoWindow (bool opt)
 
std::string getNotchStr ()
 

Public Attributes

const int length
 
const double dT
 
FFTWComplextheImpTemplateFFT
 
TGraph * theImpTemplate
 
FFTWComplextheWaisTemplateFFT
 
TGraph * theWaisTemplate
 
FFTWComplextheCRTemplateFFTs [numCRTemplates]
 
TGraph * theCRTemplates [numCRTemplates]
 
FFTWComplextheImpTemplateFFT_deconv
 
TGraph * theImpTemplate_deconv
 
FFTWComplextheWaisTemplateFFT_deconv
 
TGraph * theWaisTemplate_deconv
 
FFTWComplextheCRTemplateFFTs_deconv [numCRTemplates]
 
TGraph * theCRTemplates_deconv [numCRTemplates]
 

Static Public Attributes

static const int numCRTemplates = 10
 

Detailed Description

Definition at line 37 of file AnitaTemplates.h.

Inheritance diagram for AnitaTemplateMachine:
Inheritance graph
[legend]
Collaboration diagram for AnitaTemplateMachine:
Collaboration graph
[legend]

Constructor & Destructor Documentation

AnitaTemplateMachine::AnitaTemplateMachine ( const int  inLength = 2048)

Default Constructor.

Default Constructor

AnitaTemplateMachine Default constructor for ROOT

Definition at line 41 of file AnitaTemplates.cc.

AnitaTemplateMachine::~AnitaTemplateMachine ( )

Default Destructor

Definition at line 64 of file AnitaTemplates.cc.

Member Function Documentation

void AnitaTemplateMachine::deconvolveTemplates ( AnitaResponse::DeconvolutionMethod deconv)

Impulse Response

Wais

CR templates

Definition at line 334 of file AnitaTemplates.cc.

void AnitaTemplateMachine::doTemplateAnalysis ( const AnalysisWaveform waveform,
int  poli,
int  dir,
AnitaTemplateSummary summary,
bool  do_impulse = true,
bool  do_wais = true,
bool  do_cr = true 
)

use the templates, and a supplied AnalysisWaveform, to fill up the summary

Definition at line 421 of file AnitaTemplates.cc.

bool AnitaTemplateMachine::isTmpltsLoaded ( )
inline

Flags

Definition at line 84 of file AnitaTemplates.h.

void AnitaTemplateMachine::loadTemplates ( unsigned int  evTime = 0,
int  version = AnitaVersion::get() 
)

Filling the stored templates

Definition at line 302 of file AnitaTemplates.cc.

void AnitaTemplateMachine::writeTemplatesToFile ( TFile *  outFile)

Write templates to file

Definition at line 721 of file AnitaTemplates.cc.

void AnitaTemplateMachine::zeroInternals ( )

in case you want to reset for some reason

Definition at line 69 of file AnitaTemplates.cc.

Member Data Documentation

const int AnitaTemplateMachine::length

template waveform defaults

Definition at line 50 of file AnitaTemplates.h.

FFTWComplex* AnitaTemplateMachine::theImpTemplateFFT

Template Storage

Definition at line 55 of file AnitaTemplates.h.


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