Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
TraceAnalyzer Class Reference

Online trace analysis. More...

#include <TraceAnalyzer.hpp>

Inheritance diagram for TraceAnalyzer:
Collaboration diagram for TraceAnalyzer:

Public Member Functions

 TraceAnalyzer ()
 
virtual ~TraceAnalyzer ()
 
virtual bool Init (void)
 
virtual void DeclarePlots (void)
 
virtual void Analyze (Trace &trace, const std::string &type, const std::string &subtype)
 
void EndAnalyze (Trace &trace)
 
void EndAnalyze (void)
 
void SetLevel (int i)
 
int GetLevel ()
 

Protected Attributes

int level
 the level of analysis to proceed with
 
std::string name
 name of the analyzer
 

Static Protected Attributes

static int numTracesAnalyzed
 rownumber for DAMM spectrum 850
 

Private Attributes

tms tmsBegin
 time at which the analyzer began
 
double userTime
 user time used by this class
 
double systemTime
 system time used by this class
 
double clocksPerSecond
 frequency of system clock
 

Detailed Description

Online trace analysis.

Simple class which is the basis for all types of trace analysis

Constructor & Destructor Documentation

TraceAnalyzer::TraceAnalyzer ( )

Default Constructor

virtual TraceAnalyzer::~TraceAnalyzer ( )
virtual

Default Destructor

Member Function Documentation

virtual void TraceAnalyzer::Analyze ( Trace trace,
const std::string &  type,
const std::string &  subtype 
)
virtual

Function to analyze a trace online.

Parameters
[in]tracethe trace
[in]type: the type of detector
[in]subtype: the subtype of the detector

Reimplemented in DoubleTraceAnalyzer, TraceFilterer, TraceExtractor, FittingAnalyzer, TauAnalyzer, CfdAnalyzer, and WaveformAnalyzer.

virtual void TraceAnalyzer::DeclarePlots ( void  )
inlinevirtual

Declare Plots (empty for now)

Reimplemented in DoubleTraceAnalyzer, TraceFilterer, TraceExtractor, and FittingAnalyzer.

void TraceAnalyzer::EndAnalyze ( Trace trace)

End the analysis and record the analyzer level in the trace

Parameters
[in]trace: the trace
void TraceAnalyzer::EndAnalyze ( void  )

Finish analysis updating the analyzer timing information

int TraceAnalyzer::GetLevel ( )
inline
Returns
the level of the trace analysis
virtual bool TraceAnalyzer::Init ( void  )
inlinevirtual

Initializes the Analyzer

Returns
True if the init was successful

Reimplemented in DoubleTraceAnalyzer.

void TraceAnalyzer::SetLevel ( int  i)
inline

Set the level of the trace analysis

Parameters
[in]i: the level of the analysis to be done

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