Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
// $Id: TextToRaw.h,v 1.7 2009/12/03 18:35:58 nuno Exp $
20
//
21
//
22
23
24
// system include files
25
#include <memory>
26
#include <string>
27
#include <fstream>
28
29
// user include files
30
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
31
#include "
FWCore/Framework/interface/EDProducer.h
"
32
#include "
FWCore/Framework/interface/Event.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::EDProducer
{
42
public
:
43
explicit
TextToRaw
(
const
edm::ParameterSet
&);
44
~TextToRaw
();
45
46
private
:
// methods
47
virtual
void
beginJob
();
48
virtual
void
produce
(
edm::Event
&,
const
edm::EventSetup
&);
49
virtual
void
endJob
() ;
50
51
private
:
52
53
// ID of the FED to emulate
54
int
fedId_
;
55
56
// File to read
57
std::string
filename_
;
58
std::ifstream
file_
;
59
60
// array to store the data
61
static
const
unsigned
EVT_MAX_SIZE
=8192;
62
char
data_
[
EVT_MAX_SIZE
];
63
64
int
fileEventOffset_
;
65
int
nevt_
;
66
void
putEmptyDigi
(
edm::Event
&);
67
68
};
69
70
#endif
TextToRaw::file_
std::ifstream file_
Definition:
TextToRaw.h:58
TextToRaw::putEmptyDigi
void putEmptyDigi(edm::Event &)
Append empty digi collection.
Definition:
TextToRaw.cc:53
TextToRaw::fileEventOffset_
int fileEventOffset_
Definition:
TextToRaw.h:64
Event.h
TextToRaw::~TextToRaw
~TextToRaw()
Definition:
TextToRaw.cc:42
TextToRaw::nevt_
int nevt_
Definition:
TextToRaw.h:65
TextToRaw::filename_
std::string filename_
Definition:
TextToRaw.h:57
Frameworkfwd.h
TextToRaw::data_
char data_[EVT_MAX_SIZE]
Definition:
TextToRaw.h:62
edm::EDProducer
Definition:
EDProducer.h:21
TextToRaw::EVT_MAX_SIZE
static const unsigned EVT_MAX_SIZE
Definition:
TextToRaw.h:61
TextToRaw::beginJob
virtual void beginJob()
Definition:
TextToRaw.cc:149
ParameterSet.h
TextToRaw
Definition:
TextToRaw.h:41
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:54
EDProducer.h
FEDRawData.h
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:50
TextToRaw::produce
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition:
TextToRaw.cc:63
Generated for CMSSW Reference Manual by
1.8.5