CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
EOFRecordView Class Reference

#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

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

3  :
4  buf_((uint8*)buf),head_(buf),
5  hlt_path_count_(hlt_path_cnt)
6 {
9 
10  first_event_offset_ = convert64(hlt_path_stat_end_);
11  last_event_offset_ = convert64(hlt_path_stat_end_ + sizeof(uint64) );
12 }
uint64 convert64(char_uint64 v)
Definition: MsgTools.h:21
uint8 * buf_
Definition: EOFRecord.h:44
uint32 hlt_path_count_
Definition: EOFRecord.h:47
HeaderView head_
Definition: EOFRecord.h:45
uint64 last_event_offset_
Definition: EOFRecord.h:52
uint64 first_event_offset_
Definition: EOFRecord.h:51
uint8 * hlt_path_stat_end_
Definition: EOFRecord.h:49
uint8 * hlt_path_stat_start_
Definition: EOFRecord.h:48
unsigned long long uint64
Definition: MsgTools.h:14
unsigned char uint8
Definition: MsgTools.h:11

Member Function Documentation

uint32 EOFRecordView::code ( ) const
inline

Definition at line 30 of file EOFRecord.h.

References HeaderView::code(), and head_.

30 { return head_.code(); }
uint32 code() const
Definition: MsgHeader.h:34
HeaderView head_
Definition: EOFRecord.h:45
uint32 EOFRecordView::events ( ) const

Definition at line 26 of file EOFRecord.cc.

References buf_, convert32(), EOFRecordHeader::events_, and h.

27 {
29  return convert32(h->events_);
30 }
uint8 * buf_
Definition: EOFRecord.h:44
char_uint32 events_
Definition: EOFRecord.h:22
uint32 convert32(char_uint32 v)
Definition: MsgTools.h:30
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
uint64 EOFRecordView::firstEventOffset ( )
inline

Definition at line 36 of file EOFRecord.h.

References first_event_offset_.

36 {return first_event_offset_; }
uint64 first_event_offset_
Definition: EOFRecord.h:51
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.

33 {
34  put_here.clear();
35  put_here.resize(hlt_path_count_);
36 
37  for(unsigned int i = 0; i < hlt_path_count_; ++i) {
38  uint32 item = convert32(hlt_path_stat_start_ + (i*sizeof(uint32)) );
39  put_here[i] = item;
40  }
41 }
int i
Definition: DBlmapReader.cc:9
uint32 hlt_path_count_
Definition: EOFRecord.h:47
unsigned int uint32
Definition: MsgTools.h:13
uint8 * hlt_path_stat_start_
Definition: EOFRecord.h:48
uint32 convert32(char_uint32 v)
Definition: MsgTools.h:30
uint64 EOFRecordView::lastEventOffset ( )
inline

Definition at line 37 of file EOFRecord.h.

References last_event_offset_.

37 {return last_event_offset_; }
uint64 last_event_offset_
Definition: EOFRecord.h:52
uint32 EOFRecordView::run ( void  ) const

Definition at line 14 of file EOFRecord.cc.

References buf_, convert32(), h, and EOFRecordHeader::run_.

15 {
17  return convert32(h->run_);
18 }
uint8 * buf_
Definition: EOFRecord.h:44
char_uint32 run_
Definition: EOFRecord.h:20
uint32 convert32(char_uint32 v)
Definition: MsgTools.h:30
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
uint32 EOFRecordView::size ( void  ) const
inline

Definition at line 31 of file EOFRecord.h.

References head_, and HeaderView::size().

31 { return head_.size(); }
HeaderView head_
Definition: EOFRecord.h:45
uint32 size() const
Definition: MsgHeader.h:35
uint32 EOFRecordView::statusCode ( ) const

Definition at line 20 of file EOFRecord.cc.

References buf_, convert32(), h, and EOFRecordHeader::status_code_.

21 {
23  return convert32(h->status_code_);
24 }
char_uint32 status_code_
Definition: EOFRecord.h:21
uint8 * buf_
Definition: EOFRecord.h:44
uint32 convert32(char_uint32 v)
Definition: MsgTools.h:30
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4

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