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 //
17 // The crystals corresponding to a given FE in a given FED
18 //
19 
20 
21 
23  public :
24 
26 
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 EndEvent(FEDRawDataCollection* productRawData);
31 
32  std::map<int, std::map<int,int> >& GetFEDorder() {return FEDorder; }
33 
34  private :
35  std::map<int, std::map<int,int> > FEDmap;
36  std::map<int, std::map<int,int> > FEDorder;
37 
38 
39 };
40 
41 
42 
43 #endif
44 
45 
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
std::map< int, std::map< int, int > > FEDmap