CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripSpyUnpacker.h
Go to the documentation of this file.
1 #ifndef DQM_SiStripMonitorHardware_SiStripSpyUnpacker_H
2 #define DQM_SiStripMonitorHardware_SiStripSpyUnpacker_H
3 
5 
6 // Standard includes.
7 #include <vector>
8 #include <utility>
9 #include <cstdint>
10 
11 // Other classes
13 class FEDRawData;
14 class SiStripRawDigi;
15 class SiStripFedCabling;
16 
17 namespace sistrip {
18 
31  class SpyUnpacker {
32  public:
34  typedef std::vector<uint32_t> Counters;
35 
36  SpyUnpacker(const bool allowIncompleteEvents);
37  ~SpyUnpacker();
38 
44  void createDigis(const SiStripFedCabling&,
45  const FEDRawDataCollection&,
46  RawDigis* pDigis,
47  const std::vector<uint32_t>& ids,
48  Counters* pTotalEventCounts,
49  Counters* pL1ACounts,
50  uint32_t* aRunRef);
51 
52  private:
53  // Configuration
55 
56  }; // end of SpyUnpacker class.
57 
58 } // namespace sistrip
59 
60 #endif // DQM_SiStripMonitorHardware_SiStripSpyUnpacker_H
void createDigis(const SiStripFedCabling &, const FEDRawDataCollection &, RawDigis *pDigis, const std::vector< uint32_t > &ids, Counters *pTotalEventCounts, Counters *pL1ACounts, uint32_t *aRunRef)
Creates the scope mode digis for the supplied FED IDs or detIds and stores event counters.
Unpacks spy channel data into scope mode-like digis.
std::vector< uint32_t > Counters
const bool allowIncompleteEvents_
edm::DetSetVector< SiStripRawDigi > RawDigis
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
SpyUnpacker(const bool allowIncompleteEvents)
Constructor.
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...