PAASS
Software suite to Acquire and Analyze Data from Pixie16
TemplateExpProcessor Class Reference

Working template class for experiment processors. More...

#include <TemplateExpProcessor.hpp>

Inheritance diagram for TemplateExpProcessor:
Collaboration diagram for TemplateExpProcessor:

Public Member Functions

 TemplateExpProcessor ()
 
 TemplateExpProcessor (const double &gcut)
 
 ~TemplateExpProcessor ()
 Destructor to close output files and clean up pointers. More...
 
virtual void DeclarePlots (void)
 
virtual bool PreProcess (RawEvent &event)
 We do nothing here since we're completely dependent on the resutls of others. More...
 
virtual bool Process (RawEvent &event)
 Main processing of data of interest. More...
 
- 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 Member Functions

void SetAssociatedTypes (void)
 Associates this Experiment Processor with template and ge detector types. More...
 
void SetupAsciiOutput (void)
 Sets up the name of the output ascii data file. More...
 

Private Attributes

std::ofstream * poutstream_
 Pointer to ouptut ASCII file stream. More...
 
double gCutoff_
 Variable used to set gamma cutoff energy. More...
 

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. More...
 
std::set< std::string > associatedTypes
 Set of associated types for Processor. More...
 
bool initDone
 True if the initialization has finished. More...
 
bool didProcess
 True if the process finished. More...
 
std::map< std::string, const DetectorSummary * > sumMap
 Map of associated detector summary. More...
 
Plots histo
 

Detailed Description

Working template class for experiment processors.

Definition at line 20 of file TemplateExpProcessor.hpp.

Constructor & Destructor Documentation

§ TemplateExpProcessor() [1/2]

TemplateExpProcessor::TemplateExpProcessor ( )

Default Constructor

Set the gamma cuttoff energy to a default of 0.

Definition at line 41 of file TemplateExpProcessor.cpp.

Here is the call graph for this function:

§ TemplateExpProcessor() [2/2]

TemplateExpProcessor::TemplateExpProcessor ( const double &  gcut)

Constructor to take an argument for the gamma cutoff

Definition at line 51 of file TemplateExpProcessor.cpp.

Here is the call graph for this function:

§ ~TemplateExpProcessor()

TemplateExpProcessor::~TemplateExpProcessor ( )

Destructor to close output files and clean up pointers.

Default Destructor

Definition at line 62 of file TemplateExpProcessor.cpp.

Member Function Documentation

§ DeclarePlots()

void TemplateExpProcessor::DeclarePlots ( void  )
virtual

Declare the plots used in the analysis

Reimplemented from EventProcessor.

Definition at line 35 of file TemplateExpProcessor.cpp.

§ PreProcess()

bool TemplateExpProcessor::PreProcess ( RawEvent event)
virtual

We do nothing here since we're completely dependent on the resutls of others.

PreProcess does nothing since this is solely dependent on results from other Processors

Reimplemented from EventProcessor.

Definition at line 101 of file TemplateExpProcessor.cpp.

Here is the call graph for this function:

§ Process()

bool TemplateExpProcessor::Process ( RawEvent event)
virtual

Main processing of data of interest.

Process the event

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

Vectors to hold the information we will get from the various processors

Obtain the list of template events that were created in TemplateProcessor::PreProecess

Obtain the list of Ge events and addback events that were created in GeProcessor::PreProecess

Plot the size of the template events vector in two ways

Obtain some useful logic statuses

Begin loop over template events

Begin loop over ge events

Plot the Template Energy vs. Ge Energy if tape isn't moving

Output template and ge energy to text file if we had a beta along with the runtime in seconds.

Fill ROOT histograms and tree with the information

Plot the Ge energy with a cut

Reimplemented from EventProcessor.

Definition at line 108 of file TemplateExpProcessor.cpp.

Here is the call graph for this function:

§ SetAssociatedTypes()

void TemplateExpProcessor::SetAssociatedTypes ( void  )
private

Associates this Experiment Processor with template and ge detector types.

Sets the detectors that are associated with this processor

Definition at line 73 of file TemplateExpProcessor.cpp.

Here is the caller graph for this function:

§ SetupAsciiOutput()

void TemplateExpProcessor::SetupAsciiOutput ( void  )
private

Sets up the name of the output ascii data file.

Sets up the ASCII output file stream

Definition at line 79 of file TemplateExpProcessor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

§ gCutoff_

double TemplateExpProcessor::gCutoff_
private

Variable used to set gamma cutoff energy.

Definition at line 46 of file TemplateExpProcessor.hpp.

§ poutstream_

std::ofstream* TemplateExpProcessor::poutstream_
private

Pointer to ouptut ASCII file stream.

Definition at line 45 of file TemplateExpProcessor.hpp.


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