|
DDASToys for NSCLDAQ
6.2-000
|
An interactive event processor integrated in the traceview GUI. More...
#include <DDASDecoder.h>
Public Member Functions | |
| DDASDecoder () | |
| Constructor. | |
| ~DDASDecoder () | |
| Destructor. | |
| void | createDataSource (std::string src) |
| Create a file data source from the input string. More... | |
| std::vector< ddastoys::DDASFitHit > | getEvent () |
| Get the next unpacked PHYSICS_EVENT. More... | |
| int | skip (int nevts) |
| Skip events in the currently loaded data file. More... | |
| int | getEventCount () |
| Return the number of PHYSCIS_EVENTs. More... | |
| int | getEventIndex () |
| Return the PHYSICS_EVENT index. More... | |
| std::string | getFilePath () |
| Return the path of the file data source. More... | |
An interactive event processor integrated in the traceview GUI.
An event processor class broken into parts performing specific actions like creating a data source or getting the next PHYSICS_EVENT. These functions can be hooked into the signal and slot framework used by Qt. See latest $DAQROOT/share/recipes/process/process.cpp for a more general example.
| void DDASDecoder::createDataSource | ( | std::string | src | ) |
Create a file data source from the input string.
| src | Name of the file we will create a data source from. |
| std::vector< DDASFitHit > DDASDecoder::getEvent | ( | ) |
Get the next unpacked PHYSICS_EVENT.
An event is a collection of DDASFitHits stored in a vector.
|
inline |
Return the number of PHYSCIS_EVENTs.
|
inline |
Return the PHYSICS_EVENT index.
| std::string DDASDecoder::getFilePath | ( | ) |
Return the path of the file data source.
| int DDASDecoder::skip | ( | int | nevts | ) |
Skip events in the currently loaded data file.
| nevts | Number of PHYSICS_EVENTS to skip. |
| 0 | END_RUN state change event is not encountered when skipping. |
| -1 | END_RUN state change event is encountered when skipping. |
Skip forward by nevts PHYSICS_EVENTS where nevts is provided as an argument.