RawSummaryDCMDataV0.h
Go to the documentation of this file.
1 #ifndef RAWSUMMARYDCMDATAV0_H
2 #define RAWSUMMARYDCMDATAV0_H
3 #include "DAQDataFormats/RawMicroSlice.h"
4 #include "DAQDataFormats/RawSummaryDCMDataHeader.h"
5 #include "DAQDataFormats/RawSummaryDCMDataPoint.h"
6 #include <list>
7 
8 /// It is requred to
9 /// 1. include DAQDataFormats/DataFormatFirst.inc
10 /// 2. define CURRENT_CLASS
11 /// 3. define CURRENT_CLASS_VERSION for version of the class
12 /// OR define LAST_CLASS_VERSION for the main structure of the class
13 /// 4. (optional) define CURRENT_FIELDS_SUB_NAMESPACE
14 /// 5. include DAQDataFormats/DataFormatLast.inc
15 /// before the declaration of the DataFormat version class in the header.
16 #include "DAQDataFormats/DataFormatFirst.inc"
17 #define CURRENT_CLASS RawSummaryDCMData
18 #define CURRENT_CLASS_VERSION 0
19 #define CURRENT_FIELDS_SUB_NAMESPACE summarydcmdata
20 #include "DAQDataFormats/DataFormatLast.inc"
21 
22 namespace daqdataformats {
23 namespace VERSION_NAMESPACE {
24  class RawSummaryDCMData : public PREVIOUS_VERSION_CLASS_NAME {
25 
26  public:
27  // Constructors
28  RawSummaryDCMData (const version_t); //! The default constructor
30  /// Destructor
32 
33  void init ();
35  void print (std::ostream& os=std::cout) const;
36  uint32_t sizeofdata () const;
37  bool setBufferSource(const void* pointer);
38 
39  daqdataformats::RawSummaryDCMDataHeader* getHeader() const {return _Header;} //! MicroBlock Header reference
41  bool addDataPoints(const std::list<std::pair< uint64_t, uint16_t> >& dcmlist, const uint8_t type);
42 
43  protected:
45 
46 
47  protected:
48  INIT_FIRST(getVersion, const, uint32_t, );
49  INIT_CUSTOM_DELEGATE(addDataPoints, bool, const std::list< std::pair<uint64_t, uint16_t> >&, const uint8_t);
50 
52  };
53 
54 
55 }} // END NAMESPCE daqdataformats
56 #endif /* RawSummaryDCMDataV0_H */
#define VERSION_NAMESPACE
bool addDataPoints(const std::list< std::pair< uint64_t, uint16_t > > &dcmlist, const uint8_t type)
INIT_CUSTOM_DELEGATE(addDataPoints, bool, const std::list< std::pair< uint64_t, uint16_t > > &, const uint8_t)
daqdataformats::RawSummaryDCMDataHeader * _Header
bool print
daqdataformats::RawSummaryDCMDataHeader * getHeader() const
OStream cout
Definition: OStream.cxx:6
int32_t version_t
Definition: RawDAQData.h:72
Class to hold the data from the FEBs in correct formats.
daqdataformats::RawSummaryDCMDataPoint * getDataPoint(const uint32_t idx) const
MicroBlock Header reference.