Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
TraceAnalyzer.hpp
Go to the documentation of this file.
1 
6 #ifndef __TRACEANALYZER_HPP_
7 #define __TRACEANALYZER_HPP_
8 
9 #include <string>
10 #include <sys/times.h>
11 
12 #include "Plots.hpp"
13 #include "Trace.hpp"
14 
20  private:
21  tms tmsBegin;
22  double userTime;
23  double systemTime;
24  double clocksPerSecond;
25 
26  protected:
27  int level;
28  static int numTracesAnalyzed;
29  std::string name;
30 
31  public:
33  TraceAnalyzer();
35  virtual ~TraceAnalyzer();
36 
39  virtual bool Init(void){return(true);};
41  virtual void DeclarePlots(void){};
47  virtual void Analyze(Trace &trace, const std::string &type,
48  const std::string &subtype);
52  void EndAnalyze(Trace &trace);
54  void EndAnalyze(void);
57  void SetLevel(int i) {level=i;}
59  int GetLevel() {return level;}
60 };
61 #endif // __TRACEANALYZER_HPP_
tms tmsBegin
time at which the analyzer began
Definition: TraceAnalyzer.hpp:21
virtual void DeclarePlots(void)
Definition: TraceAnalyzer.hpp:41
A container to request a block of plots and plot respective spectra through the plots register...
std::string name
name of the analyzer
Definition: TraceAnalyzer.hpp:29
double userTime
user time used by this class
Definition: TraceAnalyzer.hpp:22
Online trace analysis.
Definition: TraceAnalyzer.hpp:19
int GetLevel()
Definition: TraceAnalyzer.hpp:59
Store the information for a trace.
Definition: Trace.hpp:34
int level
the level of analysis to proceed with
Definition: TraceAnalyzer.hpp:27
A simple class to store the traces.
virtual ~TraceAnalyzer()
double systemTime
system time used by this class
Definition: TraceAnalyzer.hpp:23
virtual bool Init(void)
Definition: TraceAnalyzer.hpp:39
double clocksPerSecond
frequency of system clock
Definition: TraceAnalyzer.hpp:24
void SetLevel(int i)
Definition: TraceAnalyzer.hpp:57
virtual void Analyze(Trace &trace, const std::string &type, const std::string &subtype)
void EndAnalyze(void)
static int numTracesAnalyzed
rownumber for DAMM spectrum 850
Definition: TraceAnalyzer.hpp:28