|
LDMX Software
|
Supporting data for one event decoded from a single ECON-D. More...
#include <ECONDEventInfo.h>
Public Types | |
| enum | Corruption { RESYNC = 0 , LOST_SYNC = 1 , NO_TRAILER = 2 , TRAILER_COUNT_MISMATCH = 3 , ECON_ID_MISMATCH = 4 , SAMPLE_INDEX_MISMATCH = 5 , TRUNCATED_FRAME = 6 , EXTRA_WORDS = 7 , NO_SOI = 8 , BAD_FRAME_SIZE = 9 , NO_FRAME = 10 } |
| Bits of the frame corruption mask. More... | |
Public Member Functions | |
| void | clear () |
| reset to the default state | |
| void | setFrame (int corruption, int trailer_n_samples, int i_soi, int n_skipped_words) |
| set the frame-level data | |
| void | setDigisFilled (bool filled) |
| set if the digis were filled from this event | |
| void | addSample (const ECONDSampleInfo &sample) |
| add the next sample | |
| int | getCorruption () const |
| frame corruption mask, bits from Corruption | |
| bool | isCorrupt (Corruption c) const |
| check a single frame corruption bit | |
| int | getTrailerNumSamples () const |
| number of samples in the ending trailer (-1 if missing) | |
| int | getSOIIndex () const |
| index of the sample of interest | |
| int | getNumSkippedWords () const |
| number of words skipped searching for capture headers | |
| bool | areDigisFilled () const |
| were all samples good so the digis were filled | |
| const std::vector< ECONDSampleInfo > & | getSamples () const |
| samples in order of transmission | |
Private Member Functions | |
| ClassDef (ECONDEventInfo, 1) | |
Private Attributes | |
| int | corruption_ {0} |
| frame corruption mask | |
| int | trailer_n_samples_ {-1} |
| number of samples in the trailer | |
| int | i_soi_ {0} |
| index of the sample of interest | |
| int | n_skipped_words_ {0} |
| words skipped while searching for capture headers | |
| bool | digis_filled_ {false} |
| digis were filled from this event | |
| std::vector< ECONDSampleInfo > | samples_ |
| per-sample data | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const ECONDEventInfo &e) |
Supporting data for one event decoded from a single ECON-D.
Holds the frame-level checks and the per-sample data that HgcrocDigiCollection does not store.
Definition at line 222 of file ECONDEventInfo.h.
Bits of the frame corruption mask.
Same order as packing::MultiSampleECONDEventPacket::Corruption
Definition at line 229 of file ECONDEventInfo.h.
|
inline |
add the next sample
Definition at line 262 of file ECONDEventInfo.h.
References samples_.
|
inline |
were all samples good so the digis were filled
Definition at line 275 of file ECONDEventInfo.h.
References digis_filled_.
| void ldmx::ECONDEventInfo::clear | ( | ) |
reset to the default state
Definition at line 9 of file ECONDEventInfo.cxx.
References corruption_, digis_filled_, i_soi_, n_skipped_words_, samples_, and trailer_n_samples_.
|
inline |
frame corruption mask, bits from Corruption
Definition at line 265 of file ECONDEventInfo.h.
References corruption_.
|
inline |
number of words skipped searching for capture headers
Definition at line 273 of file ECONDEventInfo.h.
References n_skipped_words_.
|
inline |
samples in order of transmission
Definition at line 277 of file ECONDEventInfo.h.
References samples_.
|
inline |
|
inline |
number of samples in the ending trailer (-1 if missing)
Definition at line 269 of file ECONDEventInfo.h.
References trailer_n_samples_.
|
inline |
check a single frame corruption bit
Definition at line 267 of file ECONDEventInfo.h.
References corruption_.
|
inline |
set if the digis were filled from this event
Definition at line 259 of file ECONDEventInfo.h.
References digis_filled_.
|
inline |
set the frame-level data
Definition at line 250 of file ECONDEventInfo.h.
References corruption_, i_soi_, n_skipped_words_, and trailer_n_samples_.
|
friend |
Definition at line 33 of file ECONDEventInfo.cxx.
|
private |
frame corruption mask
Definition at line 283 of file ECONDEventInfo.h.
Referenced by clear(), getCorruption(), isCorrupt(), and setFrame().
|
private |
digis were filled from this event
Definition at line 291 of file ECONDEventInfo.h.
Referenced by areDigisFilled(), clear(), and setDigisFilled().
|
private |
index of the sample of interest
Definition at line 287 of file ECONDEventInfo.h.
Referenced by clear(), getSOIIndex(), and setFrame().
|
private |
words skipped while searching for capture headers
Definition at line 289 of file ECONDEventInfo.h.
Referenced by clear(), getNumSkippedWords(), and setFrame().
|
private |
per-sample data
Definition at line 293 of file ECONDEventInfo.h.
Referenced by addSample(), clear(), and getSamples().
|
private |
number of samples in the trailer
Definition at line 285 of file ECONDEventInfo.h.
Referenced by clear(), getTrailerNumSamples(), and setFrame().