Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef MatacqDataFormatter_H
0002 #define MatacqDataFormatter_H
0003 
0004 #include <ostream>
0005 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0006 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0007 #include "EventFilter/EcalRawToDigi/src/MatacqDataFormatter.h"
0008 
0009 class MatacqRawEvent;
0010 class FEDRawData;
0011 
0012 /** Class to interpret ECAL MATACQ raw data and produce the MATACQ digis.
0013  * This class is used by the MatacqProducer module.
0014  *  @author: Ph. Gras (CEA/Saclay)
0015  */
0016 class MatacqDataFormatter {
0017 public:
0018   MatacqDataFormatter() {}
0019 
0020   /** Callback method for decoding raw data
0021    * @param data raw data
0022    * @param matacqDigiCollection [out] digi collection object to fill with
0023    * the decoded data
0024    */
0025   void interpretRawData(const FEDRawData& data, EcalMatacqDigiCollection& matacqDigiCollection);
0026 
0027   /** Callback method for decoding raw data
0028    * @param data raw data
0029    * @param matacqDigiCollection [out] digi collection object to fill with
0030    * the decoded data
0031    */
0032   void interpretRawData(const MatacqRawEvent& data, EcalMatacqDigiCollection& matacqDigiCollection);
0033 
0034 private:
0035   void printData(std::ostream& out, const MatacqRawEvent& event) const;
0036 };
0037 #endif