Main Page
Namespaces
Classes
Package Documentation
IORawData
DTCommissioning
plugins
DTFileReaderHelpers.h
Go to the documentation of this file.
1
#ifndef DaqSource_DTFileReaderHelpers_h
2
#define DaqSource_DTFileReaderHelpers_h
3
4
#include <boost/cstdint.hpp>
5
6
template
<
class
T>
char
*
dataPointer
(
const
T
* ptr ) {
7
union
bPtr {
8
const
T
* dataP;
9
char
* fileP;
10
};
11
union
bPtr buf;
12
buf.dataP = ptr;
13
return
buf.fileP;
14
}
15
16
17
template
<
class
T>
T
*
typePointer
(
const
char
* ptr ) {
18
union
bPtr {
19
T
* dataP;
20
const
char
* fileP;
21
};
22
union
bPtr buf;
23
buf.fileP = ptr;
24
return
buf.dataP;
25
}
26
27
struct
twoNibble
{
28
uint16_t
lsBits
;
29
uint16_t
msBits
;
30
};
31
32
struct
twoNibble64
{
33
uint32_t
lsBits
;
34
uint32_t
msBits
;
35
};
36
37
#endif
twoNibble
Definition:
DTFileReaderHelpers.h:27
typePointer
T * typePointer(const char *ptr)
Definition:
DTFileReaderHelpers.h:17
twoNibble64
Definition:
DTFileReaderHelpers.h:32
twoNibble::lsBits
uint16_t lsBits
Definition:
DTFileReaderHelpers.h:28
twoNibble64::lsBits
uint32_t lsBits
Definition:
DTFileReaderHelpers.h:33
twoNibble::msBits
uint16_t msBits
Definition:
DTFileReaderHelpers.h:29
twoNibble64::msBits
uint32_t msBits
Definition:
DTFileReaderHelpers.h:34
T
long double T
Definition:
Basic3DVectorLD.h:57
dataPointer
char * dataPointer(const T *ptr)
Definition:
DTFileReaderHelpers.h:6
Generated for CMSSW Reference Manual by
1.8.11