Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:36:10

0001 #ifndef MatacqTBDataFormatter_H
0002 #define MatacqTBDataFormatter_H
0003 /** \class MatacqDataFormatter
0004  *
0005  */
0006 
0007 #include <ostream>
0008 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0009 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0010 
0011 class MatacqTBRawEvent;
0012 class FEDRawData;
0013 
0014 class MatacqTBDataFormatter {
0015 public:
0016   MatacqTBDataFormatter() {}
0017   virtual ~MatacqTBDataFormatter() {
0018     LogDebug("EcalTBRawToDigi") << "@SUB=MatacqTBDataFormatter"
0019                                 << "\n";
0020   };
0021 
0022   /** Callback method for decoding raw data
0023    * @param data raw data
0024    * @param matacqDigiCollection [out] digi collection object to fill with
0025    * the decoded data
0026    */
0027   void interpretRawData(const FEDRawData& data, EcalMatacqDigiCollection& matacqDigiCollection);
0028 
0029 private:
0030   void printData(std::ostream& out, const MatacqTBRawEvent& event) const;
0031 };
0032 #endif