#include <Unpacker.hpp>
Definition at line 33 of file Unpacker.hpp.
§ Unpacker()
§ ~Unpacker()
§ AddEvent()
bool Unpacker::AddEvent |
( |
XiaData * |
event_ | ) |
|
|
private |
Push an event into the event list.
- Parameters
-
[in] | event_ | The XiaData to push onto the back of the event list. |
- Returns
- True if the XiaData's module number is valid and false otherwise.
Definition at line 132 of file Unpacker.cpp.
§ BuildRawEvent()
bool Unpacker::BuildRawEvent |
( |
| ) |
|
|
private |
Scan the time sorted event list and package the events into a raw event with a size governed by the event width.
- Returns
- True if the event list is not empty and false otherwise.
Definition at line 44 of file Unpacker.cpp.
§ ClearEventList()
void Unpacker::ClearEventList |
( |
| ) |
|
|
private |
Clear all events in the spill event list. WARNING! This method will delete all events in the event list. This could cause seg faults if the events are used elsewhere.
- Returns
- Nothing.
Definition at line 151 of file Unpacker.cpp.
§ ClearRawEvent()
void Unpacker::ClearRawEvent |
( |
| ) |
|
|
private |
Clear all events in the raw event list. WARNING! This method will delete all events in the event list. This could cause seg faults if the events are used elsewhere.
- Returns
- Nothing.
Definition at line 161 of file Unpacker.cpp.
§ GetEventStartTime()
double Unpacker::GetEventStartTime |
( |
| ) |
|
|
inline |
Get the start time of the current raw event.
Definition at line 54 of file Unpacker.hpp.
§ GetEventStopTime()
double Unpacker::GetEventStopTime |
( |
| ) |
|
|
inline |
Get the stop time of the current raw event.
Definition at line 57 of file Unpacker.hpp.
§ GetEventWidth()
double Unpacker::GetEventWidth |
( |
| ) |
|
|
inline |
Return the width of the raw event window in pixie16 clock ticks.
Definition at line 48 of file Unpacker.hpp.
§ GetFirstTime() [1/2]
double Unpacker::GetFirstTime |
( |
| ) |
|
|
inline |
Return the time of the first fired channel event.
Definition at line 51 of file Unpacker.hpp.
§ GetFirstTime() [2/2]
bool Unpacker::GetFirstTime |
( |
double & |
time | ) |
|
|
private |
Get the minimum channel time from the event list.
- Parameters
-
[out] | time | The minimum time from the event list in system clock ticks. |
- Returns
- True if the event list is not empty and false otherwise.
Definition at line 169 of file Unpacker.cpp.
§ GetMaxModule()
size_t Unpacker::GetMaxModule |
( |
| ) |
|
|
inline |
Return the maximum module read from the input file.
Definition at line 42 of file Unpacker.hpp.
§ GetNumRawEvents()
unsigned int Unpacker::GetNumRawEvents |
( |
| ) |
|
|
inline |
Return the number of raw events read from the file.
Definition at line 45 of file Unpacker.hpp.
§ GetRealStartTime()
double Unpacker::GetRealStartTime |
( |
| ) |
|
|
inline |
Get the time of the first xia event in the raw event.
Definition at line 60 of file Unpacker.hpp.
§ GetRealStopTime()
double Unpacker::GetRealStopTime |
( |
| ) |
|
|
inline |
Get the time of the last xia event in the raw event.
Definition at line 63 of file Unpacker.hpp.
§ InitializeDataMask()
void Unpacker::InitializeDataMask |
( |
const std::string & |
firmware, |
|
|
const unsigned int & |
frequency |
|
) |
| |
|
inline |
§ IsEmpty()
bool Unpacker::IsEmpty |
( |
| ) |
|
|
private |
Check whether or not the eventList is empty.
- Returns
- True if the eventList is empty, and false otherwise.
Definition at line 187 of file Unpacker.cpp.
§ IsRunning()
bool Unpacker::IsRunning |
( |
| ) |
|
|
inline |
Return true if the scan is running and false otherwise.
Definition at line 66 of file Unpacker.hpp.
§ ProcessRawEvent()
§ RawStats()
Add an event to generic statistics output.
- Parameters
-
[in] | event_ | Pointer to the current XIA event. Unused by default. |
[in] | addr_ | Pointer to a ScanInterface object. Unused by default. |
- Returns
- Nothing.
Reimplemented in scopeUnpacker, and skeletonUnpacker.
Definition at line 133 of file Unpacker.hpp.
§ ReadBuffer()
int Unpacker::ReadBuffer |
( |
unsigned int * |
buf | ) |
|
|
protected |
Called form ReadSpill. Scan the current spill and construct a list of events which fired by obtaining the module, channel, trace, etc. of the timestamped event. This method will construct the event list for later processing.
- Parameters
-
[in] | buf | Pointer to an array of unsigned ints containing raw buffer data. |
[out] | bufLen | The number of words in the buffer. |
- Returns
- The number of XiaDatas read from the buffer.
Called form ReadSpill. Scan the current spill and construct a list of events which fired by obtaining the module, channel, trace, etc. of the timestamped event. This method will construct the event list for later processing.
- Parameters
-
[in] | buf | : Pointer to an array of unsigned ints containing raw buffer data. |
- Returns
- The number of XiaDatas read from the buffer.
Definition at line 210 of file Unpacker.cpp.
§ ReadSpill()
bool Unpacker::ReadSpill |
( |
unsigned int * |
data, |
|
|
unsigned int |
nWords, |
|
|
bool |
is_verbose = true |
|
) |
| |
ReadSpill is responsible for constructing a list of pixie16 events from a raw data spill. This method performs sanity checks on the spill and calls ReadBuffer in order to construct the event list.
- Parameters
-
[in] | data | Pointer to an array of unsigned ints containing the spill data. |
[in] | nWords | The number of words in the array. |
[in] | is_verbose | Toggle the verbosity flag on/off. |
- Returns
- True if the spill was read successfully and false otherwise.
Revision specific, so move to ReadBuffData
Definition at line 253 of file Unpacker.cpp.
§ Run()
Run the scan. Unused by default.
- Returns
- Nothing.
Definition at line 106 of file Unpacker.hpp.
§ SetDebugMode()
bool Unpacker::SetDebugMode |
( |
bool |
state_ = true | ) |
|
|
inline |
Toggle debug mode on / off.
Definition at line 69 of file Unpacker.hpp.
§ SetEventWidth()
double Unpacker::SetEventWidth |
( |
double |
width_ | ) |
|
|
inline |
Set the width of events in pixie16 clock ticks.
Definition at line 72 of file Unpacker.hpp.
§ SetInterface()
Set the address of the scan interface used for file operations.
Definition at line 81 of file Unpacker.hpp.
§ Stop()
Stop the scan. Unused by default.
- Returns
- Nothing.
Definition at line 101 of file Unpacker.hpp.
§ TimeSort()
void Unpacker::TimeSort |
( |
| ) |
|
|
private |
The time of the last xia event in the raw event.
Scan the event list and sort it by timestamp.
- Returns
- Nothing.
Scan the event list and sort it by timestamp.
- Returns
- Nothing.
Definition at line 34 of file Unpacker.cpp.
§ Write()
Write all recorded channel counts to a file.
- Returns
- Nothing.
Definition at line 424 of file Unpacker.cpp.
§ channel_counts
The total count of raw events read from file.
Definition at line 153 of file Unpacker.hpp.
§ debug_mode
bool Unpacker::debug_mode |
|
protected |
The width of the raw event in pixie clock ticks (8 ns).
Definition at line 114 of file Unpacker.hpp.
§ decodedList_
std::vector<XiaData*> Unpacker::decodedList_ |
|
private |
Vector containing the list of channels decoded from.
Definition at line 147 of file Unpacker.hpp.
§ eventList
std::vector<std::deque<XiaData*> > Unpacker::eventList |
|
protected |
§ eventStartTime
double Unpacker::eventStartTime |
|
private |
The first recorded event time.
Definition at line 156 of file Unpacker.hpp.
§ eventWidth
double Unpacker::eventWidth |
|
protected |
§ firstTime
double Unpacker::firstTime |
|
private |
Counters for each channel in each module.
Definition at line 155 of file Unpacker.hpp.
§ interface
The list of all events in the event window.
Definition at line 120 of file Unpacker.hpp.
§ mask_
§ maxWords
unsigned int Unpacker::maxWords |
|
private |
Maximum number of data words to read.
Definition at line 150 of file Unpacker.hpp.
§ numRawEvt
unsigned int Unpacker::numRawEvt |
|
private |
Maximum number of data words for revision D.
Definition at line 151 of file Unpacker.hpp.
§ rawEvent
std::deque<XiaData*> Unpacker::rawEvent |
|
protected |
The list of all events in a spill.
Definition at line 118 of file Unpacker.hpp.
§ realStartTime
double Unpacker::realStartTime |
|
private |
The start time of the current raw event.
Definition at line 158 of file Unpacker.hpp.
§ realStopTime
double Unpacker::realStopTime |
|
private |
The time of the first xia event in the raw event.
Definition at line 159 of file Unpacker.hpp.
§ running
§ TOTALREAD
unsigned int Unpacker::TOTALREAD |
|
private |
The documentation for this class was generated from the following files: