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
();
26
~TowerBlockFormatter
();
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
StartEvent
();
31
void
EndEvent
(
FEDRawDataCollection
* productRawData);
32
33
std::map<int, std::map<int,int> >*
GetFEDorder
() {
return
FEDorder
; }
34
35
private
:
36
std::map<int, std::map<int,int> >*
FEDmap
;
37
std::map<int, std::map<int,int> >*
FEDorder
;
38
39
40
};
41
42
43
44
#endif
45
46
TowerBlockFormatter
Definition:
TowerBlockFormatter.h:22
EcalElectronicsMapping.h
TowerBlockFormatter::FEDmap
std::map< int, std::map< int, int > > * FEDmap
Definition:
TowerBlockFormatter.h:36
FEDRawDataCollection.h
TowerBlockFormatter::GetFEDorder
std::map< int, std::map< int, int > > * GetFEDorder()
Definition:
TowerBlockFormatter.h:33
FEDRawData
Definition:
FEDRawData.h:20
BlockFormatter.h
TowerBlockFormatter::FEDorder
std::map< int, std::map< int, int > > * FEDorder
Definition:
TowerBlockFormatter.h:37
TowerBlockFormatter::kCardsPerTower
static const int kCardsPerTower
Definition:
TowerBlockFormatter.h:27
EcalDigiCollections.h
BlockFormatter
Definition:
BlockFormatter.h:18
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:29
EEDataFrame
Definition:
EEDataFrame.h:15
matplotRender.rawdata
rawdata
Definition:
matplotRender.py:822
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:19
FEDRawData.h
TowerBlockFormatter::~TowerBlockFormatter
~TowerBlockFormatter()
Definition:
TowerBlockFormatter.cc:19
TowerBlockFormatter::StartEvent
void StartEvent()
Definition:
TowerBlockFormatter.cc:393
TowerBlockFormatter::EndEvent
void EndEvent(FEDRawDataCollection *productRawData)
Definition:
TowerBlockFormatter.cc:180
EBDataFrame
Definition:
EBDataFrame.h:13
TowerBlockFormatter::DigiToRaw
void DigiToRaw(const EBDataFrame &dataframe, FEDRawData &rawdata, const EcalElectronicsMapping *TheMapping)
Definition:
TowerBlockFormatter.cc:25
TowerBlockFormatter::TowerBlockFormatter
TowerBlockFormatter()
Definition:
TowerBlockFormatter.cc:15
Generated for CMSSW Reference Manual by
1.8.11