src
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
class
BlockFormatter
{
14
public
:
15
typedef
uint64_t
Word64
;
16
typedef
uint16_t
Word16
;
17
18
struct
Config
{
19
const
std::vector<int32_t>*
plistDCCId_
;
20
bool
debug_
;
21
22
bool
doBarrel_
;
23
bool
doEndCap_
;
24
bool
doTCC_
;
25
bool
doSR_
;
26
bool
doTower_
;
27
};
28
struct
Params
{
29
int
counter_
;
30
int
orbit_number_
;
31
int
bx_
;
32
int
lv1_
;
33
int
runnumber_
;
34
};
35
36
explicit
BlockFormatter
(
Config
const
& iC,
Params
const
& iP);
37
static
const
int
kCardsPerTower
= 5;
// Number of VFE cards per trigger tower
38
void
DigiToRaw
(
FEDRawDataCollection
* productRawData);
39
void
print
(
FEDRawData
& rawdata);
40
// void CleanUp(FEDRawDataCollection* productRawData);
41
void
CleanUp
(
FEDRawDataCollection
* productRawData,
std::map
<
int
, std::map<int, int> >* FEDorder);
42
void
PrintSizes
(
FEDRawDataCollection
* productRawData);
43
44
protected
:
45
const
std::vector<int32_t>*
plistDCCId_
;
46
47
int
counter_
;
48
int
orbit_number_
;
49
int
bx_
;
50
int
lv1_
;
51
int
runnumber_
;
52
53
const
bool
debug_
;
54
55
const
bool
doBarrel_
;
56
const
bool
doEndCap_
;
57
const
bool
doTCC_
;
58
const
bool
doSR_
;
59
const
bool
doTower_
;
60
};
61
62
#endif
BlockFormatter::bx_
int bx_
Definition:
BlockFormatter.h:49
BlockFormatter::DigiToRaw
void DigiToRaw(FEDRawDataCollection *productRawData)
Definition:
BlockFormatter.cc:25
BlockFormatter::Params::orbit_number_
int orbit_number_
Definition:
BlockFormatter.h:30
BlockFormatter::Config::doBarrel_
bool doBarrel_
Definition:
BlockFormatter.h:22
BlockFormatter::Params::runnumber_
int runnumber_
Definition:
BlockFormatter.h:33
BlockFormatter::Word16
uint16_t Word16
Definition:
BlockFormatter.h:16
FEDRawDataCollection.h
BlockFormatter::plistDCCId_
const std::vector< int32_t > * plistDCCId_
Definition:
BlockFormatter.h:45
BlockFormatter::doBarrel_
const bool doBarrel_
Definition:
BlockFormatter.h:55
BlockFormatter::Config::doSR_
bool doSR_
Definition:
BlockFormatter.h:25
BlockFormatter::Params::lv1_
int lv1_
Definition:
BlockFormatter.h:32
BlockFormatter::print
void print(FEDRawData &rawdata)
Definition:
BlockFormatter.cc:89
BlockFormatter::BlockFormatter
BlockFormatter(Config const &iC, Params const &iP)
Definition:
BlockFormatter.cc:11
BlockFormatter::Params::bx_
int bx_
Definition:
BlockFormatter.h:31
BlockFormatter::counter_
int counter_
Definition:
BlockFormatter.h:47
BlockFormatter::CleanUp
void CleanUp(FEDRawDataCollection *productRawData, std::map< int, std::map< int, int > > *FEDorder)
Definition:
BlockFormatter.cc:104
BlockFormatter::kCardsPerTower
static const int kCardsPerTower
Definition:
BlockFormatter.h:37
BlockFormatter::orbit_number_
int orbit_number_
Definition:
BlockFormatter.h:48
BlockFormatter::PrintSizes
void PrintSizes(FEDRawDataCollection *productRawData)
Definition:
BlockFormatter.cc:182
BlockFormatter::doTower_
const bool doTower_
Definition:
BlockFormatter.h:59
FEDRawData
Definition:
FEDRawData.h:19
BlockFormatter::debug_
const bool debug_
Definition:
BlockFormatter.h:53
BlockFormatter::doSR_
const bool doSR_
Definition:
BlockFormatter.h:58
BlockFormatter::doEndCap_
const bool doEndCap_
Definition:
BlockFormatter.h:56
BlockFormatter::Params::counter_
int counter_
Definition:
BlockFormatter.h:29
EcalDigiCollections.h
BlockFormatter
Definition:
BlockFormatter.h:13
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
BlockFormatter::Config::doTower_
bool doTower_
Definition:
BlockFormatter.h:26
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:13
BlockFormatter::runnumber_
int runnumber_
Definition:
BlockFormatter.h:51
BlockFormatter::Config::doTCC_
bool doTCC_
Definition:
BlockFormatter.h:24
BlockFormatter::Config::doEndCap_
bool doEndCap_
Definition:
BlockFormatter.h:23
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:18
BlockFormatter::Config::plistDCCId_
const std::vector< int32_t > * plistDCCId_
Definition:
BlockFormatter.h:19
FEDRawData.h
BlockFormatter::doTCC_
const bool doTCC_
Definition:
BlockFormatter.h:57
Config
Definition:
Config.py:1
BlockFormatter::Word64
uint64_t Word64
Definition:
BlockFormatter.h:15
BlockFormatter::Params
Definition:
BlockFormatter.h:28
BlockFormatter::Config::debug_
bool debug_
Definition:
BlockFormatter.h:20
BlockFormatter::lv1_
int lv1_
Definition:
BlockFormatter.h:50
Generated for CMSSW Reference Manual by
1.8.14