TriggerMaskConstructor.h
Go to the documentation of this file.
1 /*
2  * File: TriggerMaskConstructor.h
3  * Author: denis
4  *
5  * Created on September 20, 2012, 2:18 PM
6  */
7 
8 #ifndef TRIGGERMASKCONSTRUCTOR_H
9 #define TRIGGERMASKCONSTRUCTOR_H
10 //#include "DAQDataFormats/../unittest/RawDAQDataConstructor.h"
11 #include "RawDAQDataConstructor.h"
12 #include "DAQDataFormats/RawTriggerMask.h"
13 
14 /// It is requred to
15 /// 1. include DAQDataFormats/DataFormatFirst.inc
16 /// 2. define CURRENT_CLASS
17 /// 3. define CURRENT_CLASS_VERSION for version of the class
18 /// OR define LAST_CLASS_VERSION for the main structure of the class
19 /// 4. (optional) define CURRENT_FIELDS_SUB_NAMESPACE
20 /// 5. include DAQDataFormats/DataFormatLast.inc
21 /// before the declaration of the DataFormat version class in the header.
22 #include "DAQDataFormats/DataFormatFirst.inc"
23 #define CURRENT_CLASS RawTriggerMask
24 #define LAST_CLASS_VERSION 0
25 #define CURRENT_FIELDS_SUB_NAMESPACE triggermask
26 #include "DAQDataFormats/DataFormatLast.inc"
27 
28 namespace daqdataformats {
30 
38  };// end of TriggerMaskMASKS
39 
40 
41 
43 public:
46  DEFINE_TESTVALUE (MonteCarloFlag);
47  DEFINE_TESTVALUE (TrigMod);
48  DEFINE_TESTVALUE (TrigMask_Low);
49  DEFINE_TESTVALUE (TrigMask_High);
50  DEFINE_TESTVALUE (TrigMask_High2);
51  DEFINE_TESTVALUE (Prescale);
55 
57  const RawTriggerMask* nano_ver = (const RawTriggerMask*)inver;
58  return nano_ver->getVersion();
59  }
60 
61 private:
62 
63 };
64 
65 }}// end of namespaces
66 
67 
68 #endif /* TRIGGERMASKCONSTRUCTOR_H */
69 
bool fillDataFormat(daqdataformats::RawDAQData *) const
method to Fill the input dataformat
version_t getVersion(const daqdataformats::RawDAQData *inver) const
Get version of the input dataformat.
#define CURRENT_FIELDS_SUB_NAMESPACE
daqdataformats::RawDAQData * getFilledDataFormat(const daqdataformats::version_t) const
daqdataformats::RawDAQData * getEmptyDataFormat(const daqdataformats::version_t) const
method to create an empty dataformat with a given version
int32_t version_t
Definition: RawDAQData.h:72
Class to hold the data from the FEBs in correct formats.
Class to hold the data corresponding to the trigger mask.