Main Page
Namespaces
Classes
Package Documentation
EventFilter
EcalDigiToRaw
interface
BlockFormatter.h
Go to the documentation of this file.
1
#ifndef BLOCKFORMATTER_H
2
#define BLOCKFORMATTER_H
3
4
#include <iostream>
5
#include <vector>
6
#include <map>
7
8
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
9
#include <
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
>
10
#include <
DataFormats/FEDRawData/interface/FEDRawData.h
>
11
#include <
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
>
12
13
14
15
class
BlockFormatter
{
16
public
:
17
typedef
uint64_t
Word64
;
18
typedef
uint16_t
Word16
;
19
20
struct
Config
{
21
const
std::vector<int32_t> *
plistDCCId_
;
22
bool
debug_
;
23
24
bool
doBarrel_
;
25
bool
doEndCap_
;
26
bool
doTCC_
;
27
bool
doSR_
;
28
bool
doTower_
;
29
};
30
struct
Params
{
31
int
counter_
;
32
int
orbit_number_
;
33
int
bx_
;
34
int
lv1_
;
35
int
runnumber_
;
36
};
37
38
explicit
BlockFormatter
(
Config
const
& iC,
Params
const
& iP);
39
static
const
int
kCardsPerTower
= 5;
// Number of VFE cards per trigger tower
40
void
DigiToRaw
(
FEDRawDataCollection
* productRawData);
41
void
print
(
FEDRawData
&
rawdata
);
42
// void CleanUp(FEDRawDataCollection* productRawData);
43
void
CleanUp
(
FEDRawDataCollection
* productRawData,
44
std::map
<
int
, std::map<int,int> >* FEDorder);
45
void
PrintSizes
(
FEDRawDataCollection
* productRawData);
46
47
protected
:
48
49
const
std::vector<int32_t> *
plistDCCId_
;
50
51
int
counter_
;
52
int
orbit_number_
;
53
int
bx_
;
54
int
lv1_
;
55
int
runnumber_
;
56
57
const
bool
debug_
;
58
59
const
bool
doBarrel_
;
60
const
bool
doEndCap_
;
61
const
bool
doTCC_
;
62
const
bool
doSR_
;
63
const
bool
doTower_
;
64
65
};
66
67
68
69
#endif
70
71
BlockFormatter::bx_
int bx_
Definition:
BlockFormatter.h:53
BlockFormatter::DigiToRaw
void DigiToRaw(FEDRawDataCollection *productRawData)
Definition:
BlockFormatter.cc:29
BlockFormatter::Params::orbit_number_
int orbit_number_
Definition:
BlockFormatter.h:32
BlockFormatter::Config::doBarrel_
bool doBarrel_
Definition:
BlockFormatter.h:24
BlockFormatter::Params::runnumber_
int runnumber_
Definition:
BlockFormatter.h:35
BlockFormatter::Word16
uint16_t Word16
Definition:
BlockFormatter.h:18
FEDRawDataCollection.h
BlockFormatter::plistDCCId_
const std::vector< int32_t > * plistDCCId_
Definition:
BlockFormatter.h:49
BlockFormatter::doBarrel_
const bool doBarrel_
Definition:
BlockFormatter.h:59
BlockFormatter::Config::doSR_
bool doSR_
Definition:
BlockFormatter.h:27
BlockFormatter::Params::lv1_
int lv1_
Definition:
BlockFormatter.h:34
BlockFormatter::print
void print(FEDRawData &rawdata)
Definition:
BlockFormatter.cc:98
BlockFormatter::BlockFormatter
BlockFormatter(Config const &iC, Params const &iP)
Definition:
BlockFormatter.cc:13
BlockFormatter::Params::bx_
int bx_
Definition:
BlockFormatter.h:33
BlockFormatter::counter_
int counter_
Definition:
BlockFormatter.h:51
BlockFormatter::CleanUp
void CleanUp(FEDRawDataCollection *productRawData, std::map< int, std::map< int, int > > *FEDorder)
Definition:
BlockFormatter.cc:114
BlockFormatter::kCardsPerTower
static const int kCardsPerTower
Definition:
BlockFormatter.h:39
BlockFormatter::orbit_number_
int orbit_number_
Definition:
BlockFormatter.h:52
BlockFormatter::PrintSizes
void PrintSizes(FEDRawDataCollection *productRawData)
Definition:
BlockFormatter.cc:191
BlockFormatter::doTower_
const bool doTower_
Definition:
BlockFormatter.h:63
FEDRawData
Definition:
FEDRawData.h:20
BlockFormatter::debug_
const bool debug_
Definition:
BlockFormatter.h:57
BlockFormatter::doSR_
const bool doSR_
Definition:
BlockFormatter.h:62
BlockFormatter::doEndCap_
const bool doEndCap_
Definition:
BlockFormatter.h:60
BlockFormatter::Params::counter_
int counter_
Definition:
BlockFormatter.h:31
EcalDigiCollections.h
BlockFormatter
Definition:
BlockFormatter.h:15
matplotRender.rawdata
rawdata
Definition:
matplotRender.py:823
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
BlockFormatter::Config::doTower_
bool doTower_
Definition:
BlockFormatter.h:28
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
BlockFormatter::runnumber_
int runnumber_
Definition:
BlockFormatter.h:55
BlockFormatter::Config::doTCC_
bool doTCC_
Definition:
BlockFormatter.h:26
BlockFormatter::Config::doEndCap_
bool doEndCap_
Definition:
BlockFormatter.h:25
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:19
BlockFormatter::Config::plistDCCId_
const std::vector< int32_t > * plistDCCId_
Definition:
BlockFormatter.h:21
FEDRawData.h
BlockFormatter::doTCC_
const bool doTCC_
Definition:
BlockFormatter.h:61
Config
Definition:
Config.py:1
BlockFormatter::Word64
uint64_t Word64
Definition:
BlockFormatter.h:17
BlockFormatter::Params
Definition:
BlockFormatter.h:30
BlockFormatter::Config::debug_
bool debug_
Definition:
BlockFormatter.h:22
BlockFormatter::lv1_
int lv1_
Definition:
BlockFormatter.h:54
Generated for CMSSW Reference Manual by
1.8.11