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

Class to process VANDLE related events. More...

#include <VandleProcessor.hpp>

Inheritance diagram for VandleProcessor:
Collaboration diagram for VandleProcessor:

Public Member Functions

 VandleProcessor ()
 
 ~VandleProcessor ()
 
virtual void DeclarePlots (void)
 
 VandleProcessor (const std::vector< std::string > &typeList, const double &res, const double &offset, const unsigned int &numStarts)
 
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
 

Protected Member Functions

virtual double CorrectTOF (const double &TOF, const double &corRadius, const double &z0)
 Correct the time of flight based on the geometry of the setup. More...
 
- 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

BarMap bars_
 A map to hold all the bars.
 
TimingMap starts_
 A map to to hold all the starts.
 
BarMap barStarts_
 A map that holds all of the bar starts.
 
DetectorSummarygeSummary_
 The Detector Summary for Ge Events.
 
bool hasDecay_
 True if there was a correlated beta decay.
 
double decayTime_
 the time of the decay
 
double plotMult_
 The resolution multiplier for DAMM histograms.
 
double plotOffset_
 The offset multiplier for DAMM histograms.
 
bool hasSmall_
 True if small bars were requested in the Config.
 
bool hasBig_
 True if big bars were requested in the Config.
 
bool hasMed_
 True if medium bars were requested in the Config.
 
unsigned int numStarts_
 The number of starts set in the Config File.
 
- 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
 

Private Member Functions

void AnalyzeBarStarts (void)
 
void AnalyzeStarts (void)
 
void ClearMaps (void)
 
void FillVandleOnlyHists ()
 
unsigned int ReturnOffset (const std::string &type)
 

Detailed Description

Class to process VANDLE related events.

Constructor & Destructor Documentation

VandleProcessor::VandleProcessor ( )

Default Constructor

VandleProcessor::~VandleProcessor ( )
inline

Default Destructor

VandleProcessor::VandleProcessor ( const std::vector< std::string > &  typeList,
const double &  res,
const double &  offset,
const unsigned int &  numStarts 
)

Constructor taking a list of detector types as an argument

Parameters
[in]typeList: the list of bar types that are in the analysis
[in]res: The resolution of the DAMM histograms
[in]offset: The offset of the DAMM histograms

Member Function Documentation

void VandleProcessor::AnalyzeBarStarts ( void  )
private

Analyze the data for scenarios with Bar Starts; e.g. Double Beta detectors

void VandleProcessor::AnalyzeStarts ( void  )
private

Analyze the data for scenarios with Single sided Starts; e.g. LeRIBSS beta scintillators.

void VandleProcessor::ClearMaps ( void  )
private

Clear the maps in anticipation for the next event

virtual double VandleProcessor::CorrectTOF ( const double &  TOF,
const double &  corRadius,
const double &  z0 
)
inlineprotectedvirtual

Correct the time of flight based on the geometry of the setup.

Parameters
[in]TOF: The time of flight to correct
[in]corRadius: the corrected radius for the flight path
[in]z0: perpendicular distance from the source to bar
Returns
True if the retrieval was successful.
virtual void VandleProcessor::DeclarePlots ( void  )
virtual

Declare the plots used in the analysis

Reimplemented from EventProcessor.

Reimplemented in CrosstalkProcessor, VandleAtLeribssProcessor, and WalkVandleBetaProcessor.

void VandleProcessor::FillVandleOnlyHists ( )
private

Fill up the basic histograms

virtual bool VandleProcessor::PreProcess ( RawEvent event)
virtual

Preprocess the VANDLE data

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

Reimplemented from EventProcessor.

virtual bool VandleProcessor::Process ( RawEvent event)
virtual

Process the event for VANDLE stuff

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

Reimplemented from EventProcessor.

Reimplemented in VandleAtLeribssProcessor, WalkVandleBetaProcessor, and CrosstalkProcessor.

unsigned int VandleProcessor::ReturnOffset ( const std::string &  type)
private
Returns
Returns the appropriate offset based off the VANDLE bar type
Parameters
[in]type: The type of bar that we are dealing with

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