Main Page
Namespaces
Classes
Package Documentation
L1Trigger
TextToDigi
plugins
RawToText.h
Go to the documentation of this file.
1
#ifndef RAWTOTEXT_H
2
#define RAWTOTEXT_H
3
4
/*\class RawToText
5
*\description conversion of GCT raw to text formats
6
based on and reverses J.Brooke's TextToRaw
7
*\usage trigger pattern tests
8
*\author Nuno Leonardo (CERN)
9
*\date 07.08
10
*/
11
12
// system include files
13
#include <memory>
14
#include <string>
15
#include <fstream>
16
// user include files
17
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
18
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
19
#include "
FWCore/Framework/interface/Event.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
21
22
#include "
DataFormats/FEDRawData/interface/FEDRawData.h
"
23
24
25
class
RawToText
:
public
edm::EDAnalyzer
{
26
public
:
27
explicit
RawToText
(
const
edm::ParameterSet
&);
28
~RawToText
()
override
;
29
30
private
:
31
void
beginJob
()
override
;
32
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
33
void
endJob
()
override
;
34
35
private
:
36
37
// FED collection label
38
edm::InputTag
inputLabel_
;
39
40
// ID of the FED to emulate
41
int
fedId_
;
42
43
// File to write
44
std::string
filename_
;
45
std::ofstream
file_
;
46
47
int
nevt_
;
48
};
49
50
#endif
RawToText::~RawToText
~RawToText() override
Definition:
RawToText.cc:25
RawToText::fedId_
int fedId_
Definition:
RawToText.h:41
RawToText::beginJob
void beginJob() override
Definition:
RawToText.cc:67
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Event.h
RawToText::RawToText
RawToText(const edm::ParameterSet &)
Definition:
RawToText.cc:16
RawToText::file_
std::ofstream file_
Definition:
RawToText.h:45
Frameworkfwd.h
RawToText
Definition:
RawToText.h:25
ParameterSet.h
RawToText::filename_
std::string filename_
Definition:
RawToText.h:44
edm::EventSetup
Definition:
EventSetup.h:54
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
EDAnalyzer.h
RawToText::inputLabel_
edm::InputTag inputLabel_
Definition:
RawToText.h:38
RawToText::nevt_
int nevt_
Definition:
RawToText.h:47
edm::InputTag
Definition:
InputTag.h:15
FEDRawData.h
RawToText::endJob
void endJob() override
Definition:
RawToText.cc:79
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:70
RawToText::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
RawToText.cc:28
Generated for CMSSW Reference Manual by
1.8.11