PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
Working template class for experiment processors. More...
#include <TemplateExpProcessor.hpp>
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... | |
![]() | |
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 | |
![]() | |
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... | |
![]() | |
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 |
Working template class for experiment processors.
Definition at line 20 of file TemplateExpProcessor.hpp.
TemplateExpProcessor::TemplateExpProcessor | ( | ) |
Default Constructor
Set the gamma cuttoff energy to a default of 0.
Definition at line 41 of file TemplateExpProcessor.cpp.
TemplateExpProcessor::TemplateExpProcessor | ( | const double & | gcut | ) |
Constructor to take an argument for the gamma cutoff
Definition at line 51 of file TemplateExpProcessor.cpp.
TemplateExpProcessor::~TemplateExpProcessor | ( | ) |
Destructor to close output files and clean up pointers.
Default Destructor
Definition at line 62 of file TemplateExpProcessor.cpp.
|
virtual |
Declare the plots used in the analysis
Reimplemented from EventProcessor.
Definition at line 35 of file TemplateExpProcessor.cpp.
|
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.
|
virtual |
Main processing of data of interest.
Process the event
[in] | event | : the event to process |
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.
|
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.
|
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.
|
private |
Variable used to set gamma cutoff energy.
Definition at line 46 of file TemplateExpProcessor.hpp.
|
private |
Pointer to ouptut ASCII file stream.
Definition at line 45 of file TemplateExpProcessor.hpp.