CMS 3D CMS Logo

BlockFormatter.h
Go to the documentation of this file.
1 #ifndef BLOCKFORMATTER_H
2 #define BLOCKFORMATTER_H
3 
4 #include <iostream>
5 #include <vector>
6 #include <map>
7 
12 
13 
14 
16  public :
17  typedef uint64_t Word64;
18  typedef uint16_t Word16;
19 
20  struct Config {
21  const std::vector<int32_t> * plistDCCId_;
22  bool debug_;
23 
24  bool doBarrel_;
25  bool doEndCap_;
26  bool doTCC_;
27  bool doSR_;
28  bool doTower_;
29  };
30  struct Params {
31  int counter_;
33  int bx_;
34  int lv1_;
36  };
37 
38  explicit BlockFormatter(Config const& iC, Params const& iP);
39  static const int kCardsPerTower = 5; // Number of VFE cards per trigger tower
40  void DigiToRaw(FEDRawDataCollection* productRawData);
41  void print(FEDRawData& rawdata);
42  // void CleanUp(FEDRawDataCollection* productRawData);
43  void CleanUp(FEDRawDataCollection* productRawData,
44  std::map<int, std::map<int,int> >* FEDorder);
45  void PrintSizes(FEDRawDataCollection* productRawData);
46 
47  protected :
48 
49  const std::vector<int32_t> * plistDCCId_;
50 
51  int counter_;
53  int bx_;
54  int lv1_;
56 
57  const bool debug_;
58 
59  const bool doBarrel_;
60  const bool doEndCap_;
61  const bool doTCC_;
62  const bool doSR_;
63  const bool doTower_;
64 
65 };
66 
67 
68 
69 #endif
70 
71 
void DigiToRaw(FEDRawDataCollection *productRawData)
const std::vector< int32_t > * plistDCCId_
const bool doBarrel_
void print(FEDRawData &rawdata)
BlockFormatter(Config const &iC, Params const &iP)
void CleanUp(FEDRawDataCollection *productRawData, std::map< int, std::map< int, int > > *FEDorder)
static const int kCardsPerTower
void PrintSizes(FEDRawDataCollection *productRawData)
const bool doTower_
const bool debug_
const bool doSR_
const bool doEndCap_
unsigned long long uint64_t
Definition: Time.h:15
const std::vector< int32_t > * plistDCCId_
const bool doTCC_
Definition: Config.py:1