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/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::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::beginJob
void beginJob() override
Definition:
RawToText.cc:58
RawToText::inputLabel_
edm::InputTag inputLabel_
Definition:
RawToText.h:36
RawToText::nevt_
int nevt_
Definition:
RawToText.h:45
EDAnalyzer.h
FEDRawData.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
RawToText::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
RawToText.cc:25
RawToText
Definition:
RawToText.h:24
RawToText::endJob
void endJob() override
Definition:
RawToText.cc:67
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
edm::EventSetup
Definition:
EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RawToText::filename_
std::string filename_
Definition:
RawToText.h:42
RawToText::RawToText
RawToText(const edm::ParameterSet &)
Definition:
RawToText.cc:15
RawToText::~RawToText
~RawToText() override
Definition:
RawToText.cc:23
RawToText::fedId_
int fedId_
Definition:
RawToText.h:39
Frameworkfwd.h
ParameterSet.h
edm::Event
Definition:
Event.h:73
edm::InputTag
Definition:
InputTag.h:15
RawToText::file_
std::ofstream file_
Definition:
RawToText.h:43
Generated for CMSSW Reference Manual by
1.8.16