#include <EOFRecord.h>
Public Member Functions | |
uint32 | code () const |
EOFRecordView (void *buf, uint32 hlt_path_cnt) | |
uint32 | events () const |
uint64 | firstEventOffset () |
void | hltStats (std::vector< uint32 > &put_here) |
uint64 | lastEventOffset () |
uint32 | run () const |
uint32 | size () const |
uint32 | statusCode () const |
Private Attributes | |
uint8 * | buf_ |
uint64 | first_event_offset_ |
HeaderView | head_ |
uint32 | hlt_path_count_ |
uint8 * | hlt_path_stat_end_ |
uint8 * | hlt_path_stat_start_ |
uint64 | last_event_offset_ |
Definition at line 25 of file EOFRecord.h.
EOFRecordView::EOFRecordView | ( | void * | buf, |
uint32 | hlt_path_cnt | ||
) |
Definition at line 3 of file EOFRecord.cc.
References buf_, convert64(), first_event_offset_, hlt_path_count_, hlt_path_stat_end_, hlt_path_stat_start_, and last_event_offset_.
: buf_((uint8*)buf),head_(buf), hlt_path_count_(hlt_path_cnt) { hlt_path_stat_start_ = buf_ + sizeof(EOFRecordHeader); hlt_path_stat_end_ = hlt_path_stat_start_ + (hlt_path_count_*4); first_event_offset_ = convert64(hlt_path_stat_end_); last_event_offset_ = convert64(hlt_path_stat_end_ + sizeof(uint64) ); }
uint32 EOFRecordView::code | ( | ) | const [inline] |
Definition at line 30 of file EOFRecord.h.
References HeaderView::code(), and head_.
uint32 EOFRecordView::events | ( | ) | const |
Definition at line 26 of file EOFRecord.cc.
References buf_, convert32(), EOFRecordHeader::events_, and h.
{ EOFRecordHeader* h = (EOFRecordHeader*)buf_; return convert32(h->events_); }
uint64 EOFRecordView::firstEventOffset | ( | ) | [inline] |
Definition at line 36 of file EOFRecord.h.
References first_event_offset_.
{return first_event_offset_; }
void EOFRecordView::hltStats | ( | std::vector< uint32 > & | put_here | ) |
Definition at line 32 of file EOFRecord.cc.
References convert32(), hlt_path_count_, hlt_path_stat_start_, and i.
{ put_here.clear(); put_here.resize(hlt_path_count_); for(unsigned int i = 0; i < hlt_path_count_; ++i) { uint32 item = convert32(hlt_path_stat_start_ + (i*sizeof(uint32)) ); put_here[i] = item; } }
uint64 EOFRecordView::lastEventOffset | ( | ) | [inline] |
Definition at line 37 of file EOFRecord.h.
References last_event_offset_.
{return last_event_offset_; }
uint32 EOFRecordView::run | ( | void | ) | const |
Definition at line 14 of file EOFRecord.cc.
References buf_, convert32(), h, and EOFRecordHeader::run_.
{ EOFRecordHeader* h = (EOFRecordHeader*)buf_; return convert32(h->run_); }
uint32 EOFRecordView::size | ( | void | ) | const [inline] |
Definition at line 31 of file EOFRecord.h.
References head_, and HeaderView::size().
uint32 EOFRecordView::statusCode | ( | ) | const |
Definition at line 20 of file EOFRecord.cc.
References buf_, convert32(), h, and EOFRecordHeader::status_code_.
{ EOFRecordHeader* h = (EOFRecordHeader*)buf_; return convert32(h->status_code_); }
uint8* EOFRecordView::buf_ [private] |
Gives the total number of events that were accepted for each HLT path, one 32-bit (4-byte) integer for each HLT path. What order ????
Definition at line 44 of file EOFRecord.h.
Referenced by EOFRecordView(), events(), run(), and statusCode().
uint64 EOFRecordView::first_event_offset_ [private] |
Definition at line 51 of file EOFRecord.h.
Referenced by EOFRecordView(), and firstEventOffset().
HeaderView EOFRecordView::head_ [private] |
Definition at line 45 of file EOFRecord.h.
uint32 EOFRecordView::hlt_path_count_ [private] |
Definition at line 47 of file EOFRecord.h.
Referenced by EOFRecordView(), and hltStats().
uint8* EOFRecordView::hlt_path_stat_end_ [private] |
Definition at line 49 of file EOFRecord.h.
Referenced by EOFRecordView().
uint8* EOFRecordView::hlt_path_stat_start_ [private] |
Definition at line 48 of file EOFRecord.h.
Referenced by EOFRecordView(), and hltStats().
uint64 EOFRecordView::last_event_offset_ [private] |
Definition at line 52 of file EOFRecord.h.
Referenced by EOFRecordView(), and lastEventOffset().