CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 "boost/cstdint.hpp"
8 #include <vector>
9 #include <utility>
10 
11 // Other classes
13 class FEDRawData;
14 class SiStripRawDigi;
15 class SiStripFedCabling;
16 
17 namespace sistrip {
18 
32  {
33  public:
35  typedef std::vector<uint32_t> Counters;
36 
37  SpyUnpacker(const bool allowIncompleteEvents);
38  ~SpyUnpacker();
39 
45  void createDigis( const SiStripFedCabling&,
46  const FEDRawDataCollection&, RawDigis* pDigis,
47  const std::vector<uint32_t> & ids,
48  Counters * pTotalEventCounts,
49  Counters * pL1ACounts,
50  uint32_t * aRunRef);
51  private:
52  // Configuration
54 
55  }; // end of SpyUnpacker class.
56 
57 } // end of sistrip namespace.
58 
59 #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 ...