src
L1Trigger
TextToDigi
plugins
TextToRaw.h
Go to the documentation of this file.
1
#ifndef TextToRaw_h
2
#define TextToRaw_h
3
4
// -*- C++ -*-
5
//
6
// Package: TextToRaw
7
// Class: TextToRaw
8
//
18
//
19
// Original Author: Jim Brooke
20
// Created: Wed Nov 1 11:57:10 CET 2006
21
//
22
//
23
24
// system include files
25
#include <fstream>
26
#include <memory>
27
#include <string>
28
29
// user include files
30
#include "
FWCore/Framework/interface/one/EDProducer.h
"
31
#include "
FWCore/Framework/interface/Event.h
"
32
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
33
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
34
35
#include "
DataFormats/FEDRawData/interface/FEDRawData.h
"
36
37
//
38
// class decleration
39
//
40
41
class
TextToRaw
:
public
edm::one::EDProducer
<> {
42
public
:
43
explicit
TextToRaw
(
const
edm::ParameterSet
&);
44
~TextToRaw
()
override
;
45
46
private
:
// methods
47
void
beginJob
()
override
;
48
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
49
void
endJob
()
override
;
50
51
private
:
52
// ID of the FED to emulate
53
int
fedId_
;
54
55
// File to read
56
std::string
filename_
;
57
std::ifstream
file_
;
58
59
// array to store the data
60
static
constexpr
unsigned
EVT_MAX_SIZE
= 8192;
61
char
data_
[
EVT_MAX_SIZE
];
62
63
int
fileEventOffset_
;
64
int
nevt_
;
65
void
putEmptyDigi
(
edm::Event
&);
66
};
67
68
#endif
EDProducer.h
TextToRaw::file_
std::ifstream file_
Definition:
TextToRaw.h:57
TextToRaw::putEmptyDigi
void putEmptyDigi(edm::Event &)
Append empty digi collection.
Definition:
TextToRaw.cc:45
TextToRaw::fileEventOffset_
int fileEventOffset_
Definition:
TextToRaw.h:63
Event.h
TextToRaw::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
TextToRaw.cc:53
TextToRaw::beginJob
void beginJob() override
Definition:
TextToRaw.cc:132
TextToRaw::nevt_
int nevt_
Definition:
TextToRaw.h:64
TextToRaw::filename_
std::string filename_
Definition:
TextToRaw.h:56
Frameworkfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TextToRaw::data_
char data_[EVT_MAX_SIZE]
Definition:
TextToRaw.h:61
TextToRaw::EVT_MAX_SIZE
static constexpr unsigned EVT_MAX_SIZE
Definition:
TextToRaw.h:60
ParameterSet.h
TextToRaw
Definition:
TextToRaw.h:41
TextToRaw::TextToRaw
TextToRaw(const edm::ParameterSet &)
Definition:
TextToRaw.cc:28
TextToRaw::~TextToRaw
~TextToRaw() override
Definition:
TextToRaw.cc:39
TextToRaw::endJob
void endJob() override
Definition:
TextToRaw.cc:142
edm::EventSetup
Definition:
EventSetup.h:56
TextToRaw::fedId_
int fedId_
Definition:
TextToRaw.h:53
FEDRawData.h
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::Event
Definition:
Event.h:73
edm::one::EDProducer
Definition:
EDProducer.h:30
Generated for CMSSW Reference Manual by
1.8.14