PAASS
Software suite to Acquire and Analyze Data from Pixie16
TraceAnalyzer Class Reference

Abstract class that all trace analyzers are derived from. 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)
 
virtual void Analyze (Trace &trace, const std::string &type, const std::string &subtype, const std::map< std::string, int > &tagMap)
 
void EndAnalyze (Trace &trace)
 
void EndAnalyze (void)
 
void SetLevel (int i)
 
int GetLevel ()
 

Protected Attributes

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

Static Protected Attributes

static int numTracesAnalyzed = 0
 rownumber for DAMM spectrum 850 More...
 

Private Attributes

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

Detailed Description

Abstract class that all trace analyzers are derived from.

Definition at line 16 of file TraceAnalyzer.hpp.

Constructor & Destructor Documentation

§ TraceAnalyzer()

TraceAnalyzer::TraceAnalyzer ( )

Default Constructor

Definition at line 28 of file TraceAnalyzer.cpp.

§ ~TraceAnalyzer()

TraceAnalyzer::~TraceAnalyzer ( )
virtual

Default Destructor

Definition at line 36 of file TraceAnalyzer.cpp.

Member Function Documentation

§ Analyze() [1/2]

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

Definition at line 43 of file TraceAnalyzer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ Analyze() [2/2]

void TraceAnalyzer::Analyze ( Trace trace,
const std::string &  type,
const std::string &  subtype,
const std::map< std::string, int > &  tagMap 
)
virtual

Function to analyze a trace online.

Parameters
[in]tracethe trace
[in]type: the type of detector
[in]subtype: the subtype of the detector
[in]tagMap: takes a map of all the tags that the channel has

Reimplemented in TraceExtractor, TraceFilterAnalyzer, FittingAnalyzer, CfdAnalyzer, TauAnalyzer, WaveformAnalyzer, and WaaAnalyzer.

Definition at line 52 of file TraceAnalyzer.cpp.

Here is the call graph for this function:

§ DeclarePlots()

virtual void TraceAnalyzer::DeclarePlots ( void  )
inlinevirtual

Declare Plots (empty for now)

Reimplemented in TraceExtractor, TraceFilterAnalyzer, and WaaAnalyzer.

Definition at line 27 of file TraceAnalyzer.hpp.

Here is the call graph for this function:

§ EndAnalyze() [1/2]

void TraceAnalyzer::EndAnalyze ( Trace trace)

End the analysis and record the analyzer level in the trace

Parameters
[in]trace: the trace

Definition at line 61 of file TraceAnalyzer.cpp.

Here is the call graph for this function:

§ EndAnalyze() [2/2]

void TraceAnalyzer::EndAnalyze ( void  )

Finish analysis updating the analyzer timing information

Definition at line 66 of file TraceAnalyzer.cpp.

Here is the caller graph for this function:

§ GetLevel()

int TraceAnalyzer::GetLevel ( )
inline
Returns
the level of the trace analysis

Definition at line 52 of file TraceAnalyzer.hpp.

§ Init()

virtual bool TraceAnalyzer::Init ( void  )
inlinevirtual

Initializes the Analyzer

Returns
True if the init was successful

Definition at line 25 of file TraceAnalyzer.hpp.

§ SetLevel()

void TraceAnalyzer::SetLevel ( int  i)
inline

Set the level of the trace analysis

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

Definition at line 50 of file TraceAnalyzer.hpp.

Field Documentation

§ clocksPerSecond

double TraceAnalyzer::clocksPerSecond
private

frequency of system clock

Definition at line 61 of file TraceAnalyzer.hpp.

§ level

int TraceAnalyzer::level
protected

the level of analysis to proceed with

Definition at line 54 of file TraceAnalyzer.hpp.

§ name

std::string TraceAnalyzer::name
protected

name of the analyzer

Definition at line 56 of file TraceAnalyzer.hpp.

§ numTracesAnalyzed

int TraceAnalyzer::numTracesAnalyzed = 0
staticprotected

rownumber for DAMM spectrum 850

number of analyzed traces

Definition at line 55 of file TraceAnalyzer.hpp.

§ systemTime

double TraceAnalyzer::systemTime
private

system time used by this class

Definition at line 60 of file TraceAnalyzer.hpp.

§ tmsBegin

tms TraceAnalyzer::tmsBegin
private

time at which the analyzer began

Definition at line 58 of file TraceAnalyzer.hpp.

§ userTime

double TraceAnalyzer::userTime
private

user time used by this class

Definition at line 59 of file TraceAnalyzer.hpp.


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