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
// The crystals corresponding to a given FE in a given FED
17
//
18
19
class
TowerBlockFormatter
:
public
BlockFormatter
{
20
public
:
21
TowerBlockFormatter
(
BlockFormatter::Config
const
&,
BlockFormatter::Params
const
&);
22
23
static
const
int
kCardsPerTower
= 5;
// Number of VFE cards per trigger tower
24
void
DigiToRaw
(
const
EBDataFrame
& dataframe,
FEDRawData
& rawdata,
const
EcalElectronicsMapping
* TheMapping);
25
void
DigiToRaw
(
const
EEDataFrame
& dataframe,
FEDRawData
& rawdata,
const
EcalElectronicsMapping
* TheMapping);
26
void
EndEvent
(
FEDRawDataCollection
* productRawData);
27
28
std::map<int, std::map<int, int> >&
GetFEDorder
() {
return
FEDorder
; }
29
30
private
:
31
std::map<int, std::map<int, int> >
FEDmap
;
32
std::map<int, std::map<int, int> >
FEDorder
;
33
};
34
35
#endif
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:28
TowerBlockFormatter::EndEvent
void EndEvent(FEDRawDataCollection *productRawData)
Definition:
TowerBlockFormatter.cc:169
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:18
EBDataFrame
Definition:
EBDataFrame.h:11
TowerBlockFormatter::DigiToRaw
void DigiToRaw(const EBDataFrame &dataframe, FEDRawData &rawdata, const EcalElectronicsMapping *TheMapping)
Definition:
TowerBlockFormatter.cc:14
BlockFormatter::Params
Definition:
BlockFormatter.h:28
TowerBlockFormatter::FEDmap
std::map< int, std::map< int, int > > FEDmap
Definition:
TowerBlockFormatter.h:31
FEDRawData.h
FEDRawData
Definition:
FEDRawData.h:19
BlockFormatter
Definition:
BlockFormatter.h:13
EcalDigiCollections.h
TowerBlockFormatter::GetFEDorder
std::map< int, std::map< int, int > > & GetFEDorder()
Definition:
TowerBlockFormatter.h:28
BlockFormatter::Config
Definition:
BlockFormatter.h:18
EcalElectronicsMapping.h
FEDRawDataCollection.h
TowerBlockFormatter
Definition:
TowerBlockFormatter.h:19
TowerBlockFormatter::FEDorder
std::map< int, std::map< int, int > > FEDorder
Definition:
TowerBlockFormatter.h:32
BlockFormatter.h
TowerBlockFormatter::TowerBlockFormatter
TowerBlockFormatter(BlockFormatter::Config const &, BlockFormatter::Params const &)
Definition:
TowerBlockFormatter.cc:12
EEDataFrame
Definition:
EEDataFrame.h:12
TowerBlockFormatter::kCardsPerTower
static const int kCardsPerTower
Definition:
TowerBlockFormatter.h:23
Generated for CMSSW Reference Manual by
1.8.16