|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Declares the RoentDek LMF (list-mode file) reader/writer LMF_IO, its MyFILE binary-file helper, hardware header structures, and DAQ-id and data-format constants. More...
#include "fstream"#include "time.h"#include "string.h"Classes | |
| class | MyFILE |
| Small binary file wrapper around a C FILE: open() for reading or writing (chosen at construction), raw read()/write(), and >> / << operators that read or write the bytes of basic types. More... | |
| union | _myLARGE_INTEGER |
| Replacement for the Windows LARGE_INTEGER union, defined when WINNT is not defined: a 64-bit QuadPart sharing storage with a LowPart/HighPart pair of 32-bit fields, available directly and as member u. More... | |
| struct | TDC8PCI2_struct |
| struct | TDC8HP_info_struct |
| struct | TDC8HP_struct |
| struct | HM1_struct |
| class | LMF_IO |
Macros | |
| #define | LINUX |
| Defined unconditionally, so the LINUX branch below is always used (string.h, fseeko/ftello and the __intN macros). | |
| #define | _fseeki64 fseeko |
| Mapped to fseeko in the LINUX branch; used by MyFILE::open() and MyFILE::seek(). | |
| #define | _ftelli64 ftello |
| Mapped to ftello in the LINUX branch; used by MyFILE::open() to get the file size. | |
| #define | __int32_IS_DEFINED |
| Guard so the __intN macros below are defined only once. | |
| #define | __int32 int |
| Defined as int. | |
| #define | __int16 short |
| Defined as short. | |
| #define | __int64 long long |
| Defined as long long. | |
| #define | __int8 char |
| Defined as char. | |
| #define | DAQ_ID_HM1 0x000001 |
| Value 1. | |
| #define | DAQ_ID_TDC8 0x000002 |
| Value 2. | |
| #define | DAQ_ID_CAMAC 0x000003 |
| Value 3. | |
| #define | DAQ_ID_2HM1 0x000004 |
| Value 4. | |
| #define | DAQ_ID_2TDC8 0x000005 |
| Value 5. | |
| #define | DAQ_ID_HM1_ABM 0x000006 |
| Value 6. | |
| #define | DAQ_ID_TDC8HP 0x000008 |
| Value 8. | |
| #define | DAQ_ID_TCPIP 0x000009 |
| Value 9. | |
| #define | DAQ_ID_TDC8HPRAW 0x000010 |
| Value 0x10. | |
| #define | DAQ_ID_RAW32BIT 100 |
| Value 100. | |
| #define | DAQ_ID_SIMPLE 101 |
| Value 101. | |
| #define | LM_BYTE 1 |
| Data format code 1 (trailing comment: 8-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8). | |
| #define | LM_SHORT 2 |
| Data format code 2 (trailing comment: 16-bit integer); for a Cobold LMF file OpenInputLMF() accepts it as the header data format. | |
| #define | LM_LONG 3 |
| Data format code 3 (trailing comment: 32-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8). | |
| #define | LM_FLOAT 4 |
| Data format code 4 (trailing comment: 32-bit IEEE float); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8). | |
| #define | LM_DOUBLE 5 |
| Data format code 5 (trailing comment: 64-bit IEEE float); for a Cobold LMF file OpenInputLMF() accepts it as the header data format. | |
| #define | LM_CAMAC 6 |
| Data format code 6 (trailing comment: 24-bit integer); for a Cobold LMF file OpenInputLMF() accepts it as the header data format. | |
| #define | LM_DOUBLELONG 7 |
| Data format code 7 (trailing comment: 64-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8). | |
| #define | LM_SBYTE 8 |
| Data format code 8 (trailing comment: signed 8-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8). | |
| #define | LM_SSHORT 9 |
| Data format code 9 (trailing comment: signed 16-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8). | |
| #define | LM_SLONG 10 |
| Data format code 10 (trailing comment: signed 32-bit integer); for a Cobold LMF file OpenInputLMF() accepts it as the header data format. | |
| #define | LM_SDOUBLELONG 11 |
| Data format code 11 (trailing comment: signed 64-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8). | |
| #define | LM_LASTKNOWNDATAFORMAT LM_SDOUBLELONG |
| Equal to LM_SDOUBLELONG (11); not used in LMF_IO.cc. | |
| #define | LM_USERDEF -1 |
| Data format code -1 (trailing comment: the user handles the reading); for a Cobold LMF file OpenInputLMF() accepts it as the header data format. | |
Typedefs | |
| typedef union _myLARGE_INTEGER | myLARGE_INTEGER |
| Replacement for the Windows LARGE_INTEGER union, defined when WINNT is not defined: a 64-bit QuadPart sharing storage with a LowPart/HighPart pair of 32-bit fields, available directly and as member u. | |
| typedef union _myLARGE_INTEGER * | PmyLARGE_INTEGER |
Declares the RoentDek LMF (list-mode file) reader/writer LMF_IO, its MyFILE binary-file helper, hardware header structures, and DAQ-id and data-format constants.
| #define __int16 short |
Defined as short.
| #define __int32 int |
Defined as int.
| #define __int32_IS_DEFINED |
Guard so the __intN macros below are defined only once.
| #define __int64 long long |
Defined as long long.
| #define __int8 char |
Defined as char.
| #define _fseeki64 fseeko |
Mapped to fseeko in the LINUX branch; used by MyFILE::open() and MyFILE::seek().
| #define _ftelli64 ftello |
Mapped to ftello in the LINUX branch; used by MyFILE::open() to get the file size.
| #define DAQ_ID_2HM1 0x000004 |
Value 4.
Not in the list that OpenInputLMF() accepts; other code in LMF_IO.cc checks for it.
| #define DAQ_ID_2TDC8 0x000005 |
Value 5.
For a Cobold LMF file, OpenInputLMF() accepts it and reads the rest of the header with Read2TDC8PCI2Header().
| #define DAQ_ID_CAMAC 0x000003 |
Value 3.
For a Cobold LMF file, OpenInputLMF() accepts it and reads the rest of the header with ReadCAMACHeader().
| #define DAQ_ID_HM1 0x000001 |
Value 1.
For a Cobold LMF file, OpenInputLMF() accepts it and reads the rest of the header with ReadHM1Header().
| #define DAQ_ID_HM1_ABM 0x000006 |
Value 6.
For a Cobold LMF file, OpenInputLMF() accepts it and reads the rest of the header with ReadHM1Header().
| #define DAQ_ID_RAW32BIT 100 |
Value 100.
OpenNonCoboldFile() sets it when skip_header is set.
| #define DAQ_ID_SIMPLE 101 |
Value 101.
OpenNonCoboldFile() sets it when skip_header is not set and the id is not already DAQ_ID_RAW32BIT.
| #define DAQ_ID_TCPIP 0x000009 |
Value 9.
For a Cobold LMF file, OpenInputLMF() accepts it and reads the rest of the header with ReadTCPIPHeader().
| #define DAQ_ID_TDC8 0x000002 |
Value 2.
For a Cobold LMF file, OpenInputLMF() accepts it and reads the rest of the header with ReadTDC8PCI2Header().
| #define DAQ_ID_TDC8HP 0x000008 |
Value 8.
For a Cobold LMF file, OpenInputLMF() accepts it and reads the rest of the header with ReadTDC8HPHeader_LMFV_1_to_7().
| #define DAQ_ID_TDC8HPRAW 0x000010 |
Value 0x10.
For a Cobold LMF file, OpenInputLMF() accepts it and reads the rest of the header with ReadTDC8HPHeader_LMFV_1_to_7().
| #define LINUX |
Defined unconditionally, so the LINUX branch below is always used (string.h, fseeko/ftello and the __intN macros).
| #define LM_BYTE 1 |
Data format code 1 (trailing comment: 8-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8).
| #define LM_CAMAC 6 |
Data format code 6 (trailing comment: 24-bit integer); for a Cobold LMF file OpenInputLMF() accepts it as the header data format.
| #define LM_DOUBLE 5 |
Data format code 5 (trailing comment: 64-bit IEEE float); for a Cobold LMF file OpenInputLMF() accepts it as the header data format.
| #define LM_DOUBLELONG 7 |
Data format code 7 (trailing comment: 64-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8).
| #define LM_FLOAT 4 |
Data format code 4 (trailing comment: 32-bit IEEE float); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8).
| #define LM_LASTKNOWNDATAFORMAT LM_SDOUBLELONG |
Equal to LM_SDOUBLELONG (11); not used in LMF_IO.cc.
| #define LM_LONG 3 |
Data format code 3 (trailing comment: 32-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8).
| #define LM_SBYTE 8 |
Data format code 8 (trailing comment: signed 8-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8).
| #define LM_SDOUBLELONG 11 |
Data format code 11 (trailing comment: signed 64-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8).
| #define LM_SHORT 2 |
Data format code 2 (trailing comment: 16-bit integer); for a Cobold LMF file OpenInputLMF() accepts it as the header data format.
| #define LM_SLONG 10 |
Data format code 10 (trailing comment: signed 32-bit integer); for a Cobold LMF file OpenInputLMF() accepts it as the header data format.
| #define LM_SSHORT 9 |
Data format code 9 (trailing comment: signed 16-bit integer); for a Cobold LMF file OpenInputLMF() rejects it as the header data format (error 8).
| #define LM_USERDEF -1 |
Data format code -1 (trailing comment: the user handles the reading); for a Cobold LMF file OpenInputLMF() accepts it as the header data format.
| typedef union _myLARGE_INTEGER myLARGE_INTEGER |
Replacement for the Windows LARGE_INTEGER union, defined when WINNT is not defined: a 64-bit QuadPart sharing storage with a LowPart/HighPart pair of 32-bit fields, available directly and as member u.
| typedef union _myLARGE_INTEGER * PmyLARGE_INTEGER |