Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
TowerBlockFormatter::FEDmap
std::map< int, std::map< int, int > > FEDmap
Definition:
TowerBlockFormatter.h:31
TowerBlockFormatter
Definition:
TowerBlockFormatter.h:19
EcalElectronicsMapping.h
FEDRawDataCollection.h
TowerBlockFormatter::GetFEDorder
std::map< int, std::map< int, int > > & GetFEDorder()
Definition:
TowerBlockFormatter.h:28
FEDRawData
Definition:
FEDRawData.h:19
BlockFormatter.h
TowerBlockFormatter::kCardsPerTower
static const int kCardsPerTower
Definition:
TowerBlockFormatter.h:23
EcalDigiCollections.h
BlockFormatter
Definition:
BlockFormatter.h:13
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:28
EEDataFrame
Definition:
EEDataFrame.h:12
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:18
FEDRawData.h
TowerBlockFormatter::TowerBlockFormatter
TowerBlockFormatter(BlockFormatter::Config const &, BlockFormatter::Params const &)
Definition:
TowerBlockFormatter.cc:12
TowerBlockFormatter::EndEvent
void EndEvent(FEDRawDataCollection *productRawData)
Definition:
TowerBlockFormatter.cc:169
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::FEDorder
std::map< int, std::map< int, int > > FEDorder
Definition:
TowerBlockFormatter.h:32
BlockFormatter::Config
Definition:
BlockFormatter.h:18
Generated for CMSSW Reference Manual by
1.8.5