src
IOPool
Streamer
interface
EventMsgBuilder.h
Go to the documentation of this file.
1
#ifndef IOPool_Streamer_EventMsgBuilder_h
2
#define IOPool_Streamer_EventMsgBuilder_h
3
4
#include "
IOPool/Streamer/interface/MsgTools.h
"
5
6
// ------------------ event message builder ----------------
7
8
namespace
edm::streamer
{
9
class
EventMsgBuilder
{
10
public
:
11
EventMsgBuilder
(
void
*
buf
,
12
uint32
size
,
13
uint32
run
,
14
uint64
event
,
15
uint32
lumi
,
16
uint32
outModId,
17
uint32
droppedEventsCount,
18
std::vector<bool>& l1_bits,
19
uint8
* hlt_bits,
20
uint32
hlt_bit_count,
21
uint32
adler32_chksum,
22
const
char
* host_name);
23
24
void
setOrigDataSize
(
uint32
);
25
uint8
*
startAddress
()
const
{
return
buf_
; }
26
void
setEventLength
(
uint32
len);
27
void
setBufAddr
(
uint8
* buf_addr) {
buf_
= buf_addr; }
28
void
setEventAddr
(
uint8
* event_addr) {
event_addr_
= event_addr; }
29
uint8
*
eventAddr
()
const
{
return
event_addr_
; }
30
uint32
headerSize
()
const
{
return
event_addr_
-
buf_
; }
31
uint32
size
()
const
;
32
uint32
bufferSize
()
const
{
return
size_
; }
33
34
static
uint32
computeHeaderSize
(
uint32
l1t_bit_count,
uint32
hlt_bit_count);
35
36
private
:
37
uint8
*
buf_
;
38
uint32
size_
;
39
uint8
*
event_addr_
;
40
};
41
}
// namespace edm::streamer
42
#endif
edm::streamer::EventMsgBuilder::bufferSize
uint32 bufferSize() const
Definition:
EventMsgBuilder.h:32
edm::streamer::EventMsgBuilder::EventMsgBuilder
EventMsgBuilder(void *buf, uint32 size, uint32 run, uint64 event, uint32 lumi, uint32 outModId, uint32 droppedEventsCount, std::vector< bool > &l1_bits, uint8 *hlt_bits, uint32 hlt_bit_count, uint32 adler32_chksum, const char *host_name)
Definition:
EventMsgBuilder.cc:12
edm::streamer::EventMsgBuilder::setOrigDataSize
void setOrigDataSize(uint32)
Definition:
EventMsgBuilder.cc:97
edm::streamer::EventMsgBuilder::headerSize
uint32 headerSize() const
Definition:
EventMsgBuilder.h:30
edm::streamer::EventMsgBuilder::setBufAddr
void setBufAddr(uint8 *buf_addr)
Definition:
EventMsgBuilder.h:27
edm::streamer::EventMsgBuilder::eventAddr
uint8 * eventAddr() const
Definition:
EventMsgBuilder.h:29
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
visDQMUpload.buf
buf
Definition:
visDQMUpload.py:153
edm::streamer::EventMsgBuilder::setEventLength
void setEventLength(uint32 len)
Definition:
EventMsgBuilder.cc:102
edm::streamer::uint8
unsigned char uint8
Definition:
MsgTools.h:12
edm::streamer::EventMsgBuilder::size_
uint32 size_
Definition:
EventMsgBuilder.h:38
edm::streamer
Definition:
WatcherStreamFileReader.h:22
edm::streamer::EventMsgBuilder::setEventAddr
void setEventAddr(uint8 *event_addr)
Definition:
EventMsgBuilder.h:28
edm::streamer::EventMsgBuilder::computeHeaderSize
static uint32 computeHeaderSize(uint32 l1t_bit_count, uint32 hlt_bit_count)
Definition:
EventMsgBuilder.cc:113
edm::streamer::uint64
unsigned long long uint64
Definition:
MsgTools.h:15
edm::streamer::EventMsgBuilder::size
uint32 size() const
Definition:
EventMsgBuilder.cc:108
MsgTools.h
edm::streamer::EventMsgBuilder::buf_
uint8 * buf_
Definition:
EventMsgBuilder.h:37
edm::streamer::EventMsgBuilder
Definition:
EventMsgBuilder.h:9
lumi
Definition:
LumiSectionData.h:20
edm::streamer::uint32
unsigned int uint32
Definition:
MsgTools.h:14
edm::streamer::EventMsgBuilder::startAddress
uint8 * startAddress() const
Definition:
EventMsgBuilder.h:25
event
Definition:
event.py:1
edm::streamer::EventMsgBuilder::event_addr_
uint8 * event_addr_
Definition:
EventMsgBuilder.h:39
Generated for CMSSW Reference Manual by
1.8.14