Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:31

0001 #ifndef DTUnpacker_h
0002 #define DTUnpacker_h
0003 
0004 /** \class DTUnpacker
0005  *  Base class for DT data unpackers
0006  *
0007  * \author M. Zanetti INFN Padova
0008  *  FR 060906
0009  */
0010 
0011 #include <FWCore/Framework/interface/ESHandle.h>
0012 #include <DataFormats/DTDigi/interface/DTDigiCollection.h>
0013 #include <DataFormats/DTDigi/interface/DTLocalTriggerCollection.h>
0014 
0015 class DTReadOutMapping;
0016 
0017 class DTUnpacker {
0018 public:
0019   /// Constructor
0020   DTUnpacker() {}
0021 
0022   /// Destructor
0023   virtual ~DTUnpacker() {}
0024 
0025   /// Unpacking method.
0026   /// index is the pointer to the beginning of the buffer.
0027   /// datasize is the size of the buffer in bytes
0028 
0029   virtual void interpretRawData(const unsigned int* index,
0030                                 int datasize,
0031                                 int dduID,
0032                                 edm::ESHandle<DTReadOutMapping>& mapping,
0033                                 std::unique_ptr<DTDigiCollection>& product,
0034                                 std::unique_ptr<DTLocalTriggerCollection>& product2,
0035                                 uint16_t rosList = 0) = 0;
0036 
0037 protected:
0038 };
0039 
0040 #endif