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

A class to perform trapezoidal filters on the traces. More...

#include <TraceFilterer.hpp>

Inheritance diagram for TraceFilterer:
Collaboration diagram for TraceFilterer:

Data Structures

struct  PulseInfo
 Structure to hold information about the pulse. More...
 

Public Member Functions

 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)
 
- Public Member Functions inherited from TraceAnalyzer
 TraceAnalyzer ()
 
virtual ~TraceAnalyzer ()
 
virtual bool Init (void)
 
void EndAnalyze (Trace &trace)
 
void EndAnalyze (void)
 
void SetLevel (int i)
 
int GetLevel ()
 

Protected Member Functions

virtual const PulseInfoFindPulse (Trace::iterator begin, Trace::iterator end)
 

Protected Attributes

double energyScaleFactor_
 energy scaling factor
 
TrapezoidalFilterParameters fastParms
 Fast (Trigger) filter parameters.
 
Trace::value_type fastThreshold
 Threshold for fast filter.
 
TrapezoidalFilterParameters energyParms
 Slow (Energy) filter parameters.
 
TrapezoidalFilterParameters thirdParms
 Parameters for second fast filter.
 
Trace::value_type slowThreshold
 Threshold for fast filter.
 
Trace fastFilter
 fast filter of trace
 
Trace energyFilter
 slow filter of trace
 
Trace thirdFilter
 second slow filter of trace
 
bool useThirdFilter
 True if we want to use the third filter.
 
PulseInfo pulse
 Instance of the PulseInfo class.
 
- Protected Attributes inherited from TraceAnalyzer
int level
 the level of analysis to proceed with
 
std::string name
 name of the analyzer
 

Static Protected Attributes

static const int energyBins
 Number of energy bins.
 
- Static Protected Attributes inherited from TraceAnalyzer
static int numTracesAnalyzed
 rownumber for DAMM spectrum 850
 

Detailed Description

A class to perform trapezoidal filters on the traces.

Constructor & Destructor Documentation

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

Default Destructor

Member Function Documentation

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

Declare the plots for the Analyzer

Reimplemented from TraceAnalyzer.

Reimplemented in DoubleTraceAnalyzer.

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: