RawEventTail.h
Go to the documentation of this file.
1 #ifndef RAWEVENTTAIL_H
2 #define RAWEVENTTAIL_H
3 #include "DAQDataFormats/RawEventTailV0.h"
4 
5 /// It is requred to
6 /// 1. include DAQDataFormats/DataFormatFirst.inc
7 /// 2. define CURRENT_CLASS
8 /// 3. define CURRENT_CLASS_VERSION for version of the class
9 /// OR define LAST_CLASS_VERSION for the main structure of the class
10 /// 4. (optional) define CURRENT_FIELDS_SUB_NAMESPACE
11 /// 5. include DAQDataFormats/DataFormatLast.inc
12 /// before the declaration of the DataFormat version class in the header.
13 #include "DAQDataFormats/DataFormatFirst.inc"
14 #define CURRENT_CLASS RawEventTail
15 #define LAST_CLASS_VERSION 0
16 #define CURRENT_FIELDS_SUB_NAMESPACE raweventtail
17 #include "DAQDataFormats/DataFormatLast.inc"
18 
19 namespace daqdataformats {
20 
23  }
24 
25  class RawEventTail: public PREVIOUS_VERSION_CLASS_NAME{
26  public:
27 
29  RawEventTail(const RawEventTail& copy_in); //!< Copyin Constructor
30  RawEventTail(const void* buffer, const version_t version = rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION); //!< Constructor with data intialization
31  ~RawEventTail(); //!< Destructor
32 
34 
35 
36  IMPLEMENT_GET_MAIN(Marker , uint32_t)
37  IMPLEMENT_GET_MAIN(MarkerLeft , uint32_t)
38  IMPLEMENT_GET_MAIN(MarkerRight , uint32_t)
39  IMPLEMENT_GET_MAIN(Version , uint32_t)
40  IMPLEMENT_GET_AND_SET_MAIN(EventNumberLo, uint32_t)
41  IMPLEMENT_GET_AND_SET_MAIN(EventNumberHi, uint32_t)
42  IMPLEMENT_GET_AND_SET_MAIN(EventSize , uint32_t)
43 
45 
46  protected:
47 
48  bool setFunctionPointers();
49  IMPLEMENT_SET_MAIN(MarkerLeft , uint32_t)
50  IMPLEMENT_SET_MAIN(MarkerRight , uint32_t)
51  IMPLEMENT_SET_MAIN(Version , uint32_t)
52  IMPLEMENT_SET_MAIN(Marker , uint32_t)
53 
54  };
55 
56 
57 } // END NAMESPACE daqdataformats
58 #endif /* RAWEVENTTAIL_H */
#define IMPLEMENT_SET_MAIN(FUNC, UNITS)
Definition: Macros.h:210
static const version_t RAWEVENTTAIL_LATEST_VERSION
Definition: RawEventTail.h:22
#define IMPLEMENT_MAIN_STANDARD
Definition: Macros.h:230
::xsd::cxx::tree::buffer< char > buffer
Definition: Database.h:179
#define LAST_CLASS_VERSION
Definition: RawEventTail.h:15
const XML_Char * version
Definition: expat.h:187
#define IMPLEMENT_FIGUREOUT_VERSION_STATIC(CLASS)
This should be in the header.
Definition: Macros.h:295
#define CURRENT_CLASS
Definition: RawEventTail.h:14
int32_t version_t
Definition: RawDAQData.h:72
#define IMPLEMENT_GET_AND_SET_MAIN(FUNC, UNITS)
Definition: Macros.h:217
static const version_t DAQDATAFORMAT_UNKNOWN_VERSION
Definition: RawDAQData.h:81
Class to hold the data from the FEBs in correct formats.
#define IMPLEMENT_GET_MAIN(FUNC, UNITS)
Definition: Macros.h:208
#define CURRENT_FIELDS_SUB_NAMESPACE
Definition: RawEventTail.h:16