Main Page
Namespaces
Classes
Package Documentation
EventFilter
EcalDigiToRaw
interface
TowerBlockFormatter.h
Go to the documentation of this file.
1
#ifndef TOWERBLOCKFORMATTER_H
2
#define TOWERBLOCKFORMATTER_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 "
EventFilter/EcalDigiToRaw/interface/BlockFormatter.h
"
12
13
#include "
Geometry/EcalMapping/interface/EcalElectronicsMapping.h
"
14
15
16
//
17
// The crystals corresponding to a given FE in a given FED
18
//
19
20
21
22
class
TowerBlockFormatter
:
public
BlockFormatter
{
23
public
:
24
25
TowerBlockFormatter
(
BlockFormatter::Config
const
&,
BlockFormatter::Params
const
& );
26
27
static
const
int
kCardsPerTower
= 5;
// Number of VFE cards per trigger tower
28
void
DigiToRaw
(
const
EBDataFrame
& dataframe,
FEDRawData
&
rawdata
,
const
EcalElectronicsMapping
* TheMapping);
29
void
DigiToRaw
(
const
EEDataFrame
& dataframe,
FEDRawData
&
rawdata
,
const
EcalElectronicsMapping
* TheMapping);
30
void
EndEvent
(
FEDRawDataCollection
* productRawData);
31
32
std::map<int, std::map<int,int> >&
GetFEDorder
() {
return
FEDorder
; }
33
34
private
:
35
std::map<int, std::map<int,int> >
FEDmap
;
36
std::map<int, std::map<int,int> >
FEDorder
;
37
38
39
};
40
41
42
43
#endif
44
45
TowerBlockFormatter
Definition:
TowerBlockFormatter.h:22
EcalElectronicsMapping.h
FEDRawDataCollection.h
TowerBlockFormatter::GetFEDorder
std::map< int, std::map< int, int > > & GetFEDorder()
Definition:
TowerBlockFormatter.h:32
FEDRawData
Definition:
FEDRawData.h:20
BlockFormatter.h
TowerBlockFormatter::kCardsPerTower
static const int kCardsPerTower
Definition:
TowerBlockFormatter.h:27
EcalDigiCollections.h
BlockFormatter
Definition:
BlockFormatter.h:15
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:29
EEDataFrame
Definition:
EEDataFrame.h:15
matplotRender.rawdata
rawdata
Definition:
matplotRender.py:823
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:19
FEDRawData.h
TowerBlockFormatter::TowerBlockFormatter
TowerBlockFormatter(BlockFormatter::Config const &, BlockFormatter::Params const &)
Definition:
TowerBlockFormatter.cc:13
TowerBlockFormatter::EndEvent
void EndEvent(FEDRawDataCollection *productRawData)
Definition:
TowerBlockFormatter.cc:173
EBDataFrame
Definition:
EBDataFrame.h:13
TowerBlockFormatter::DigiToRaw
void DigiToRaw(const EBDataFrame &dataframe, FEDRawData &rawdata, const EcalElectronicsMapping *TheMapping)
Definition:
TowerBlockFormatter.cc:18
BlockFormatter::Params
Definition:
BlockFormatter.h:30
TowerBlockFormatter::FEDorder
std::map< int, std::map< int, int > > FEDorder
Definition:
TowerBlockFormatter.h:36
TowerBlockFormatter::FEDmap
std::map< int, std::map< int, int > > FEDmap
Definition:
TowerBlockFormatter.h:35
BlockFormatter::Config
Definition:
BlockFormatter.h:20
Generated for CMSSW Reference Manual by
1.8.11