CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
14 public:
15  typedef uint64_t Word64;
16  typedef uint16_t Word16;
17 
18  struct Config {
19  const std::vector<int32_t>* plistDCCId_;
20  bool debug_;
21 
22  bool doBarrel_;
23  bool doEndCap_;
24  bool doTCC_;
25  bool doSR_;
26  bool doTower_;
27  };
28  struct Params {
29  int counter_;
31  int bx_;
32  int lv1_;
34  };
35 
36  explicit BlockFormatter(Config const& iC, Params const& iP);
37  static const int kCardsPerTower = 5; // Number of VFE cards per trigger tower
38  void DigiToRaw(FEDRawDataCollection* productRawData);
39  void print(FEDRawData& rawdata);
40  // void CleanUp(FEDRawDataCollection* productRawData);
41  void CleanUp(FEDRawDataCollection* productRawData, std::map<int, std::map<int, int> >* FEDorder);
42  void PrintSizes(FEDRawDataCollection* productRawData);
43 
44 protected:
45  const std::vector<int32_t>* plistDCCId_;
46 
47  int counter_;
49  int bx_;
50  int lv1_;
52 
53  const bool debug_;
54 
55  const bool doBarrel_;
56  const bool doEndCap_;
57  const bool doTCC_;
58  const bool doSR_;
59  const bool doTower_;
60 };
61 
62 #endif
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:13
const std::vector< int32_t > * plistDCCId_
const bool doTCC_