CMS 3D CMS Logo

CTPPSPixelDataFormatter.h
Go to the documentation of this file.
1 #ifndef CTPPS_CTPPSRawToDigi_CTPPSPixelDataFormatter_h
2 #define CTPPS_CTPPSRawToDigi_CTPPSPixelDataFormatter_h
3 
33 //
34 
38 
40 
41 #include <cstdint>
42 #include <vector>
43 #include <map>
44 
45 class FEDRawData;
46 
48 
49 public:
50 
52 
53  typedef std::map<int, FEDRawData> RawData;
54  typedef std::vector<CTPPSPixelDigi> DetDigis;
55 
56  typedef uint32_t Word32;
57  typedef uint64_t Word64;
58 
59  CTPPSPixelDataFormatter(std::map<CTPPSPixelFramePosition, CTPPSPixelROCInfo> const &mapping);
60 
61  int nWords() const { return theWordCounter; }
62 
63  void interpretRawData( bool& errorsInEvent, int fedId, const FEDRawData & data, Collection & digis);
64 
65 
66 
67 private:
68 
70 
72 
76 
77 
78  int checkError(const Word32& data) const;
79 
80  std::string print(const Word64 & word) const;
81 
82  const std::map<CTPPSPixelFramePosition, CTPPSPixelROCInfo> &mapping_;
83 
84 };
85 
86 #endif
edm::DetSetVector< CTPPSPixelDigi > Collection
std::string print(const Word64 &word) const
void interpretRawData(bool &errorsInEvent, int fedId, const FEDRawData &data, Collection &digis)
std::map< int, FEDRawData > RawData
const std::map< CTPPSPixelFramePosition, CTPPSPixelROCInfo > & mapping_
int checkError(const Word32 &data) const
unsigned long long uint64_t
Definition: Time.h:15
std::vector< CTPPSPixelDigi > DetDigis
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
CTPPSPixelDataFormatter(std::map< CTPPSPixelFramePosition, CTPPSPixelROCInfo > const &mapping)