1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef MatacqDataFormatter_H
#define MatacqDataFormatter_H
#include <ostream>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
#include "EventFilter/EcalRawToDigi/src/MatacqDataFormatter.h"
class MatacqRawEvent;
class FEDRawData;
/** Class to interpret ECAL MATACQ raw data and produce the MATACQ digis.
* This class is used by the MatacqProducer module.
* @author: Ph. Gras (CEA/Saclay)
*/
class MatacqDataFormatter {
public:
MatacqDataFormatter() {}
/** Callback method for decoding raw data
* @param data raw data
* @param matacqDigiCollection [out] digi collection object to fill with
* the decoded data
*/
void interpretRawData(const FEDRawData& data, EcalMatacqDigiCollection& matacqDigiCollection);
/** Callback method for decoding raw data
* @param data raw data
* @param matacqDigiCollection [out] digi collection object to fill with
* the decoded data
*/
void interpretRawData(const MatacqRawEvent& data, EcalMatacqDigiCollection& matacqDigiCollection);
private:
void printData(std::ostream& out, const MatacqRawEvent& event) const;
};
#endif
|