MicroSliceConstructor.h
Go to the documentation of this file.
1 /*
2  * File: MicroSliceConstructor.h
3  * Author: denis
4  *
5  * Created on September 20, 2012, 2:18 PM
6  */
7 
8 #ifndef MICROSLICECONSTRUCTOR_H
9 #define MICROSLICECONSTRUCTOR_H
10 //#include "DAQDataFormats/../unittest/RawDAQDataConstructor.h"
11 #include "RawDAQDataConstructor.h"
12 #include "DAQDataFormats/RawMicroSlice.h"
13 #include "NanoSliceConstructor.h"
14 
15 #include "DAQDataFormats/DataFormatFirst.inc"
16 #define CURRENT_CLASS RawMicroSlice
17 
18 namespace daqdataformats {
19 
20  const uint32_t TEST_VALUE_MonteCarloFlag = 1;
21  const uint32_t TEST_VALUE_LowWord = 5;
22  const uint32_t TEST_VALUE_HighWord = 8;
23  const uint64_t TEST_VALUE_Time = 0xB00000000A0L;
24 
26 public:
29 
30  DEFINE_TESTVALUE_BOOL(MonteCarloFlag);
31  DEFINE_TESTVALUE (LowWord);
32  DEFINE_TESTVALUE (HighWord);
33  DEFINE_TESTVALUE_64 (Time);
34 
38 
39  /// Gets the NanoSlices version in the MicroSlice
41 
42 public:
43 
45 
46  rawnano::NanoSliceConstructor _nanosliceConstructor;
47 
48 };
49 
50 }// end of namespaces
51 
52 
53 #endif /* MICROSLICECONSTRUCTOR_H */
54 
version_t getNanoSlicesVersion(const RawMicroSlice *) const
Gets the NanoSlices version in the MicroSlice.
daqdataformats::RawDAQData * getFilledDataFormat(const version_t) const
const uint64_t TEST_VALUE_Time
daqdataformats::RawDAQData * getEmptyDataFormat(const version_t) const
method to create an empty dataformat with a given version
const uint32_t TEST_VALUE_LowWord
rawnano::NanoSliceConstructor _nanosliceConstructor
const uint32_t TEST_VALUE_MonteCarloFlag
static constexpr double L
const uint32_t TEST_VALUE_HighWord
Class to hold the MicroSlice data.
Definition: RawMicroSlice.h:48
int32_t version_t
Definition: RawDAQData.h:72
bool fillDataFormat(daqdataformats::RawDAQData *) const
method to Fill the input dataformat
Class to hold the data from the FEBs in correct formats.