src
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 <fstream>
14
#include <memory>
15
#include <string>
16
// user include files
17
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
18
#include "
FWCore/Framework/interface/Event.h
"
19
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
21
22
#include "
DataFormats/FEDRawData/interface/FEDRawData.h
"
23
24
class
RawToText
:
public
edm::one::EDAnalyzer
<> {
25
public
:
26
explicit
RawToText
(
const
edm::ParameterSet
&);
27
~RawToText
()
override
;
28
29
private
:
30
void
beginJob
()
override
;
31
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
32
void
endJob
()
override
;
33
34
private
:
35
// FED collection label
36
edm::InputTag
inputLabel_
;
37
38
// ID of the FED to emulate
39
int
fedId_
;
40
41
// File to write
42
std::string
filename_
;
43
std::ofstream
file_
;
44
45
int
nevt_
;
46
};
47
48
#endif
RawToText::~RawToText
~RawToText() override
Definition:
RawToText.cc:23
RawToText::fedId_
int fedId_
Definition:
RawToText.h:39
RawToText::beginJob
void beginJob() override
Definition:
RawToText.cc:58
Event.h
RawToText::RawToText
RawToText(const edm::ParameterSet &)
Definition:
RawToText.cc:15
RawToText::file_
std::ofstream file_
Definition:
RawToText.h:43
Frameworkfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RawToText
Definition:
RawToText.h:24
ParameterSet.h
RawToText::filename_
std::string filename_
Definition:
RawToText.h:42
edm::EventSetup
Definition:
EventSetup.h:56
RawToText::inputLabel_
edm::InputTag inputLabel_
Definition:
RawToText.h:36
RawToText::nevt_
int nevt_
Definition:
RawToText.h:45
EDAnalyzer.h
edm::InputTag
Definition:
InputTag.h:15
FEDRawData.h
RawToText::endJob
void endJob() override
Definition:
RawToText.cc:67
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::Event
Definition:
Event.h:73
RawToText::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
RawToText.cc:25
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
Generated for CMSSW Reference Manual by
1.8.14