EventTailConstructor.h
Go to the documentation of this file.
1 /*
2  * File: EventTailConstructor.h
3  * Author: denis
4  *
5  * Created on September 20, 2012, 2:18 PM
6  */
7 
8 #ifndef EVENTHEADERCONSTRUCTOR_H
9 #define EVENTHEADERCONSTRUCTOR_H
10 //#include "DAQDataFormats/../unittest/RawDAQDataConstructor.h"
11 #include "RawDAQDataConstructor.h"
12 #include "EventHeaderConstructor.h"
13 #include "DAQDataFormats/RawEventTail.h"
14 
15 /// It is requred to
16 /// 1. include DAQDataFormats/DataFormatFirst.inc
17 /// 2. define CURRENT_CLASS
18 /// 3. define CURRENT_CLASS_VERSION for version of the class
19 /// OR define LAST_CLASS_VERSION for the main structure of the class
20 /// 4. (optional) define CURRENT_FIELDS_SUB_NAMESPACE
21 /// 5. include DAQDataFormats/DataFormatLast.inc
22 /// before the declaration of the DataFormat version class in the header.
23 #include "DAQDataFormats/DataFormatFirst.inc"
24 #define CURRENT_CLASS RawEventTail
25 #define CURRENT_CLASS_VERSION 0
26 #define CURRENT_FIELDS_SUB_NAMESPACE raweventtail
27 #include "DAQDataFormats/DataFormatLast.inc"
28 
29 namespace daqdataformats {
31 
36  };
37 
38 
40 public:
43  DEFINE_TESTVALUE (EventNumberLo);
44  DEFINE_TESTVALUE (EventNumberHi);
45  DEFINE_TESTVALUE (EventSize);
46 
50 
52  const RawEventTail* nano_ver = (const RawEventTail*)inver;
53  return nano_ver->getVersion();
54  }
55 
56 
57 };
58 
59 }}// end of namespaces
60 
61 
62 #endif /* EVENTHEADERCONSTRUCTOR_H */
63 
bool fillDataFormat(daqdataformats::RawDAQData *) const
method to Fill the input dataformat
daqdataformats::RawDAQData * getEmptyDataFormat(const daqdataformats::version_t) const
method to create an empty dataformat with a given version
version_t getVersion(const daqdataformats::RawDAQData *inver) const
Get version of the input dataformat.
int32_t version_t
Definition: RawDAQData.h:72
daqdataformats::RawDAQData * getFilledDataFormat(const daqdataformats::version_t) const
#define CURRENT_FIELDS_SUB_NAMESPACE
Class to hold the data from the FEBs in correct formats.