CMS 3D CMS Logo

EOFRecordView Class Reference

#include <IOPool/Streamer/interface/EOFRecord.h>

List of all members.

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

uint8buf_
 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_
uint8hlt_path_stat_end_
uint8hlt_path_stat_start_
uint64 last_event_offset_


Detailed Description

Definition at line 25 of file EOFRecord.h.


Constructor & Destructor Documentation

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_.

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 }


Member Function Documentation

uint32 EOFRecordView::code ( void   )  const [inline]

Definition at line 30 of file EOFRecord.h.

References HeaderView::code(), and head_.

00030 { return head_.code(); }

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_; }

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.

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_; }

uint32 EOFRecordView::run ( void   )  const

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::size ( void   )  const [inline]

Definition at line 31 of file EOFRecord.h.

References head_, and HeaderView::size().

00031 { return head_.size(); }

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 }


Member Data Documentation

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.

Referenced by code(), and size().

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:24 2009 for CMSSW by  doxygen 1.5.4