CMS 3D CMS Logo

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 
12 
14 
15 //
16 // The crystals corresponding to a given FE in a given FED
17 //
18 
20 public:
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