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

Processor to handle signals from the Moving Tape Collector. More...

#include <MtcProcessor.hpp>

Inheritance diagram for MtcProcessor:
Collaboration diagram for MtcProcessor:

Public Member Functions

 MtcProcessor (bool double_stop, bool double_start)
 
virtual void DeclarePlots (void)
 
virtual bool PreProcess (RawEvent &event)
 
virtual bool Process (RawEvent &event)
 
- Public Member Functions inherited from EventProcessor
 EventProcessor ()
 
 EventProcessor (int offset, int range, std::string name)
 
virtual ~EventProcessor ()
 
virtual const std::set< std::string > & GetTypes (void) const
 
virtual bool DidProcess (void) const
 
virtual bool HasEvent (void) const
 
virtual bool Init (RawEvent &event)
 
void EndProcess (void)
 
std::string GetName (void) const
 

Private Attributes

bool double_stop_
 
bool double_start_
 

Static Private Attributes

static const double doubleTimeLimit_ = 10e-6
 

Additional Inherited Members

- Protected Member Functions inherited from EventProcessor
virtual void plot (int dammId, double val1, double val2=-1, double val3=-1, const char *name="h")
 Implementation of the plot command to interface with the DAMM routines. More...
 
virtual void DeclareHistogram1D (int dammId, int xSize, const char *title)
 Declares a 1D histogram calls the C++ wrapper for DAMM. More...
 
virtual void DeclareHistogram2D (int dammId, int xSize, int ySize, const char *title)
 Declares a 2D histogram calls the C++ wrapper for DAMM. More...
 
- Protected Attributes inherited from EventProcessor
std::string name
 Name of the Processor.
 
std::set< std::string > associatedTypes
 Set of associated types for Processor.
 
bool initDone
 True if the initialization has finished.
 
bool didProcess
 True if the process finished.
 
std::map< std::string, const DetectorSummary * > sumMap
 Map of associated detector summary.
 
Plots histo
 

Detailed Description

Processor to handle signals from the Moving Tape Collector.

Constructor & Destructor Documentation

MtcProcessor::MtcProcessor ( bool  double_stop,
bool  double_start 
)

Enable/disable double stop / start flag

Parameters
[in]double_stop: sets the double_stop flag
[in]double_start: set the double_start flag

Member Function Documentation

virtual void MtcProcessor::DeclarePlots ( void  )
virtual

Declare the plots for the processor

Reimplemented from EventProcessor.

virtual bool MtcProcessor::PreProcess ( RawEvent event)
virtual

Preprocess the event

Parameters
[in]event: the event to process
Returns
true if the preprocess was successful

Reimplemented from EventProcessor.

virtual bool MtcProcessor::Process ( RawEvent event)
virtual

Process the event

Parameters
[in]event: the event to process
Returns
true is the processing was successful

Reimplemented from EventProcessor.

Field Documentation

bool MtcProcessor::double_start_
private

In some experiments the MTC start signal was doubled this flags enable removal of such an events

bool MtcProcessor::double_stop_
private

In some experiments the MTC stop signal was doubled this flags enable removal of such an events

const double MtcProcessor::doubleTimeLimit_ = 10e-6
staticprivate

Upper limit in seconds for bad (double) start/stop event


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