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

Version of PositionProcessor that is light weight. More...

#include <LitePositionProcessor.hpp>

Inheritance diagram for LitePositionProcessor:
Collaboration diagram for LitePositionProcessor:

Public Member Functions

 LitePositionProcessor ()
 
 ~LitePositionProcessor ()
 
virtual bool Init (RawEvent &event)
 
virtual bool Process (RawEvent &event)
 
virtual void DeclarePlots (void)
 
- 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 PreProcess (RawEvent &event)
 
void EndProcess (void)
 
std::string GetName (void) const
 

Protected Member Functions

ChanEventFindMatchingEdge (ChanEvent *match, std::vector< ChanEvent * >::const_iterator begin, std::vector< ChanEvent * >::const_iterator end) const
 
- 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

float qdcLen [numQdcs]
 the length of each qdc in pixie samples
 
float qdcPos [numQdcs]
 the ending sample number for each QDC position
 
float totLen
 calculated length of all qdcs excluding baseline qdc
 
int whichQdc
 which qdc we are using for position determination
 
int numLocations
 The number of locations.
 
float posScale
 an arbitrary scale for the position parameter to physical units
 
std::vector< float > minNormQdc
 the minimum normalized qdc observed for a location
 
std::vector< float > maxNormQdc
 the maximum normalized qdc observed for a location
 
- 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
 

Static Protected Attributes

static const std::string configFile
 Configuration file name.
 
static const int numQdcs = 8
 Number of QDCs to calculate.
 

Detailed Description

Version of PositionProcessor that is light weight.

Constructor & Destructor Documentation

LitePositionProcessor::LitePositionProcessor ( )

Default Constructor

LitePositionProcessor::~LitePositionProcessor ( )
inline

Default Destructor

Member Function Documentation

virtual void LitePositionProcessor::DeclarePlots ( void  )
virtual

Declare plots for processor

Reimplemented from EventProcessor.

ChanEvent* LitePositionProcessor::FindMatchingEdge ( ChanEvent match,
std::vector< ChanEvent * >::const_iterator  begin,
std::vector< ChanEvent * >::const_iterator  end 
) const
protected

Find the matching edge of the SSD

Parameters
[in]match: the matching edge
[in]begin: an iterator to the beginning of the event
[in]end: an iterator to the end of the event
Returns
a pointer to the matching ChanEvent
virtual bool LitePositionProcessor::Init ( RawEvent event)
virtual

Initialize the processor

Parameters
[in]event: the event to use for init
Returns
true if init was successful

Reimplemented from EventProcessor.

virtual bool LitePositionProcessor::Process ( RawEvent event)
virtual

Process an event

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

Reimplemented from EventProcessor.


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