Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
EventFilter
ESDigiToRaw
interface
ESDataFormatter.h
Go to the documentation of this file.
1
#ifndef ESDATAFORMATTER_H
2
#define ESDATAFORMATTER_H
3
4
#include <iostream>
5
#include <vector>
6
#include <bitset>
7
#include <sstream>
8
#include <map>
9
10
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
11
#include "
DataFormats/EcalDigi/interface/ESDataFrame.h
"
12
#include "
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
"
13
#include "
DataFormats/FEDRawData/interface/FEDRawData.h
"
14
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
15
16
class
ESDataFormatter
{
17
18
public
:
19
20
typedef
std::vector<ESDataFrame>
DetDigis
;
21
typedef
std::map<int, DetDigis>
Digis
;
22
23
typedef
uint8_t
Word8
;
24
typedef
uint16_t
Word16
;
25
typedef
uint32_t
Word32
;
26
typedef
uint64_t
Word64
;
27
28
ESDataFormatter
(
const
edm::ParameterSet
& ps) :
29
pset_
(ps),
run_number_
(0),
orbit_number_
(0),
bx_
(0),
lv1_
(0),
trgtype_
(0),
30
kchip_bc_
(0),
kchip_ec_
(0) {
31
debug_
=
pset_
.
getUntrackedParameter
<
bool
>(
"debugMode"
,
false
);
32
printInHex_
=
pset_
.
getUntrackedParameter
<
bool
>(
"printInHex"
,
false
);
33
};
34
virtual
~ESDataFormatter
() {};
35
36
virtual
void
DigiToRaw
(
int
fedId
,
Digis
& digis,
FEDRawData
& fedRawData) = 0;
37
38
virtual
void
setRunNumber
(
int
i
) {
run_number_
=
i
;};
39
virtual
void
setOrbitNumber
(
int
i
) {
orbit_number_
=
i
;};
40
virtual
void
setBX
(
int
i
) {
bx_
=
i
;};
41
virtual
void
setLV1
(
int
i
) {
lv1_
=
i
;};
42
virtual
void
setTriggerType
(
int
i
) {
trgtype_
=
i
;};
43
virtual
void
setKchipBC
(
int
i
) {
kchip_bc_
=
i
;};
44
virtual
void
setKchipEC
(
int
i
) {
kchip_ec_
=
i
;};
45
46
protected
:
47
48
const
edm::ParameterSet
pset_
;
49
50
int
run_number_
;
51
int
orbit_number_
;
52
int
bx_
;
53
int
lv1_
;
54
int
trgtype_
;
55
int
kchip_bc_
;
56
int
kchip_ec_
;
57
58
bool
debug_
;
59
bool
printInHex_
;
60
61
int
formatMajor_
;
62
int
formatMinor_
;
63
64
std::string
print
(
const
Word64
& word)
const
;
65
std::string
print
(
const
Word16
& word)
const
;
66
67
};
68
69
#endif
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
i
int i
Definition:
DBlmapReader.cc:9
ESDataFormatter::DigiToRaw
virtual void DigiToRaw(int fedId, Digis &digis, FEDRawData &fedRawData)=0
ESDataFormatter::Word32
uint32_t Word32
Definition:
ESDataFormatter.h:25
ESDataFormatter::Word8
uint8_t Word8
Definition:
ESDataFormatter.h:23
ESDataFormatter::setRunNumber
virtual void setRunNumber(int i)
Definition:
ESDataFormatter.h:38
FEDRawDataCollection.h
ESDataFrame.h
ESDataFormatter::setKchipEC
virtual void setKchipEC(int i)
Definition:
ESDataFormatter.h:44
ESDataFormatter::Digis
std::map< int, DetDigis > Digis
Definition:
ESDataFormatter.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ESDataFormatter::Word64
uint64_t Word64
Definition:
ESDataFormatter.h:26
ParameterSet.h
ESDataFormatter::setKchipBC
virtual void setKchipBC(int i)
Definition:
ESDataFormatter.h:43
ESDataFormatter::setBX
virtual void setBX(int i)
Definition:
ESDataFormatter.h:40
ESDataFormatter::run_number_
int run_number_
Definition:
ESDataFormatter.h:50
FEDRawData
Definition:
FEDRawData.h:20
ESDataFormatter::ESDataFormatter
ESDataFormatter(const edm::ParameterSet &ps)
Definition:
ESDataFormatter.h:28
ESDataFormatter::kchip_ec_
int kchip_ec_
Definition:
ESDataFormatter.h:56
ESDataFormatter::bx_
int bx_
Definition:
ESDataFormatter.h:52
ESDataFormatter::setOrbitNumber
virtual void setOrbitNumber(int i)
Definition:
ESDataFormatter.h:39
ESDataFormatter::lv1_
int lv1_
Definition:
ESDataFormatter.h:53
EcalDigiCollections.h
ESDataFormatter::printInHex_
bool printInHex_
Definition:
ESDataFormatter.h:59
ESDataFormatter
Definition:
ESDataFormatter.h:16
ESDataFormatter::orbit_number_
int orbit_number_
Definition:
ESDataFormatter.h:51
ESDataFormatter::setLV1
virtual void setLV1(int i)
Definition:
ESDataFormatter.h:41
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
ESDataFormatter::pset_
const edm::ParameterSet pset_
Definition:
ESDataFormatter.h:44
ESDataFormatter::Word16
uint16_t Word16
Definition:
ESDataFormatter.h:24
ESDataFormatter::setTriggerType
virtual void setTriggerType(int i)
Definition:
ESDataFormatter.h:42
FEDRawData.h
ESDataFormatter::kchip_bc_
int kchip_bc_
Definition:
ESDataFormatter.h:55
ESDataFormatter::trgtype_
int trgtype_
Definition:
ESDataFormatter.h:54
ESDataFormatter::print
std::string print(const Word64 &word) const
Definition:
ESDataFormatter.cc:13
edm::ParameterSet
Definition:
ParameterSet.h:36
ESDataFormatter::formatMinor_
int formatMinor_
Definition:
ESDataFormatter.h:62
ESDataFormatter::debug_
bool debug_
Definition:
ESDataFormatter.h:58
HLT_25ns14e33_v1_cff.fedId
tuple fedId
Definition:
HLT_25ns14e33_v1_cff.py:45393
ESDataFormatter::~ESDataFormatter
virtual ~ESDataFormatter()
Definition:
ESDataFormatter.h:34
ESDataFormatter::formatMajor_
int formatMajor_
Definition:
ESDataFormatter.h:61
ESDataFormatter::DetDigis
std::vector< ESDataFrame > DetDigis
Definition:
ESDataFormatter.h:20
Generated for CMSSW Reference Manual by
1.8.5