A class to perform trapezoidal filters on the traces.
More...
#include <TraceFilterer.hpp>
|
| TraceFilterer (double energyScaleFactor_, short fast_rise, short fast_gap, short fast_threshold, short energy_rise, short energy_gap, short slow_rise, short slow_gap, short slow_threshold) |
|
virtual | ~TraceFilterer () |
|
virtual bool | Init (const std::string &filterFileName="Config.xml") |
|
virtual void | DeclarePlots (void) |
|
virtual void | Analyze (Trace &trace, const std::string &type, const std::string &subtype) |
|
| TraceAnalyzer () |
|
virtual | ~TraceAnalyzer () |
|
virtual bool | Init (void) |
|
void | EndAnalyze (Trace &trace) |
|
void | EndAnalyze (void) |
|
void | SetLevel (int i) |
|
int | GetLevel () |
|
A class to perform trapezoidal filters on the traces.
TraceFilterer::TraceFilterer |
( |
double |
energyScaleFactor_, |
|
|
short |
fast_rise, |
|
|
short |
fast_gap, |
|
|
short |
fast_threshold, |
|
|
short |
energy_rise, |
|
|
short |
energy_gap, |
|
|
short |
slow_rise, |
|
|
short |
slow_gap, |
|
|
short |
slow_threshold |
|
) |
| |
Constructor taking all of the necessary parameters
- Parameters
-
[in] | energyScaleFactor_ | : the scaling to match filtered energy to pixie |
[in] | fast_rise | : the rise time of the fast filter |
[in] | fast_gap | : the flattop of the fast filter |
[in] | fast_threshold | : the threshold of the fast filter |
[in] | energy_rise | : the risetime of the energy filter |
[in] | energy_gap | : The flattop of the energy filter |
[in] | slow_rise | : The rise time of the second energy filter |
[in] | slow_gap | : the flattop of the second energy filter |
[in] | slow_threshold | : the threshold for the second energy filter |
virtual TraceFilterer::~TraceFilterer |
( |
| ) |
|
|
inlinevirtual |
virtual void TraceFilterer::Analyze |
( |
Trace & |
trace, |
|
|
const std::string & |
type, |
|
|
const std::string & |
subtype |
|
) |
| |
|
virtual |
The analyzer method to do the analysis
- Parameters
-
[in] | trace | : the trace to analyze |
[in] | type | : the detector type |
[in] | subtype | : the detector subtype |
Reimplemented from TraceAnalyzer.
Reimplemented in DoubleTraceAnalyzer.
virtual void TraceFilterer::DeclarePlots |
( |
void |
| ) |
|
|
virtual |
virtual const PulseInfo& TraceFilterer::FindPulse |
( |
Trace::iterator |
begin, |
|
|
Trace::iterator |
end |
|
) |
| |
|
protectedvirtual |
Find the pulse in the trace
- Parameters
-
[in] | begin | : an iterator to the beginning of the trace |
[in] | end | : an iterator to the end of the trace |
- Returns
- A PulseInfo structure containing the calculated info
virtual bool TraceFilterer::Init |
( |
const std::string & |
filterFileName = "Config.xml" | ) |
|
|
virtual |
Initialize the analyzer
- Parameters
-
[in] | filterFileName | : the name of the file containing the filter parameters |
- Returns
- True if the initialization was successful.
The documentation for this class was generated from the following file: