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
std::map< int, std::map< int, int > > FEDmap
std::map< int, std::map< int, int > > & GetFEDorder()
static const int kCardsPerTower
TowerBlockFormatter(BlockFormatter::Config const &, BlockFormatter::Params const &)
void EndEvent(FEDRawDataCollection *productRawData)
void DigiToRaw(const EBDataFrame &dataframe, FEDRawData &rawdata, const EcalElectronicsMapping *TheMapping)
std::map< int, std::map< int, int > > FEDorder