#include <IOPool/Streamer/interface/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_ |
Gives the total number of events that were accepted for each HLT path, one 32-bit (4-byte) integer for each HLT path. | |
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.
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_.
00003 : 00004 buf_((uint8*)buf),head_(buf), 00005 hlt_path_count_(hlt_path_cnt) 00006 { 00007 hlt_path_stat_start_ = buf_ + sizeof(EOFRecordHeader); 00008 hlt_path_stat_end_ = hlt_path_stat_start_ + (hlt_path_count_*4); 00009 00010 first_event_offset_ = convert64(hlt_path_stat_end_); 00011 last_event_offset_ = convert64(hlt_path_stat_end_ + sizeof(uint64) ); 00012 }
uint32 EOFRecordView::events | ( | ) | const |
Definition at line 26 of file EOFRecord.cc.
References buf_, convert32(), EOFRecordHeader::events_, and h.
00027 { 00028 EOFRecordHeader* h = (EOFRecordHeader*)buf_; 00029 return convert32(h->events_); 00030 }
uint64 EOFRecordView::firstEventOffset | ( | ) | [inline] |
Definition at line 36 of file EOFRecord.h.
References first_event_offset_.
00036 {return first_event_offset_; }
Definition at line 32 of file EOFRecord.cc.
References convert32(), hlt_path_count_, hlt_path_stat_start_, and i.
00033 { 00034 put_here.clear(); 00035 put_here.resize(hlt_path_count_); 00036 00037 for(unsigned int i = 0; i < hlt_path_count_; ++i) { 00038 uint32 item = convert32(hlt_path_stat_start_ + (i*sizeof(uint32)) ); 00039 put_here[i] = item; 00040 } 00041 }
uint64 EOFRecordView::lastEventOffset | ( | ) | [inline] |
Definition at line 37 of file EOFRecord.h.
References last_event_offset_.
00037 {return last_event_offset_; }
Definition at line 14 of file EOFRecord.cc.
References buf_, convert32(), h, and EOFRecordHeader::run_.
00015 { 00016 EOFRecordHeader* h = (EOFRecordHeader*)buf_; 00017 return convert32(h->run_); 00018 }
uint32 EOFRecordView::statusCode | ( | ) | const |
Definition at line 20 of file EOFRecord.cc.
References buf_, convert32(), h, and EOFRecordHeader::status_code_.
00021 { 00022 EOFRecordHeader* h = (EOFRecordHeader*)buf_; 00023 return convert32(h->status_code_); 00024 }
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] |
HeaderView EOFRecordView::head_ [private] |
uint32 EOFRecordView::hlt_path_count_ [private] |
uint8* EOFRecordView::hlt_path_stat_end_ [private] |
uint8* EOFRecordView::hlt_path_stat_start_ [private] |
uint64 EOFRecordView::last_event_offset_ [private] |