Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
IOPool
Streamer
interface
FRDEventFileWriter.h
Go to the documentation of this file.
1
#ifndef IOPool_Streamer_FRDEventFileWriter_h
2
#define IOPool_Streamer_FRDEventFileWriter_h
3
4
// $Id: FRDEventFileWriter.h,v 1.3 2010/02/18 09:19:02 mommsen Exp $
5
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
#include "
IOPool/Streamer/interface/FRDEventMessage.h
"
8
9
#include <fstream>
10
11
class
FRDEventFileWriter
12
{
13
public
:
14
15
explicit
FRDEventFileWriter
(
edm::ParameterSet
const
& ps);
16
explicit
FRDEventFileWriter
(
std::string
const
&
fileName
);
17
~FRDEventFileWriter
();
18
19
void
doOutputEvent
(
FRDEventMsgView
const
&
msg
);
20
void
doOutputEventFragment
(
unsigned
char
* dataPtr,
21
unsigned
long
dataSize);
22
23
uint32
adler32
()
const
{
return
(
adlerb_
<< 16) |
adlera_
; }
24
25
void
start
() {}
26
void
stop
() {}
27
28
private
:
29
30
void
initialize
(
std::string
const
&
name
);
31
32
std::auto_ptr<std::ofstream>
ost_
;
33
std::string
fileName_
;
34
35
uint32
adlera_
;
36
uint32
adlerb_
;
37
38
};
39
#endif
FRDEventFileWriter::stop
void stop()
Definition:
FRDEventFileWriter.h:26
FRDEventMsgView
Definition:
FRDEventMessage.h:41
FRDEventFileWriter::adlerb_
uint32 adlerb_
Definition:
FRDEventFileWriter.h:36
FRDEventFileWriter::FRDEventFileWriter
FRDEventFileWriter(edm::ParameterSet const &ps)
Definition:
FRDEventFileWriter.cc:8
FRDEventFileWriter::ost_
std::auto_ptr< std::ofstream > ost_
Definition:
FRDEventFileWriter.h:32
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
convertXMLtoSQLite_cfg.fileName
tuple fileName
Definition:
convertXMLtoSQLite_cfg.py:12
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
FRDEventFileWriter::doOutputEventFragment
void doOutputEventFragment(unsigned char *dataPtr, unsigned long dataSize)
Definition:
FRDEventFileWriter.cc:44
ParameterSet.h
FRDEventFileWriter::initialize
void initialize(std::string const &name)
Definition:
FRDEventFileWriter.cc:66
uint32
unsigned int uint32
Definition:
MsgTools.h:13
FRDEventFileWriter::doOutputEvent
void doOutputEvent(FRDEventMsgView const &msg)
Definition:
FRDEventFileWriter.cc:23
FRDEventFileWriter::~FRDEventFileWriter
~FRDEventFileWriter()
Definition:
FRDEventFileWriter.cc:18
FRDEventFileWriter::adler32
uint32 adler32() const
Definition:
FRDEventFileWriter.h:23
FRDEventFileWriter::start
void start()
Definition:
FRDEventFileWriter.h:25
edm::ParameterSet
Definition:
ParameterSet.h:35
lumiQueryAPI.msg
tuple msg
Definition:
lumiQueryAPI.py:1771
FRDEventFileWriter::adlera_
uint32 adlera_
Definition:
FRDEventFileWriter.h:35
FRDEventFileWriter
Definition:
FRDEventFileWriter.h:11
FRDEventFileWriter::fileName_
std::string fileName_
Definition:
FRDEventFileWriter.h:33
FRDEventMessage.h
Generated for CMSSW Reference Manual by
1.8.5