RawTriggerRange.h
Go to the documentation of this file.
1 #ifndef DAQRAWTRIGGERRANGE_H
2 #define DAQRAWTRIGGERRANGE_H
3 #include "DAQDataFormats/RawTriggerRangeV0.h"
4 #include "DAQDataFormats/TriggerDefines.h"
5 
6 /// It is requred to
7 /// 1. include DAQDataFormats/DataFormatFirst.inc
8 /// 2. define CURRENT_CLASS
9 /// 3. define CURRENT_CLASS_VERSION for version of the class
10 /// OR define LAST_CLASS_VERSION for the main structure of the class
11 /// 4. (optional) define CURRENT_FIELDS_SUB_NAMESPACE
12 /// 5. include DAQDataFormats/DataFormatLast.inc
13 /// before the declaration of the DataFormat version class in the header.
14 #include "DAQDataFormats/DataFormatFirst.inc"
15 #define CURRENT_CLASS RawTriggerRange
16 #define LAST_CLASS_VERSION 0
17 #define CURRENT_FIELDS_SUB_NAMESPACE triggerrange
18 #include "DAQDataFormats/DataFormatLast.inc"
19 
20 namespace daqdataformats {
21 
24  }
25 
26 
27  //! Class to hold the data from the global trigger range in the correct format
28  /*!
29  The RawTriggerRange contains the width of the trigger gate in
30  500 nsec units.
31 
32  The class supports general initialization with an internal or external
33  data buffer as well as copyin style initialization for use with
34  STL containers.
35  */
36  class RawTriggerRange: public PREVIOUS_VERSION_CLASS_NAME {
37 
38  public:
40  RawTriggerRange(const RawTriggerRange& copy_in); //!< Copyin Constructor
41  RawTriggerRange(const void* buffer, const version_t version = rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION); //!< Constructor with data intialization
42  ~RawTriggerRange(); //!< Destructor
43 
45 
46  IMPLEMENT_GET_MAIN (Version , uint32_t)
47  IMPLEMENT_GET_AND_SET_MAIN(TriggerLength, uint32_t)
48 
50 
51  protected:
52  IMPLEMENT_SET_MAIN(Version , uint32_t)
53  bool setFunctionPointers();
54 
55  };
56 
57 
58 } // END NAMESPCE daqdataformats
59 #endif /* DAQRAWTRIGGERRANGE_H */
#define IMPLEMENT_SET_MAIN(FUNC, UNITS)
Definition: Macros.h:210
#define IMPLEMENT_MAIN_STANDARD
Definition: Macros.h:230
::xsd::cxx::tree::buffer< char > buffer
Definition: Database.h:179
#define LAST_CLASS_VERSION
Class to hold the data from the global trigger range in the correct format.
const XML_Char * version
Definition: expat.h:187
#define IMPLEMENT_FIGUREOUT_VERSION_STATIC(CLASS)
This should be in the header.
Definition: Macros.h:295
static const version_t RAWTRIGGERRANGE_LATEST_VERSION
#define CURRENT_FIELDS_SUB_NAMESPACE
#define CURRENT_CLASS
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