Main Page
Namespaces
Classes
Package Documentation
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
//
16
//
17
// Original Author: Jim Brooke
18
// Created: Wed Nov 1 11:57:10 CET 2006
19
//
20
//
21
22
23
// system include files
24
#include <memory>
25
#include <string>
26
#include <fstream>
27
28
// user include files
29
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
30
#include "
FWCore/Framework/interface/EDProducer.h
"
31
#include "
FWCore/Framework/interface/Event.h
"
32
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
33
34
#include "
DataFormats/FEDRawData/interface/FEDRawData.h
"
35
36
//
37
// class decleration
38
//
39
40
class
TextToRaw
:
public
edm::EDProducer
{
41
public
:
42
explicit
TextToRaw
(
const
edm::ParameterSet
&);
43
~TextToRaw
();
44
45
private
:
// methods
46
virtual
void
beginJob
();
47
virtual
void
produce
(
edm::Event
&,
const
edm::EventSetup
&);
48
virtual
void
endJob
() ;
49
50
private
:
51
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
const
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
69
#endif
TextToRaw::file_
std::ifstream file_
Definition:
TextToRaw.h:57
TextToRaw::putEmptyDigi
void putEmptyDigi(edm::Event &)
Append empty digi collection.
Definition:
TextToRaw.cc:53
TextToRaw::fileEventOffset_
int fileEventOffset_
Definition:
TextToRaw.h:63
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
Event.h
TextToRaw::~TextToRaw
~TextToRaw()
Definition:
TextToRaw.cc:42
TextToRaw::nevt_
int nevt_
Definition:
TextToRaw.h:64
TextToRaw::filename_
std::string filename_
Definition:
TextToRaw.h:56
Frameworkfwd.h
TextToRaw::data_
char data_[EVT_MAX_SIZE]
Definition:
TextToRaw.h:61
edm::EDProducer
Definition:
EDProducer.h:35
TextToRaw::EVT_MAX_SIZE
static const unsigned EVT_MAX_SIZE
Definition:
TextToRaw.h:60
TextToRaw::beginJob
virtual void beginJob()
Definition:
TextToRaw.cc:149
ParameterSet.h
TextToRaw
Definition:
TextToRaw.h:40
TextToRaw::TextToRaw
TextToRaw(const edm::ParameterSet &)
Definition:
TextToRaw.cc:28
TextToRaw::endJob
virtual void endJob()
Definition:
TextToRaw.cc:159
edm::EventSetup
Definition:
EventSetup.h:44
TextToRaw::fedId_
int fedId_
Definition:
TextToRaw.h:53
EDProducer.h
FEDRawData.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:69
TextToRaw::produce
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition:
TextToRaw.cc:63
Generated for CMSSW Reference Manual by
1.8.11