MilliSliceConstructor.h
Go to the documentation of this file.
1 /*
2  * File: MilliSliceConstructor.h
3  * Author: denis
4  *
5  * Created on September 20, 2012, 2:18 PM
6  */
7 
8 #ifndef MILLISLICECONSTRUCTOR_H
9 #define MILLISLICECONSTRUCTOR_H
10 
11 #include "DAQDataFormats/RawMilliSlice.h"
13 #include "MicroSliceConstructor.h"
14 
15 #include "DAQDataFormats/DataFormatFirst.inc"
16 #define CURRENT_CLASS RawMilliSlice
17 
18 
19 namespace daqdataformats {
20 
22 public:
25 
29 
31  const RawMilliSlice* nano_ver = (const RawMilliSlice*)inver;
32  return nano_ver->getVersion();
33  }
34 
35  /// Gets the NanoSlices version in the MilliSlice
37 
38 public:
40 
41 
42 };
43 
44 }// end of namespaces
45 
46 
47 #endif /* MILLISLICECONSTRUCTOR_H */
48 
daqdataformats::RawDAQData * getFilledDataFormat(const daqdataformats::version_t) const
uint32_t getVersion() const
Definition: RawMilliSlice.h:51
version_t getVersion(const daqdataformats::RawDAQData *inver) const
Get version of the input dataformat.
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.
version_t getNanoSlicesVersion(const RawMilliSlice *) const
Gets the NanoSlices version in the MilliSlice.
bool fillDataFormat(daqdataformats::RawDAQData *) const
method to Fill the input dataformat